npm ERR! path: '/usr/local/lib/node_modules/npm/node_modules/cacache/node_modules/ssri' }

在安装appium 或者升级npm的过程中会遇到这个问题。出错时的代码提示如下:

npm ERR! path /usr/local/lib/node_modules/npm/node_modules/cacache/node_modules/ssri
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules/npm/node_modules/cacache/node_modules/ssri‘
npm ERR!  { Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules/npm/node_modules/cacache/node_modules/ssri‘
npm ERR!   stack: ‘Error: EACCES: permission denied, access \‘/usr/local/lib/node_modules/npm/node_modules/cacache/node_modules/ssri\‘‘,
npm ERR!   errno: -13,
npm ERR!   code: ‘EACCES‘,
npm ERR!   syscall: ‘access‘,
npm ERR!   path: ‘/usr/local/lib/node_modules/npm/node_modules/cacache/node_modules/ssri‘ }
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
*************

解决方案:

sudo npm i  -g npm

npm ERR! path: '/usr/local/lib/node_modules/npm/node_modules/cacache/node_modules/ssri' }

原文地址:https://www.cnblogs.com/xiyuan2016/p/9152051.html

时间: 2024-10-18 23:45:50

npm ERR! path: '/usr/local/lib/node_modules/npm/node_modules/cacache/node_modules/ssri' }的相关文章

WARN checkPermissions Missing write access to /usr/local/lib/node_modules

npm install -g bower 报错 npm install -g bower npm WARN deprecated [email protected]: We don't recommend using Bower for new projects. Please consider Yarn and Webpack or Parcel. You can read how to migrate legacy project here: https://bower.io/blog/20

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules 解决方法: 修改npm包所安装目录的权限:sudo chown -R $USER /usr/local   然后输入密码就可以了 原文地址:https://www.cnblogs.com/jimmy1293/p/10822802.html

mac 安装polymer cli Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/polymer-cli/node_modules/wd/build'

安装的时候根据说明,需要使用npm install -g polymer-cli命令,但是一直提示没有权限, 后来增加sudo后提示如下, Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/polymer-cli/node_modules/wd/build' at Object.fs.mkdirSync (fs.js:905:18) at sync (/usr/local/lib/node_modules/p

mysql: symbol lookup error: /usr/local/lib/libreadline.so.6: undefined symbol: UP

Error Symptom: when you run $mysql -u root -p command in the linux you get an error message ” mysql: symbol lookup error: /usr/local/lib/libreadline.so.6: undefined symbol: UP” Solution: Step 1: Login as root Step 2: Go to folder path #cd/usr/local/l

/usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:118:in `git_version': Failed to extract git version from `git --version`

问题及分析 今天做项目的时候,执行pod update报了如下错误信息: /usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:118:in git_version': Failed to extract git version fromgit --version("xcrun: error: active developer path (\"/Users/feiwei/Desktop/

error: <class 'xml.parsers.expat.ExpatError'>, syntax error: line 1, column 0: file: /usr/local/lib/python2.7/xmlrpclib.py line: 557

当linux设备上开启sonar6.2时, supervisorctl status报如下错误: error: <class 'xml.parsers.expat.ExpatError'>, syntax error: line 1, column 0: file: /usr/local/lib/python2.7/xmlrpclib.py line: 557 关闭sonar6.2时,报如下错误: error: <class 'socket.error'>, [Errno 113]

lua-5.2.3编译问题&quot;/usr/local/lib/libreadline.so: undefined reference to `PC&#39;&quot;

作者:zhanhailiang 日期:2014-10-21 [root@~/software]# cd lua-5.2.3 [root@~/software/lua-5.2.3]# make linux cd src && make linux make[1]: Entering directory `/root/software/lua-5.2.3/src' make all SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,

/usr/local/lib/libz.a: could not read symbols: Bad value

64位系统中,安装freetype时,出现这个问题.后来发现,此问题进出现在64位系统中. 修复方法: cd zlib-1.2.3 //进入zlib目录 CFLAGS="-O3 -fPIC" ./configure //使用64位元的方法进行编译 make make install 然后,进入freetype目录中 make clean ./configure --prefix=/usr/local/freetype/ make && make install /usr

recompile with -fPIC /usr/local/lib/libboost_python.a: could not read symbols: Bad value

在用boost库的时候遇到了一些挫折,本文记录下来方便大家参考: 1. libboost_python.so: file not recognized: File truncated 我们来看一下libboost_python.so文件,确实是存在的: 那么file truncated大多是因为文件损坏所致,所以我们重装下boost(安装命令可以用这个稍微改改),即可解决该问题. 2. /usr/bin/ld: /usr/local/lib/libboost_python.a(list.o):