npm install报错---The operation was rejected by your operating system
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了npm install报错---The operation was rejected by your operating system相关的知识,希望对你有一定的参考价值。
参考技术A npmERR!codeEPERMnpmERR!syscall unlinknpmERR!path E:\git\app-admin-frontendTW\node_modules\.staging\antd-6cdc5363\dist\antd-with-locales.min.jsnpmERR!errno-4048npmERR!Error:EPERM:operation not permitted,unlink'E:\git\app-admin-frontendTW\node_modules\.staging\antd-6cdc5363\dist\antd-with-locales.min.js'npmERR![OperationalError:EPERM:operation not permitted,unlink'E:\git\app-admin-frontendTW\node_modules\.staging\antd-6cdc5363\dist\antd-with-locales.min.js']npmERR!cause:[Error:EPERM:operation not permitted,unlink'E:\git\app-admin-frontendTW\node_modules\.staging\antd-6cdc5363\dist\antd-with-locales.min.js']npmERR!errno:-4048,npmERR!code:'EPERM',npmERR!syscall:'unlink',npmERR!path:'E:\\git\\app-admin-frontendTW\\node_modules\\.staging\\antd-6cdc5363\\dist\\antd-with-locales.min.js'npmERR!,npmERR!stack:"Error: EPERM: operation not permitted, unlink 'E:\\git\\app-admin-frontendTW\\node_modules\\.staging\\antd-6cdc5363\\dist\\antd-with-locales.min.js'",npmERR!errno:-4048,npmERR!code:'EPERM',npmERR!syscall:'unlink',npmERR!path:'E:\\git\\app-admin-frontendTW\\node_modules\\.staging\\antd-6cdc5363\\dist\\antd-with-locales.min.js',npmERR!parent:'app-admin-frontendTW'npmERR!npmERR!npmERR!Theoperation was rejected by your operating system.npmERR!It'spossible that the file was alreadyinuse(by a text editor or antivirus),npmERR!or that you lack permissions to access it.npmERR!npmERR!Ifyou believe this might be a permissions issue,please double-check thenpmERR!permissions of the file and its containing directories,ortryrunningnpmERR!the command againasroot/Administrator.解决办法:删除本机电脑用户目录下的.npmrc文件
eg: 删除 C:\Users\username\.npmrc
npm install 报错 chromedriver 安装失败
npm install 报错 chromedriver 安装失败:信息如下
Current existing ChromeDriver binary is unavailable, proceding with download and extraction.
Downloading from file: https://chromedriver.storage.googleapis.com/2.46/chromedriver_win32.zip
Saving to file: C:\\Users\\pchen\\AppData\\Local\\Temp\\2.46\\chromedriver\\chromedriver_win32.zip
ChromeDriver installation failed Error with http(s) request: Error: connect ETIMEDOUT 172.217.24.16:443
解决方法:
npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver
以上是关于npm install报错---The operation was rejected by your operating system的主要内容,如果未能解决你的问题,请参考以下文章
若依后台管理系统,前后端分离项目,输入npm install 报错node-sass@4.13.1 postinstall:`node scripts/build.js` Failed at the
输入npm install 报错node-sass@4.13.0 postinstall:`node scripts/build.js` Failed at the node-sass@4.13.0(