npm报错

× Install fail! Error: EPERM: operation not permitted, symlink 'F:\WebstormProjects\Vue\test\node_modules\_@babel_helper-plugin-utils@7.0.0@@babel\helper-plugin-utils' -> 'F:\WebstormProjects\Vue\test\node_modules\_@babel_preset-env@7.3.1@@babel\preset-env\node_modules\@babel\helper-plugin-utils'
 Error: EPERM: operation not permitted, symlink 'F:\WebstormProjects\Vue\test\node_modules\_@babel_helper-plugin-utils@7.0.0@@babel\helper-plugin-utils' -> 'F:\WebstormProjects\Vue\test\node_modules\_@babel_preset-env@7.3.1@@babel\preset-env\node_modules\@babel\helper-plugin-utils'
 npminstall version: 3.12.0
 npminstall args: C:\Program Files\nodejs\node.exe C:\Users\24972\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\bin\install.js --fix-bug-versions --china --userconfig=C:\Users\24972\.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.npm.taobao.org

package.json:
{
  "name": "webpack-study",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "dev": "webpack-dev-server --hot"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "@babel/core": "^7.2.2",
    "@babel/plugin-proposal-class-properties": "^7.3.0",
    "@babel/plugin-transform-runtime": "^7.2.0",
    "@babel/preset-env": "^7.3.1",
    "babel-loader": "^8.0.5",
    "babel-plugin-component": "^1.1.1",
    "bootstrap": "^4.2.1",
    "css-loader": "^2.1.0",
    "file-loader": "^3.0.1",
    "html-webpack-plugin": "^3.2.0",
    "style-loader": "^0.23.1",
    "url-loader": "^1.1.2",
    "vue-loader": "^15.6.1",
    "vue-router": "^3.0.2",
    "vue-template-compiler": "^2.5.22",
    "webpack": "^4.29.0",
    "webpack-cli": "^3.2.1",
    "webpack-dev-server": "^3.1.14"
  },
  "dependencies": {
    "@babel/runtime": "^7.3.1",
    "mint-ui": "^2.2.13",
    "vue": "^2.5.22"
  }
}
查了StackOverflow没有找到类似情况,求助各位牛友
#前端#
全部评论
是不是cnpm和npm混用导致的
点赞 回复 分享
发布于 2019-02-07 16:57
试试sudo npm install,可能是没权限。 或者把npm缓存清一下 npm *** clean -f。
点赞 回复 分享
发布于 2019-02-07 18:46
重装了node和cnpm,清理了***,运行install的时候腾讯管家报了node漏洞攻击,忽略,然后现在能用了
点赞 回复 分享
发布于 2019-02-07 20:31
看起来像是权限的问题
点赞 回复 分享
发布于 2019-02-07 20:52
关掉360
点赞 回复 分享
发布于 2019-02-07 22:44
建议用nrm,别用cnpm了
点赞 回复 分享
发布于 2019-02-08 16:41

相关推荐

伟大的烤冷面被普调:暨大✌🏻就是强
点赞 评论 收藏
分享
评论
点赞
收藏
分享
牛客网
牛客企业服务