安装淘宝镜像cnpm报错

npm 安装淘宝镜像报错

npm install -g cnpm --registry=https://registry.npm.taobao.org

安装报

The operation was rejected by your operating system.

npm ERR! It's possible that the file was already in use (by a text editor or antivirus),

npm ERR! or that you lack permissions to access it.

npm ERR!

-4048

解决办法

把这句命令

npm install -g cnpm --registry=https://registry.npm.taobao.org

改成指定版本就好了(版本号可以根据自己需求来)

npm install -g cnpm@7.1.1 --registry=https://registry.npm.taobao.org

就可以了

相关推荐
又写了一天BUG21 分钟前
npm install安装缓慢及npm更换源
前端·npm·node.js
森叶42 分钟前
Electron-vue asar 局部打包优化处理方案——绕开每次npm run build 超级慢的打包问题
vue.js·electron·npm
chen序员17 小时前
如何切换淘宝最新镜像源(npm)【2024版】
npm
FakeOccupational19 小时前
nodejs 007:错误npm error Error: EPERM: operation not permitted, symlink
前端·npm·node.js
亦舒.20 小时前
JSDelivr & NPM CDN 国内加速节点
前端·npm·node.js
代码搬运媛20 小时前
code eintegrity npm err sha512
前端·npm·node.js
猿来如此呀1 天前
运行npm install 时,卡在sill idealTree buildDeps没有反应
前端·npm·node.js
hw_happy1 天前
解决 npm ERR! node-sass 和 gyp ERR! node-gyp 报错问题
前端·npm·sass
程序员小羊!2 天前
切换淘宝最新镜像源npm详细讲解
前端·npm·node.js
图灵苹果2 天前
【个人博客hexo版】hexo安装时会出现的一些问题
前端·前端框架·npm·node.js