L0stSoul / vim-config

Nice vim config for front-end development
289 stars 89 forks source link

Missing write access to /usr/lib/node_modules #56

Closed denji closed 7 months ago

denji commented 6 years ago

$ vim -> :q! Ideally, only the WARN without ERROR.

Installing typescript
npm WARN checkPermissions Missing write access to /usr/lib/node_modules
npm ERR! path /usr/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/lib/node_modules'
npm ERR!  { Error: EACCES: permission denied, access '/usr/lib/node_modules'
npm ERR!   stack: 'Error: EACCES: permission denied, access \'/usr/lib/node_modules\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/lib/node_modules' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/denji/.npm/_logs/.....-debug.log
❯ env LC_ALL=C ls -lah  --time-style='+' /usr/lib/node_modules
total 148K
drwxr-xr-x   4 root root 4.0K  .
drwxr-xr-x 234 root root 132K  ..
drwxr-xr-x  11 root root 4.0K  npm
drwxr-xr-x   5 root root 4.0K  yarn
qq254305197 commented 4 years ago

I also encountered the same problem。

kevyyar commented 3 years ago

any fix for this i have the same problem