Paco Zevallos
Paco Zevallos

Reputation: 2295

angular 5 update to 6

In the process of updating my version of Angular from 5 to 6 something I did wrong and ended up getting the following errors:

npm WARN checkPermissions Missing write access to / usr / local / lib /node_modules/@angular/cli
npm WARN checkPermissions Missing write access to / usr / local / lib / node_modules / @ angular
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-pre-gyp@^0.9.0 (node_modules / @ angular / cli / node_modules / fsevents / node_modules / node-pre-gyp):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ELOOP: too many symbolic links found, open '/usr/local/lib/node_modules/@angular/cli/node_modules/fsevents/node_modules/node-pre-gyp/npm-shrinkwrap.json'
npm ERR! path / usr / local / lib / node_modules / @ angular / cli
npm ERR! code ELOOP
npm ERR! errno -62
npm ERR! syscall access
npm ERR! ELOOP: too many symbolic links encountered, access '/ usr / local / lib / node_modules / @ angular / cli'
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/pacozevallos/.npm/_logs/2018-05-10T16_23_40_078Z-debug.log

In any case how can I delete it and reinstall it?

I have Node 8.11.1 and my sistem is MacOS High Sierra 10.13.4

Any idea how I can solve it?

Upvotes: 0

Views: 169

Answers (1)

Ritwick Dey
Ritwick Dey

Reputation: 19022

I think, you're missing sudo.

Try this.

sudo npm uninstall -g @angular/cli
sudo npm cache clean
sudo npm i -g @angular/cli

or, delete all npm module (global)

sudo rm -rf /usr/local/lib/node_modules/npm

...and now reinstall node.js.

reference : https://docs.npmjs.com/getting-started/fixing-npm-permissions (If it is related permission - I think so)

Upvotes: 1

Related Questions