npm link 报错
来源:11-9 npm link关联组件库+eslint初始化

爱思考的猫
2023-08-29
D:\阿伦\imooc-datav-libs-dev>cnpm link
npm ERR! code EPERM
npm ERR! syscall symlink
npm ERR! path D:\阿伦\imooc-datav-libs-dev
npm ERR! dest C:\Program Files\nodejs\node_modules\imooc-datav-libs-dev
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, symlink ‘D:\阿伦\imooc-datav-libs-dev’ -> 'C:\Program Files\nodejs\node_modules\imooc-datav-libs-dev’
npm ERR! [Error: EPERM: operation not permitted, symlink ‘D:\阿伦\imooc-datav-libs-dev’ -> ‘C:\Program Files\nodejs\node_modules\imooc-datav-libs-dev’] {
npm ERR! errno: -4048,
npm ERR! code: ‘EPERM’,
npm ERR! syscall: ‘symlink’,
npm ERR! path: ‘D:\阿伦\imooc-datav-libs-dev’,
npm ERR! dest: 'C:\Program Files\nodejs\node_modules\imooc-datav-libs-dev’
npm ERR! }
npm ERR!
npm ERR! 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!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in: C:\Users\alun\AppData\Local\npm-cache_logs\2023-08-29T02_34_33_164Z-debug-0.log
1回答
-
扬_灵
2023-08-30
同学你好,看这个提示是不允许操作,可以先检查当前登录用的是否有操作的权限。
052023-09-05
相似问题