【发布时间】:2019-12-10 19:20:44
【问题描述】:
我正在尝试使用
安装 vue-clinpm install -g @vue/cli
我收到以下错误
Unhandled rejection Error: EACCES: permission denied, mkdir '/home/moeketsi/.npm/_cacache/tmp'
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://npm.community>
npm ERR! A complete log of this run can be found in:
npm ERR! /home/moeketsi/.npm/_logs/2019-08-02T07_16_39_683Z-debug.log
日志文件为available here。
当我尝试使用sudo 运行命令时,我得到了
sudo: npm: command not found
我正在使用节点 v10.16.1 和 npm vesrsion 是 6.9.0 。我从他们的website 安装了 node.js。我从post 和slightly different case 尝试了以下建议,但没有任何建议有帮助。
【问题讨论】: