angular-cli: npm i -g angular-cli fails on windows 10 - on broccoli@1.0.beta.6 postinstall
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
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (3 by maintainers)
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.