npm install 安装报错解决办法
程序员文章站
2022-05-30 16:30:03
...
npm install 安装报错解决办法
解决方案
报错——operation not permitted(没有许可证)
原因】npm的版本过高,导致一些依赖包下载不全
解决】npm install 后面增加–no-optional
npm install --no-optional
$ npm install --no-optional
[email protected] install /data/web/vue-datascreen/node_modules/yorkie
node bin/install.js
报错:Error: EACCES: permission denied
setting up Git hooks
{ Error: EACCES: permission denied, open '/data/web/vue-datascreen/.git/hooks/applypatch-msg'
at Object.openSync (fs.js:434:3)
at Object.writeFileSync (fs.js:1154:35)
at write (/data/web/vue-datascreen/node_modules/yorkie/src/install.js:18:6)
at createHook (/data/web/vue-datascreen/node_modules/yorkie/src/install.js:45:5)
at /data/web/vue-datascreen/node_modules/yorkie/src/install.js:86:21
at Array.map (<anonymous>)
at installFrom (/data/web/vue-datascreen/node_modules/yorkie/src/install.js:83:10)
at Object.<anonymous> (/data/web/vue-datascreen/node_modules/yorkie/bin/install.js:24:1)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
errno: -13,
syscall: 'open',
code: 'EACCES',
path: '/data/web/vue-datascreen/.git/hooks/applypatch-msg' }
提示没权限,需要修改当前目录文件权限
chmod 777 -R ./
再次执行则不报错
上一篇: 猜数字游戏-学员版本
下一篇: Elasticsearch介绍及安装
推荐阅读
-
Python 安装第三方库 pip install 安装慢安装不上的解决办法
-
Python 安装第三方库 pip install 安装慢安装不上的解决办法
-
vue踩坑记-在项目中安装依赖模块npm install报错
-
npm install 安装深坑
-
Android安装应用 INSTALL_FAILED_DEXOPT 问题及解决办法
-
CentOS安装Nginx 报错“configure: error: the HTTP rewrite module requires the PCRE library”解决办法
-
vue踩坑记-在项目中安装依赖模块npm install报错
-
window环境下npm install node-sass报错的解决方法
-
解决小米手机USB安装apk时AS报错:INSTALL_FAILED_USER_RESTRICTED
-
离线安装opencv_python-3.4.1.15-cp36-cp36m-win_amd64报错解决办法