Skip to content

ng new not working!! #2645

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
Reozil opened this issue Oct 11, 2016 · 14 comments
Closed

ng new not working!! #2645

Reozil opened this issue Oct 11, 2016 · 14 comments

Comments

@Reozil
Copy link

Reozil commented Oct 11, 2016

Please provide us with the following information:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Ubuntu 14.06 LTS

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:
ng --version gives error
node --version v6.7.0

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
Tried to create new project.
ng new Test
Cannot find module 'process-nextick-args'
Error: Cannot find module 'process-nextick-args'
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/lib/node_modules/angular-cli/node_modules/readable-stream/lib/_stream_readable.js:6:23)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/lib/node_modules/angular-cli/node_modules/readable-stream/readable.js:6:28)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/lib/node_modules/angular-cli/node_modules/memory-fs/lib/MemoryFileSystem.js:8:14)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/lib/node_modules/angular-cli/node_modules/webpack-dev-middleware/middleware.js:5:24)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/lib/node_modules/angular-cli/node_modules/webpack-dev-server/lib/Server.js:3:28)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/lib/node_modules/angular-cli/tasks/serve-webpack.js:8:24)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/lib/node_modules/angular-cli/commands/serve.js:7:23)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Class.includedCommands (/usr/local/lib/node_modules/angular-cli/addon/index.js:22:16)
at /usr/local/lib/node_modules/angular-cli/node_modules/angular-cli/lib/models/project.js:392:61
at Array.forEach (native)
at Project.addonCommands (/usr/local/lib/node_modules/angular-cli/node_modules/angular-cli/lib/models/project.js:391:15)
at Project.eachAddonCommand (/usr/local/lib/node_modules/angular-cli/node_modules/angular-cli/lib/models/project.js:426:30)
at module.exports (/usr/local/lib/node_modules/angular-cli/node_modules/angular-cli/lib/cli/lookup-command.js:33:13)
at CLI. (/usr/local/lib/node_modules/angular-cli/node_modules/angular-cli/lib/cli/cli.js:34:26)
at tryCatch (/usr/local/lib/node_modules/angular-cli/node_modules/rsvp/dist/lib/rsvp/-internal.js:215:12)
at invokeCallback (/usr/local/lib/node_modules/angular-cli/node_modules/rsvp/dist/lib/rsvp/-internal.js:230:13)
at publish (/usr/local/lib/node_modules/angular-cli/node_modules/rsvp/dist/lib/rsvp/-internal.js:198:7)
at flush (/usr/local/lib/node_modules/angular-cli/node_modules/rsvp/dist/lib/rsvp/asap.js:85:5)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)

The log given by the failure.

Normally this include a stack trace and some more information.

Mention any other details that might be useful.

removed the angular-cli once the reinstalled. Now getting this. gave probably the same error in the previous also not working installation.


Thanks! We'll be in touch soon.

@JanStureNielsen
Copy link

@Reozil -- if ng --version "gives error", then something went wrong with your Angular CLI installation, in which case ng new is unlikely to work...so, first figure out what went wrong with your installation.

@cre8
Copy link

cre8 commented Oct 11, 2016

@Reozil what's your npm version? Please update to the latest version

@shahen94
Copy link

shahen94 commented Oct 15, 2016

+1 Same problem on Windows 10

I'm getting the same error on ng --version or ng new testProject

@shahen94
Copy link

shahen94 commented Oct 15, 2016

@Reozil I solve it.
just we need to install it globally
npm install -g process-nextick-args

After that try to run again
ng new testProject

🎉 Cheers !🎉

@Disk1of5
Copy link

Disk1of5 commented Oct 16, 2016

Still also getting
Error: Cannot find module 'process-nextick-args'
any time i use ng
even after npm install -g --save process-nextick-args
nodejs: v6.8.1
npm: v6.8.1

OS: ubuntu 16.04
and i have tried this with both angular-cli and angular-cli@latest, this is very frustrating it seems the hardest part about anguarl2 is getting angular-cli to work

@shahen94
Copy link

shahen94 commented Oct 16, 2016

@Disk1of5
Please try without --save, it's my mistake
npm install -g process-nextick-args

@filipesilva
Copy link
Contributor

Dupe of #1930

@Daniyal857
Copy link

I have an issue after installing angular-cli globally on my machine. I typed ng new (project name) to create a new project, but it gives error in the end.
Please see blow screens.

capture1
capture2
capture3

@AyushAgrawal104
Copy link

Same Problem as above

@deepakm95
Copy link

Hey Delete package.json file from main directory and run agin "ng new my-app"

@ankitpinl
Copy link

ankitpinl commented Jun 22, 2018

Same problem as above.

Here is the ng version

Angular CLI: 6.0.8
Node: 9.11.1
OS: win32 x64
Angular:
...

  Package                      Version
  ------------------------------------------------------ 
 @angular-devkit/architect    0.6.8 
 @angular-devkit/core         0.6.8
 @angular-devkit/schematics   0.6.8
 @schematics/angular          0.6.8
 @schematics/update           0.6.8
  rxjs                         6.2.1
 typescript              2.7.2**

I am writing the code ng new recipe-book --prefix rb but got the same error. Package failed
ng

@pritammore
Copy link

Hey ankitpinl,

did you got any work round for your issue.
I am also facing the same one.

ng version

Angular CLI: 6.0.8
Node: 8.11.3
OS: win32 x64
Angular:
...

Package Version

@angular-devkit/architect 0.6.8
@angular-devkit/core 0.6.8
@angular-devkit/schematics 0.6.8
@schematics/angular 0.6.8
@schematics/update 0.6.8
rxjs 6.2.1
typescript 2.7.2

@ankitpinl
Copy link

Hey, pritammore

I have uninstalled CLI 6.0.8 and installed 6.0.0 CLI and run the command ng new and it is working perfectly.

@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 8, 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