Error to new install angular/cli@8.x.x with npm
See original GitHub issueπ Bug report
Command (mark with an x or write it if not found the right command)
[sudo] npm i -g @angular/cli
Is this a regression?
I can install the latest version (7.3.9)
Description
When try install the last version of angular-cli npm package the command output a error and the installation process exited with status 130.
I tried install with and without sudo privileges.
π¬ Minimal Reproduction
Run this command: npm i -g @angular/cli
π₯ Exception or Error
The npm output when run the install command:
[ ..........] \ extract:genfun: sill extract duplexify@3.7.1
/usr/local/bin/ng -> /usr/local/lib/node_modules/@angular/cli/bin/ng
> @angular/cli@8.0.0 postinstall /usr/local/lib/node_modules/@angular/cli
> node ./bin/postinstall/script.js
? Would you like to share anonymous usage data with the Angular Team at Google under
Googleβs Privacy Policy at https://policies.google.com/privacy? For more details and
npm ERR! code ELIFECYCLE
npm ERR! errno 130
npm ERR! @angular/cli@8.0.0 postinstall: `node ./bin/postinstall/script.js`
npm ERR! Exit status 130
npm ERR!
npm ERR! Failed at the @angular/cli@8.0.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/aran/.npm/_logs/2019-05-30T12_29_27_291Z-debug.log
And the log that npm create with the error (Iβve create a github gist because the file is too long): Gist Log
π Your Environment
NPM version: 6.4.1
OS: Ubuntu 18.04
Anything else relevant?
β¦?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:13
Top Results From Across the Web
npm install error ( npm install -g angular-cli ) in windows 10
Try the following: step 0: run this command npm uninstall -g @angular/cli npm cache clean.
Read more >How To Update Angular CLI To Latest Version
First update the local angular cli to version 8.3.17 or 8.x version by using below command. npm install --no-save @angular/cli@^8.3.15 Β· AfterΒ ...
Read more >the installed angular cli version is older than the latest stable ...
Here I got Error : Repository is not clean. Update changes will be mixed with pre-existing changes. Using package manager: 'npm' Collecting installed...
Read more >CLI Overview and Command Reference - Angular
Install the CLI using the npm package manager: ... To create, build, and serve a new, basic Angular project on a development server,...
Read more >Error while installing angular cli using npm - Edureka
It means the npm has skipped the dependencies. This would be solved if you update the npm version to the latest, use this...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hey! I finded a fast solution for solve this problem. I one of my attempts to know what happens, I see that if create a new user in the same os environment, the problem nothing happens.
My solution is remove all user data related with npm and angular cli, like .angular-config.json user file, .npm folder, .cache folder and others (I donβt remember all files that I removed π’)
That is possible it angular save any state or any others files in user folder? Or that it npm save any state or other think?
Thankβs!
When installed
nodeandnpmwithsnapI had to run the following command in order to install @angular/cli globally:sudo npm install -g @angular/cli --scripts-prepend-node-path