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.

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:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:13

github_iconTop GitHub Comments

13reactions
amoncusircommented, Jun 6, 2019

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!

6reactions
renantaroucocommented, Jun 5, 2019

When installed node and npm with snap I had to run the following command in order to install @angular/cli globally:

sudo npm install -g @angular/cli --scripts-prepend-node-path

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

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