Error: EACCES: permission denied, unlink '/vue-element-admin/node_modules/.bin/a
mac系统下执行 npm install 需要 root/Administrator 权限,命令前加 sudo 就可以了。
mac系统下执行 npm install 需要 root/Administrator 权限,命令前加 sudo 就可以了。
npm install
npm ERR! Darwin 16.7.0
npm ERR! argv "/Users/aven/.nvm/versions/node/v4.9.1/bin/node" "/Users/aven/.nvm/versions/node/v4.9.1/bin/npm" "install"
npm ERR! node v4.9.1
npm ERR! npm v2.15.11
npm ERR! path /Users/aven/Documents/xslgy/vue-element-admin/node_modules/.bin/acorn
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall unlink
npm ERR! Error: EACCES: permission denied, unlink '/Users/aven/Documents/xslgy/vue-element-admin/node_modules/.bin/acorn'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, unlink '/Users/aven/Documents/xslgy/vue-element-admin/node_modules/.bin/acorn']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'unlink',
npm ERR! path: '/Users/aven/Documents/xslgy/vue-element-admin/node_modules/.bin/acorn' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/aven/Documents/xslgy/vue-element-admin/npm-debug.log
本文由 微wx笑 创作,采用 署名-非商业性使用-相同方式共享 4.0 许可协议,转载请附上原文出处链接及本声明。
原文链接:https://www.ivu4e.cn/blog/front/2020-12-14/571.html