Skip to content

Found a fix for missing module "process-nextick-args" error #2189

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
johnazre opened this issue Sep 17, 2016 · 7 comments
Closed

Found a fix for missing module "process-nextick-args" error #2189

johnazre opened this issue Sep 17, 2016 · 7 comments

Comments

@johnazre
Copy link

Please provide us with the following information:

  1. OS? Mac OSX (El Capitan)
  2. Versions: NodeJS 4.x.x, NPM 3.x.x (I found the fix before posting here, but that's what it was.)
  3. Repro steps: Was not able to fully install an app because of missing module "process-nextick-args" error.
  4. The log given by the failure. Normally this include a stack trace and some
    more information.

Cannot find module 'process-nextick-args'
Error: Cannot find module 'process-nextick-args'
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. (/usr/local/lib/node_modules/angular-cli/node_modules/readable-stream/lib/_stream_readable.js:6:23)
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)
at require (internal/module.js:12:17)
at Object. (/usr/local/lib/node_modules/angular-cli/node_modules/readable-stream/readable.js:6:28)
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)
at require (internal/module.js:12:17)
at Object. (/usr/local/lib/node_modules/angular-cli/node_modules/memory-fs/lib/MemoryFileSystem.js:8:14)
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)
at require (internal/module.js:12:17)
at Object. (/usr/local/lib/node_modules/angular-cli/node_modules/webpack-dev-middleware/middleware.js:5:24)
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)
at require (internal/module.js:12:17)
at Object. (/usr/local/lib/node_modules/angular-cli/node_modules/webpack-dev-server/lib/Server.js:3:28)
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)
at require (internal/module.js:12:17)
at Object. (/usr/local/lib/node_modules/angular-cli/tasks/serve-webpack.js:8:24)
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)
at require (internal/module.js:12:17)
at Object. (/usr/local/lib/node_modules/angular-cli/commands/serve.js:7:23)
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)
at require (internal/module.js:12:17)
at Class.module.exports.includedCommands (/usr/local/lib/node_modules/angular-cli/addon/index.js:21: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:82:5)
at nextTickCallbackWith0Args (node.js:420:9)
at process._tickCallback (node.js:349:13)

  1. Mention any other details that might be useful.

I was able to fix this by installing the newest version of NodeJS (v6.6.0) from the package on nodejs.org, then uninstalling and reinstalling the angular-cli.

I hope that helps someone!!!

@johnazre johnazre changed the title Fix for missing module "process-nextick-args" on OSX El Capitan Found a fix for missing module "process-nextick-args" error Sep 17, 2016
@sgruhier
Copy link

Thanks
or if you cannot upgrade node, a simple

npm install -g process-nextick-args

works too

@johnazre
Copy link
Author

After pushing it it to a repo and pulling it on my Windows 10 computer. I encountered the same "process-nextick-args" issue when trying to run "ng serve". After installing it globally, it still didn't work, but after installing it to devDependencies it worked. Just to make sure it wasn't one or the other, I removed the global installation and it broke again. After replacing the global version and removing the local version in devDependencies, it broke again. Looks like you have to have "process-nextick-args" installed both globally and locally to your devDependencies for it to work, or at least such is the case with Windows 10.

@filipesilva
Copy link
Contributor

Dupe of #1930

@MatteoNY
Copy link

Thanks! fix for next tick worked on my work PC Win.7

@abe903
Copy link

abe903 commented Nov 13, 2017

Thanks! Finally that fixed it.

@sushilcmd
Copy link

I think this issue occur because of node version .So update your node and npm version.
I had same issue then i updated my node and npm version and install angular CLI :)

Check node version

nodejs --version

Update node version

sudo apt-get install nodejs

Update npm version

sudo apt-get install npm

Install angular CLI

npm install -g @angular/cli

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

6 participants