Skip to content

ng new FAIL #1274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ghost opened this issue Jul 3, 2016 · 7 comments
Closed

ng new FAIL #1274

ghost opened this issue Jul 3, 2016 · 7 comments

Comments

@ghost
Copy link

ghost commented Jul 3, 2016

When I'm trying to type ng new tutorial I get this message error right here :

OS ? OS X El Capitan

module.js:327
    throw err;
    ^
Error: Cannot find module 'exists-sync'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/angular-cli/node_modules/ember-cli/lib/models/project.js:11:26)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)

I don't know what or why it shows up, help would be great 👍

@suv0
Copy link

suv0 commented Jul 3, 2016

npm install should have fix the issue.

make sure your npm version is : 3.10.2

@moloch--
Copy link

moloch-- commented Jul 3, 2016

You have run npm install twice, once to install the dependencies, then you have to to go into the /node_modules/angular-cli and then run npm install again, not sure why this is ... but it's the default behavior right now, the only documented fixes are in other GitHub issues.

@ghost
Copy link
Author

ghost commented Jul 3, 2016

Could you tell me where I can find this, is it in /usr/bin ?

@ghost
Copy link
Author

ghost commented Jul 3, 2016

Nop, sorry but still nothing

ng new ang_project
/usr/local/lib/node_modules/angular-cli/node_modules/ember-cli/node_modules/configstore/index.js:54
throw err;
^

Error: EACCES: permission denied, open
'/Users/redsun/.config/configstore/ember-cli.json'
You don't have access to this file.

at Error (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.readFileSync (fs.js:397:15)
at Object.create.all.get

(/usr/local/lib/node_modules/angular-cli/node_modules/ember-cli/node_modules/configstore/index.js:35:26)
at Object.Configstore
(/usr/local/lib/node_modules/angular-cli/node_modules/ember-cli/node_modules/configstore/index.js:28:44)
at clientId
(/usr/local/lib/node_modules/angular-cli/node_modules/ember-cli/lib/cli/index.js:22:21)
at module.exports
(/usr/local/lib/node_modules/angular-cli/node_modules/ember-cli/lib/cli/index.js:65:19)
at module.exports
(/usr/local/lib/node_modules/angular-cli/lib/cli/index.js:106:10)
at /usr/local/lib/node_modules/angular-cli/bin/ng:31:5
at
/usr/local/lib/node_modules/angular-cli/node_modules/resolve/lib/async.js:46:14
➜ ~ npm -v
2.15.8

@ghost
Copy link
Author

ghost commented Jul 3, 2016

Ok, I just understood the problem, Now It creates the necessary files but
when I do ng serve this Shows up :

ng serve
module.js:327
throw err;
^

Error: Cannot find module 'exists-sync'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.
(/Users/redsun/pro/node_modules/angular-cli/node_modules/ember-cli/lib/models/project.js:11:26)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)

@filipesilva
Copy link
Contributor

Duplicate of #1186, solved in #1250. Will be in the next release.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants