Unhandled rejection Error: EACCES: permission denied (angular, npm install)


(Dmitriy D) #1

When creating new angular app, npm i results in weird error.
npm 6.4.0
Angular CLI: 7.2.1
Node: 10.15.0
OS: darwin x64
Angular:

Package Version

@angular-devkit/architect 0.12.1
@angular-devkit/core 7.2.1
@angular-devkit/schematics 7.2.1
@schematics/angular 7.2.1
@schematics/update 0.12.1
rxjs 6.3.3
typescript 3.2.2

Unhandled rejection Error: EACCES: permission denied, open ‘/Users/dmitriydementor/.npm/_cacache/index-v5/d9/b8/060d351e1572b1b8aafe22db0f23f359d28be3b50bf550e867cbfa2a1a6a’

npm WARN deprecated circular-json@0.5.9: CircularJSON is in maintenance only, flatted is its successor.

Unhandled rejection Error: EACCES: permission denied, open ‘/Users/dmitriydementor/.npm/_cacache/index-v5/12/17/9a0197f93cfa5c77329e872da9ae5ebde8bbe822837be84b93507aad2e9c’

Unhandled rejection Error: EACCES: permission denied, open ‘/Users/dmitriydementor/.npm/_cacache/index-v5/ab/6a/e2bfcdcd826a4dfd2b7035faa7ac5921cb0563c853a0427c938b4eafd338’

Unhandled rejection Error: EACCES: permission denied, open ‘/Users/dmitriydementor/.npm/_cacache/index-v5/ab/6a/e2bfcdcd826a4dfd2b7035faa7ac5921cb0563c853a0427c938b4eafd338’

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:

npm ERR! <https://npm.community>

npm ERR! A complete log of this run can be found in:

npm ERR! /Users/dmitriydementor/.npm/_logs/2019-01-28T20_50_33_473Z-debug.log

Dmitriys-MacBook-Air:ng-new dmitriydementor$ cat /Users/dmitriydementor/.npm/_logs/2019-01-28T20_50_33_473Z-debug.log


(Dmitriy D) #2

Found a solution
sudo npm cache clean --force --unsafe-perm
and then npm i goes normally


(Esinniobiwa Quareeb) #3

Worked perfectly… this is it

After 3days of worries… Thanks @dmitriydementor


(system) closed #4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.