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

同学你好,看这个提示是不允许操作,可以先检查当前登录用的是否有操作的权限。

0
5
扬_灵
回复
爱思考的猫
同学你好,是的,可以通过where 模块名进行查看。
2023-09-05
共5条回复

数据可视化入门到精通-打造前端差异化竞争力

同级别前端,掌握数据可视化薪资更高

1520 学习 · 1043 问题

查看课程