我刚从Mac转移到PC,由于某种原因,PC npm链接失败。它可以在我的本地驱动器上工作,但是我需要链接到服务器上,就像在Mac上对每个项目所做的一样。
我在全局安装节点模块,然后尝试运行npm link
我收到以下错误
Z:\Work in progress\Creative work\[*omitted*]\Production\Banners\Build-KIT1-KIT3>npm link gulp
npm ERR! path C:\Users\ilove\AppData\Roaming\npm\node_modules\gulp
npm ERR! code UNKNOWN
npm ERR! errno -4094
npm ERR! syscall symlink
npm ERR! UNKNOWN: unknown error, symlink 'C:\Users\ilove\AppData\Roaming\npm\node_modules\gulp' -> 'Z:\Work in progress\Creative work\[*omitted*]\Production\Banners\Build-KIT1-KIT3\node_modules\gulp'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ilove\AppData\Roaming\npm-cache\_logs\2019-03-13T11_32_22_691Z-debug.log
这也是日志文件
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\NodeJs\\node.exe',
1 verbose cli 'C:\\Program Files\\NodeJs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'link',
1 verbose cli 'gulp' ]
2 info using npm@6.4.1
3 info using node@v10.15.3
4 verbose link symlinking C:\Users\ilove\AppData\Roaming\npm\node_modules\gulp to Z:\Work in progress\Creative work\[*omitted*]\Production\Banners\Build-KIT1-KIT3\node_modules\gulp
5 verbose stack Error: UNKNOWN: unknown error, symlink 'C:\Users\ilove\AppData\Roaming\npm\node_modules\gulp' -> 'Z:\Work in progress\Creative work\[*omitted*]\Production\Banners\Build-KIT1-KIT3\node_modules\gulp'
6 verbose cwd Z:\Work in progress\Creative work\[*omitted*]\Production\Banners\Build-KIT1-KIT3
7 verbose Windows_NT 10.0.17763
8 verbose argv "C:\\Program Files\\NodeJs\\node.exe" "C:\\Program Files\\NodeJs\\node_modules\\npm\\bin\\npm-cli.js" "link" "gulp"
9 verbose node v10.15.3
10 verbose npm v6.4.1
11 error path C:\Users\ilove\AppData\Roaming\npm\node_modules\gulp
12 error code UNKNOWN
13 error errno -4094
14 error syscall symlink
15 error UNKNOWN: unknown error, symlink 'C:\Users\ilove\AppData\Roaming\npm\node_modules\gulp' -> 'Z:\Work in progress\Creative work\[*omitted*]\Production\Banners\Build-KIT1-KIT3\node_modules\gulp'
16 verbose exit [ -4094, true ]