node.js – npm install错误:EPERM:不允许操作,符号链接’../mkdirp/bin/cmd.js’

前端之家收集整理的这篇文章主要介绍了node.js – npm install错误:EPERM:不允许操作,符号链接’../mkdirp/bin/cmd.js’前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
重新安装节点和npm后仍然失败.
这是完整的错误消息
npm ERR! Linux 4.8.0-34-generic
npm ERR! argv "/home/lt1pchanifa/.nvm/versions/node/v6.9.3/bin/node" "/home/lt1pchanifa/.nvm/versions/node/v6.9.3/bin/npm" "install"
npm ERR! node v6.9.3
npm ERR! npm  v4.0.5
npm ERR! path ../mkdirp/bin/cmd.js
npm ERR! code EPERM
npm ERR! errno -1
npm ERR! syscall symlink

npm ERR! Error: EPERM: operation not permitted,symlink '../mkdirp/bin/cmd.js' -> '/media/lt1pchanifa/B0D0-8B34/Edwin/thinkster-ng2/node_modules/@angular-cli/ast-tools/node_modules/.bin/mkdirp'
npm ERR!     at Error (native)
npm ERR!  { Error: EPERM: operation not permitted,symlink '../mkdirp/bin/cmd.js' -> '/media/lt1pchanifa/B0D0-8B34/Edwin/thinkster-ng2/node_modules/@angular-cli/ast-tools/node_modules/.bin/mkdirp'
npm ERR!     at Error (native)
npm ERR!   errno: -1,npm ERR!   code: 'EPERM',npm ERR!   syscall: 'symlink',npm ERR!   path: '../mkdirp/bin/cmd.js',npm ERR!   dest: '/media/lt1pchanifa/B0D0-8B34/Edwin/thinkster-ng2/node_modules/@angular-cli/ast-tools/node_modules/.bin/mkdirp',npm ERR!   parent: '@angular-cli/ast-tools' }

解决方法

您正尝试在Windows FAT32文件夹中的Linux平台上运行npm.
/media/lt1pchanifa/B0D0-8B34/Edwin/thinkster-ng2

根据github issue,尝试访问Windows分区时出现权限问题.尝试将项目移动到主目录,即EXT4并运行命令.

猜你在找的Node.js相关文章