question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm i -g angular-cli fails on windows 10 - on broccoli@1.0.beta.6 postinstall

See original GitHub issue

Hans@HP-HANS C:\Users\Hans $ npm i -g angular-cli npm WARN deprecated lodash-node@2.4.1: This package has been discontinued in favor of lodash@^4.0.0. npm WARN deprecated graceful-fs@3.0.8: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible. C:\Users\Hans\AppData\Roaming\npm\ng -> C:\Users\Hans\AppData\Roaming\npm\node_modules\angular-cli\bin\ng

broccoli@1.0.0-beta.6 postinstall C:\Users\Hans\AppData\Roaming\npm\node_modules\angular-cli\node_modules\broccoli multidep test/multidep.json

broccoli-plugin 1.0.0: Installing npm WARN unmet dependency C:\Users\Hans\AppData\Roaming\npm\node_modules\assetgraph-builder\node_modules\node-pre-gyp requires rc@‘~1.1.0’ but will load npm WARN unmet dependency C:\Users\Hans\AppData\Roaming\npm\node_modules\assetgraph-builder\node_modules\rc, npm WARN unmet dependency which is version 0.5.5 npm WARN unmet dependency C:\Users\Hans\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\ionic-cordova-lib\node_modules\npm requires glob@‘~5.0.15’ but will load npm WARN unmet dependency C:\Users\Hans\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\ionic-cordova-lib\node_modules\glob, npm WARN unmet dependency which is version 4.0.6 npm WARN unmet dependency C:\Users\Hans\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\ionic-cordova-lib\node_modules\npm requires node-gyp@‘~3.0.3’ but will load npm WARN unmet dependency C:\Users\Hans\AppData\Roaming\npm\node_modules\node-gyp, npm WARN unmet dependency which is version 3.1.0 npm WARN unmet dependency C:\Users\Hans\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\ionic-cordova-lib\node_modules\npm requires osenv@‘~0.1.3’ but will load npm WARN unmet dependency C:\Users\Hans\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\ionic-cordova-lib\node_modules\osenv, npm WARN unmet dependency which is version 0.1.0 npm WARN unmet dependency C:\Users\Hans\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\ionic-cordova-lib\node_modules\npm requires request@‘~2.65.0’ but will load npm WARN unmet dependency C:\Users\Hans\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\ionic-cordova-lib\node_modules\request, npm WARN unmet dependency which is version 2.47.0 npm WARN unmet dependency C:\Users\Hans\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\ionic-cordova-lib\node_modules\npm requires semver@‘~5.0.3’ but will load npm WARN unmet dependency C:\Users\Hans\AppData\Roaming\npm\node_modules\ionic\node_modules\semver, npm WARN unmet dependency which is version 4.3.6 npm WARN unmet dependency C:\Users\Hans\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\ionic-cordova-lib\node_modules\npm requires tar@‘~2.2.1’ but will load npm WARN unmet dependency C:\Users\Hans\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\ionic-cordova-lib\node_modules\tar, npm WARN unmet dependency which is version 1.0.2 npm WARN unmet dependency C:\Users\Hans\AppData\Roaming\npm\node_modules\phonegap\node_modules\localtunnel\node_modules\request requires form-data@‘~0.0.3’ but will load npm WARN unmet dependency C:\Users\Hans\AppData\Roaming\npm\node_modules\phonegap\node_modules\form-data, npm WARN unmet dependency which is version 0.1.4 npm WARN unmet dependency C:\Users\Hans\AppData\Roaming\npm\node_modules\phonegap\node_modules\phonegap-build-api\node_modules\request requires form-data@‘~0.0.3’ but will load npm WARN unmet dependency C:\Users\Hans\AppData\Roaming\npm\node_modules\phonegap\node_modules\form-data, npm WARN unmet dependency which is version 0.1.4 npm ERR! Windows_NT 10.0.10586 npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Users\Hans\AppData\Roaming\npm\node_modules\angular-cli\node_modules\npm\bin\npm-cli.js” “install” “broccoli-plugin@1.0.0” npm ERR! node v5.3.0 npm ERR! npm v2.14.21 npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package yo@1.6.0 does not satisfy its siblings’ peerDependencies requirements! npm ERR! peerinvalid Peer generator-element@1.1.0 wants yo@>=1.0.0 npm ERR! peerinvalid Peer generator-fluxible@1.2.4 wants yo@>=1.0.0 npm ERR! peerinvalid Peer generator-g@0.0.1 wants yo@>=1.0.0 npm ERR! peerinvalid Peer generator-greenfield@1.6.1 wants yo@>=1.0.0 npm ERR! peerinvalid Peer generator-ionic@0.8.0 wants yo@>=1.0.0 npm ERR! peerinvalid Peer generator-jsmodule@0.2.0 wants yo@>=1.0.0 npm ERR! peerinvalid Peer generator-module@0.0.2 wants yo@>=1.0.0-rc.1 npm ERR! peerinvalid Peer generator-n@0.0.6 wants yo@>=1.0.0 npm ERR! peerinvalid Peer generator-node-mocha@0.1.0 wants yo@~1.1.2 npm ERR! peerinvalid Peer generator-refactoru-html@0.5.0 wants yo@>=1.0.0 npm ERR! peerinvalid Peer generator-skeletor@0.6.0 wants yo@>=1.0.4

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\Hans\AppData\Roaming\npm\node_modules\angular-cli\node_modules\broccoli\test\multidep\broccoli-plugin-1.0.0\npm-debug.log Error: npm exited with exit code 1, signal null at ChildProcess.<anonymous> (C:\Users\Hans\AppData\Roaming\npm\node_modules\angular-cli\node_modules\multidep\index.js:90:28) at emitTwo (events.js:87:13) at ChildProcess.emit (events.js:172:7) at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) C:\Users\Hans\AppData\Roaming\npm `-- (empty)

npm ERR! Windows_NT 10.0.10586 npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Users\Hans\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js” “i” “-g” “angular-cli” npm ERR! node v5.3.0 npm ERR! npm v3.7.1 npm ERR! code ELIFECYCLE

npm ERR! broccoli@1.0.0-beta.6 postinstall: multidep test/multidep.json npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the broccoli@1.0.0-beta.6 postinstall script ‘multidep test/multidep.json’. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the broccoli package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! multidep test/multidep.json npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs broccoli npm ERR! Or if that isn’t available, you can get their info via: npm ERR! npm owner ls broccoli npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\Hans\npm-debug.log npm ERR! code 1

Hans@HP-HANS C:\Users\Hans $ ng -version module.js:328 throw err; ^

Error: Cannot find module ‘C:\Users\Hans\AppData\Roaming\npm\node_modules\angular-cli\bin\ng’ at Function.Module._resolveFilename (module.js:326:15) at Function.Module._load (module.js:277:25) at Function.Module.runMain (module.js:430:10) at startup (node.js:141:18) at node.js:980:3

Hans@HP-HANS C:\Users\Hans $ npm -v 3.7.1

Hans@HP-HANS C:\Users\Hans $ node -v v5.3.0

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:17 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
williamhunter9094commented, Mar 24, 2017

I am using a fresh install of angular cli and on windows 10 it is not working.

It is very tantalising as I am general public and would like to imagine I can enter a platform such as Angular, and the offer of Angular CLI to provide quick deployment and production alternatives is a big draw. Then to discover, after falling into a rabbit hole of trial and error, that ng serve/build etc all don’t work on a fresh install; this is a bit of a con.

Angular appears to need to come with a health warning to those who prefer not to get sucked into a developer’s bug-fix ‘collaborative project’ vortex.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 6, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm i -g angular-cli fails on windows 10 · Issue #385 - GitHub
npm i -g angular-cli npm WARN deprecated lodash-node@2.4.1: This package has been ... broccoli@1.0.0-beta.6 postinstall C:\Users\Hans\AppData\Roaming\npm\ ...
Read more >
Windows 10 - Failed at the @angular/cli@8.2.2 postinstall script
I have done npm init and confirmed a package.json as well. ENOENT error. – Brent Lawson · The code mentions a complete log...
Read more >
Common errors | npm Docs
You are trying to install on a drive that either has no space, or has no permission to write. Free some disk space...
Read more >
Npm install command failing with message "could not find ...
And the node_modules folder is not created. My computer setup: Windows 10 - Version 21H1 build 19043.1165 NodeJS / NPM - v16.6.1 /...
Read more >
A Comprehensive Guide to Fixing Node-Gyp Issues on Windows
Try running npm install –no-optional to install only the required dependencies. If you run this and still get the error, I have bad...
Read more >

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found