Install fail! Error: EPERM: operation not permitted

1、错误描述

C:\Users\Administrator.USER-0GUONPPBHK>cd D:\njws\vue-simple\cmp

C:\Users\Administrator.USER-0GUONPPBHK>d:

D:\njws\vue-simple\cmp>cnpm install echarts -S
× Install fail! Error: EPERM: operation not permitted, symlink 'D:\njws\vue-sim
ple\cmp\node_modules\[email protected]@zrender' -> 'D:\njws\vue-simple\cmp\node_mod
ules\[email protected]@echarts\node_modules\zrender'
Error: EPERM: operation not permitted, symlink 'D:\njws\vue-simple\cmp\node_modu
les\[email protected]@zrender' -> 'D:\njws\vue-simple\cmp\node_modules\[email protected]
.0@echarts\node_modules\zrender'
npminstall version: 3.3.0
npminstall args: D:\nodejs\node.exe C:\Users\Administrator.USER-0GUONPPBHK\AppDa
ta\Roaming\npm\node_modules\cnpm\node_modules\npminstall\bin\install.js --china
--userconfig=C:\Users\Administrator.USER-0GUONPPBHK\.cnpmrc --disturl=https://np
m.taobao.org/mirrors/node --registry=https://registry.npm.taobao.org echarts -S

D:\njws\vue-simple\cmp>cnpm install echarts -S
× Install fail! Error: EPERM: operation not permitted, symlink 'D:\njws\vue-sim
ple\cmp\node_modules\[email protected]@zrender' -> 'D:\njws\vue-simple\cmp\node_mod
ules\[email protected]@echarts\node_modules\zrender'
Error: EPERM: operation not permitted, symlink 'D:\njws\vue-simple\cmp\node_modu
les\[email protected]@zrender' -> 'D:\njws\vue-simple\cmp\node_modules\[email protected]
.0@echarts\node_modules\zrender'
npminstall version: 3.3.0
npminstall args: D:\nodejs\node.exe C:\Users\Administrator.USER-0GUONPPBHK\AppDa
ta\Roaming\npm\node_modules\cnpm\node_modules\npminstall\bin\install.js --china
--userconfig=C:\Users\Administrator.USER-0GUONPPBHK\.cnpmrc --disturl=https://np
m.taobao.org/mirrors/node --registry=https://registry.npm.taobao.org echarts -S

D:\njws\vue-simple\cmp>npm install echarts -S
npm WARN checkPermissions Missing write access to D:\njws\vue-simple\cmp\node_mo
dules\zrender
npm WARN checkPermissions Missing write access to D:\njws\vue-simple\cmp\node_mo
dules\echarts
npm ERR! path D:\njws\vue-simple\cmp\node_modules\zrender
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access 'D:\njws\vue-simple\cm
p\node_modules\zrender'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator.USER-0GUONPPBHK\AppData\Roaming\npm-cache\_l
ogs\2018-07-09T01_26_37_106Z-debug.log

D:\njws\vue-simple\cmp>npm install zrender
npm WARN checkPermissions Missing write access to D:\njws\vue-simple\cmp\node_mo
dules\zrender
npm ERR! path D:\njws\vue-simple\cmp\node_modules\zrender
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access 'D:\njws\vue-simple\cm
p\node_modules\zrender'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator.USER-0GUONPPBHK\AppData\Roaming\npm-cache\_l
ogs\2018-07-09T01_27_13_677Z-debug.log

D:\njws\vue-simple\cmp>npm install zrender
npm WARN checkPermissions Missing write access to D:\njws\vue-simple\cmp\node_mo
dules\zrender
npm ERR! path D:\njws\vue-simple\cmp\node_modules\zrender
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access 'D:\njws\vue-simple\cm
p\node_modules\zrender'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator.USER-0GUONPPBHK\AppData\Roaming\npm-cache\_l
ogs\2018-07-09T01_27_23_559Z-debug.log

D:\njws\vue-simple\cmp>npm install zrender
npm WARN checkPermissions Missing write access to D:\njws\vue-simple\cmp\node_mo
dules\zrender
npm ERR! path D:\njws\vue-simple\cmp\node_modules\zrender
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access 'D:\njws\vue-simple\cm
p\node_modules\zrender'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator.USER-0GUONPPBHK\AppData\Roaming\npm-cache\_l
ogs\2018-07-09T01_28_18_340Z-debug.log

D:\njws\vue-simple\cmp>npm config set registry https://registry.npm.taobao.org

D:\njws\vue-simple\cmp>
D:\njws\vue-simple\cmp>npm --registry https://registry.npm.taobao.org info under
score

[email protected] | MIT | deps: none | versions: 35
JavaScript's functional programming helper library.
http://underscorejs.org

dist
.tarball http://registry.npm.taobao.org/underscore/download/underscore-1.9.1.tgz

.shasum: 06dce34a0e68a7babc29b365b8e74b8925203961

maintainers:
- jashkenas 
- jridgewell 

dist-tags:
latest: 1.9.1  stable: 1.9.0

published a month ago by jashkenas 

D:\njws\vue-simple\cmp>
D:\njws\vue-simple\cmp>cnpm install echarts -S
× Install fail! Error: EPERM: operation not permitted, symlink 'D:\njws\vue-sim
ple\cmp\node_modules\[email protected]@zrender' -> 'D:\njws\vue-simple\cmp\node_mod
ules\[email protected]@echarts\node_modules\zrender'
Error: EPERM: operation not permitted, symlink 'D:\njws\vue-simple\cmp\node_modu
les\[email protected]@zrender' -> 'D:\njws\vue-simple\cmp\node_modules\[email protected]
.0@echarts\node_modules\zrender'
npminstall version: 3.3.0
npminstall args: D:\nodejs\node.exe C:\Users\Administrator.USER-0GUONPPBHK\AppDa
ta\Roaming\npm\node_modules\cnpm\node_modules\npminstall\bin\install.js --china
--userconfig=C:\Users\Administrator.USER-0GUONPPBHK\.cnpmrc --disturl=https://np
m.taobao.org/mirrors/node --registry=https://registry.npm.taobao.org echarts -S

D:\njws\vue-simple\cmp>

2、错误原因

     使用npm安装echarts,提示找不到npm ERR! path D:\njws\vue-simple\cmp\node_modules\zrender;使用cnpm安装echarts,提示 Install fail! Error: EPERM: operation not permitted

3、解决办法

(1)使用管理员账号运行这个命令

(2)使用npm命令

你可能感兴趣的:(Vue.js)