Closed denji closed 7 months ago
$ vim -> :q! Ideally, only the WARN without ERROR.
vim
:q!
WARN
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
I also encountered the same problem。
any fix for this i have the same problem
$
vim
->:q!
Ideally, only theWARN
withoutERROR
.