Please provide us with the following information:
I have executed the command npm install -g @angular/cli in cmd prompt as an Admin
OS?
Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Windows10
Please run
ng --version. If there's nothing outputted, please run in a Terminal:node --versionand paste the result here:
npm -v
4.3.0
node -v
v6.9.5
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
Angular CLI installation fails
Normally this include a stack trace and some more information.
99465 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\@angular\cli\node_modules\chokidar\node_modules\fsevents):
99466 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
99467 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: darwin
99467 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any
99467 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: win32
99467 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
99468 verbose stack Error: [email protected] postinstall:node scripts/build.js
99468 verbose stack Exit status 1
99468 verbose stack at EventEmitter.(C:\Users\Ravikumar_Pilla\AppData\Roaming\npm\node_modules\npm\lib\utils\lifecycle.js:279:16)
99468 verbose stack at emitTwo (events.js:106:13)
99468 verbose stack at EventEmitter.emit (events.js:191:7)
99468 verbose stack at ChildProcess.(C:\Users\Ravikumar_Pilla\AppData\Roaming\npm\node_modules\npm\lib\utils\spawn.js:40:14)
99468 verbose stack at emitTwo (events.js:106:13)
99468 verbose stack at ChildProcess.emit (events.js:191:7)
99468 verbose stack at maybeClose (internal/child_process.js:877:16)
99468 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
99469 verbose pkgid [email protected]
99470 verbose cwd C:\Users\Ravikumar_Pilla\AppData\Roaming\npm\node_modules
99471 error Windows_NT 10.0.10586
99472 error argv "C:\Program Files (x86)\nodejs\node.exe" "C:\Users\Ravikumar_Pilla\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "-g" "@angular/cli"
99473 error node v6.9.5
99474 error npm v4.3.0
99475 error code ELIFECYCLE
99476 error errno 1
99477 error [email protected] postinstall:node scripts/build.js
99477 error Exit status 1
99478 error Failed at the [email protected] postinstall script 'node scripts/build.js'.
99478 error Make sure you have the latest version of node.js and npm installed.
99478 error If you do, this is most likely a problem with the node-sass package,
99478 error not with npm itself.
99478 error Tell the author that this fails on your system:
99478 error node scripts/build.js
99478 error You can get information on how to open an issue for this project with:
99478 error npm bugs node-sass
99478 error Or if that isn't available, you can get their info via:
99478 error npm owner ls node-sass
99478 error There is likely additional logging output above.
99479 verbose exit [ 1, true ]
gyp verb check python checking for Python executable "python2.7" in the PATH
gyp verb which failed Error: not found: python2.7
I am getting node-sass error in addition to the python error I copied here. After this post-install is showing
npm ERR! [email protected] postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node scripts/build.js'.
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 node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs node-sass
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls node-sass
npm ERR! There is likely additional logging output above.
Thanks! We'll be in touch soon.
Try installing Node's latest version?
Then try uninstall and re-install
npm uninstall -g @angular/cli
npm install -g @angular/cli
I've had issues where network traffic or other hiccups prevented it from installing the first time.
I have tried what @ jmb-mage said. But it is not resolving. Again facing the same issue
Should I need Git to be installed in my system because I am getting this error message also
[email protected] install C:\Users\Ravikumar_Pilla\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\node-sass
node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.5.0/win32-x64-48_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.5.0/win32-x64-48_binding.node":
getaddrinfo EAI_AGAIN github.com:443
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
If you don't know how to set up angular cli in your machine.
go ahead and watch this video. hope it helps you
Dupe of https://github.com/angular/angular-cli/issues/4429, fixed via https://github.com/angular/angular-cli/pull/5282 and available next time we do a release.
I'm not finding any work around for the following ,
Failed to install @angular/cli using npm
Error:
C:\ui>npm install -g -f @angular/cli
npm WARN using --force I sure hope you know what you are doing.
[ ...............] \ fetchMetadata: sill resolveWithNewModule [email protected] checking installable status
even I tried without -f still getting issue
As per the forum suggestion , tried
npm uninstall -g @angular/cli
npm cache clean
npm cache verify
npm install -g @angular/cli
Even I try to install externally chokidar package , even it is not resolved .
Please help me out.
My current
Node : 8.6.0
npm : 5.3.0
Even I tried with latest node version also, issue not resolved
just find the global directory of node_modules and delete node-scss directory from it.
And then try
sudo npm uninstall -g @angular/cli
sudo npm install -g @angular/cli
@praveenbommali did you manage to solve the issue, because I'm stuck with the very same problem?

@praveenbommali @nutb0ll I also stucked in same problem. Below solution works for me.
It would be better if you upgrade your node and npm versions to latest. After that please follow the below steps to install the angular/cli:
1) Open your command prompt with administrative privileges and uninstall angular/cli by using npm uninstall -g angular-cli command.
2) Remove node_modules directory and then clear the cache by using npm cache clear --force command.
3) Remove C:\Users\<username>\AppData\Roaming\npm\ and C:\Users\<username>\AppData\Roaming\npm-cache.
4) Try to install the angular/cli@latest by using npm install -g @angular/cli@latest command.
Hope the above trick resolve your issue.

how to solve this error
Hi,
I installed the angular cli using the git bash
but it throws me an error like this after the npm install -g @angular/cli
it gives like this result below:
$ npm install -g @angular/cli
npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EINTEGRITY: sha512-THTy2psb7CEKttcOxfVtnw1DrllArQ0B+tpie5sMOdH8q9wLBrCdTpOFC35bj+2b+vaqELWnDo2dXE+CxkGLhg== integrity checksum failed when using sha512: wanted sha512-THTy2psb7CEKttcOxfVtnw1DrllArQ0B+tpie5sMOdH8q9wLBrCdTpOFC35bj+2b+vaqELWnDo2dXE+CxkGLhg== but got sha512-/wH+1ZlLSnGRkQHyXh5NQ70Q/4o3gQp9AMliNVwr7XqmEBuPLW1EEb4+NwktnUP0A5alpbE6nW6BIroNTOIF9Q==. (307031 bytes)
npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
npm ERR! code EINTEGRITY
npm ERR! errno EINTEGRITY
npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/@angular%2fcli: Integrity verification failed for sha512-THTy2psb7CEKttcOxfVtnw1DrllArQ0B+tpie5sMOdH8q9wLBrCdTpOFC35bj+2b+vaqELWnDo2dXE+CxkGLhg== (C:\Users\Edoves\AppData\Roamingnpm-cache_cacache\content-v2\sha512\4c\74\f2da9b1bec210ab6d70ec5f56d9f0d43ae5940ad0d01fada627b9b0c39d1fcabdc0b06b09d4e93850b7e5b8fed9bfaf6aa10b5a70e8d9d5c4f82c6418b86)
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Edoves\AppData\Roamingnpm-cache_logs\2018-09-23T04_16_43_930Z-debug.log
have you experienced this too? can someone help me with this issue thanks in advance guys :)
IM ALSO FACING THE SAME PROBLEM IVE TRIED UNINSTALLING EVERYTHING BUT STILL IM GETTING THE SAME MESSAGE
Hi,
I installed the angular cli using the git bash
but it throws me an error like this after the npm install -g @angular/cli
it gives like this result below:
$ npm install -g @angular/cli
npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EINTEGRITY: sha512-THTy2psb7CEKttcOxfVtnw1DrllArQ0B+tpie5sMOdH8q9wLBrCdTpOFC35bj+2b+vaqELWnDo2dXE+CxkGLhg== integrity checksum failed when using sha512: wanted sha512-THTy2psb7CEKttcOxfVtnw1DrllArQ0B+tpie5sMOdH8q9wLBrCdTpOFC35bj+2b+vaqELWnDo2dXE+CxkGLhg== but got sha512-/wH+1ZlLSnGRkQHyXh5NQ70Q/4o3gQp9AMliNVwr7XqmEBuPLW1EEb4+NwktnUP0A5alpbE6nW6BIroNTOIF9Q==. (307031 bytes)
npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
npm ERR! code EINTEGRITY
npm ERR! errno EINTEGRITY
npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/@angular%2fcli: Integrity verification failed for sha512-THTy2psb7CEKttcOxfVtnw1DrllArQ0B+tpie5sMOdH8q9wLBrCdTpOFC35bj+2b+vaqELWnDo2dXE+CxkGLhg== (C:\Users\Edoves\AppData\Roamingnpm-cache_cacache\content-v2\sha512\4c\74\f2da9b1bec210ab6d70ec5f56d9f0d43ae5940ad0d01fada627b9b0c39d1fcabdc0b06b09d4e93850b7e5b8fed9bfaf6aa10b5a70e8d9d5c4f82c6418b86)
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Edoves\AppData\Roamingnpm-cache_logs\2018-09-23T04_16_43_930Z-debug.log
have you experienced this too? can someone help me with this issue thanks in advance guys :)
Hi,
Can someone help me with this error. when i am trying to install angular cli, i am getting the below error
Your environment has been set up for using Node.js 10.15.3 (ia32) and npm.
C:\Windows\System32>npm install -g @angular/cli
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to http://registry.npmjs.org/@angular%2fcli failed,
reason: connect ECONNREFUSED 192.168.0.4:8080
npm ERR! at ClientRequest.req.on.err (C:\Program Filesnodejsnode_modules\n
pmnode_modulesnode-fetch-npm\src\index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:189:13)
npm ERR! at Socket.socketErrorListener (_http_client.js:392:9)
npm ERR! at Socket.emit (events.js:189:13)
npm ERR! at emitErrorNT (internal/streams/destroy.js:82:8)
npm ERR! at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
npm ERR! at process._tickCallback (internal/process/next_tick.js:63:19)
npm ERR! { FetchError: request to http://registry.npmjs.org/@angular%2fcli fail
ed, reason: connect ECONNREFUSED 192.168.0.4:8080
npm ERR! at ClientRequest.req.on.err (C:\Program Filesnodejsnode_modules\n
pmnode_modulesnode-fetch-npm\src\index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:189:13)
npm ERR! at Socket.socketErrorListener (_http_client.js:392:9)
npm ERR! at Socket.emit (events.js:189:13)
npm ERR! at emitErrorNT (internal/streams/destroy.js:82:8)
npm ERR! at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
npm ERR! at process._tickCallback (internal/process/next_tick.js:63:19)
npm ERR! message:
npm ERR! 'request to http://registry.npmjs.org/@angular%2fcli failed, reason:
connect ECONNREFUSED 192.168.0.4:8080',
npm ERR! type: 'system',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! code: 'ECONNREFUSED',
npm ERR! stack:
npm ERR! 'FetchError: request to http://registry.npmjs.org/@angular%2fcli fai
led, reason: connect ECONNREFUSED 192.168.0.4:8080\n at ClientRequest.req.on.
err (C:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\
\src\index.js:68:14)\n at ClientRequest.emit (events.js:189:13)\n at Sock
et.socketErrorListener (_http_client.js:392:9)\n at Socket.emit (events.js:18
9:13)\n at emitErrorNT (internal/streams/destroy.js:82:8)\n at emitErrorAn
dCloseNT (internal/streams/destroy.js:50:3)\n at process._tickCallback (inter
nal/process/next_tick.js:63:19)' }
npm ERR!
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Sanesh\AppData\Roamingnpm-cache_logs\2019-03-16T02_02_02
_091Z-debug.log
I think its something to do with your network, its not connecting to the internet, check your network

could any one can help me here
are you using nvm ?
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._