ubuntu – 安装yeoman时出错

我试图在我的ubuntu v16.4 LTS安装哟,但我收到这个错误
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is Now out of date with respect to npm
npm ERR! Linux 4.4.0-22-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "yo"
npm ERR! node v6.2.0
npm ERR! npm  v3.9.0
npm ERR! path /usr/local/lib/node_modules/yo/lib/cli.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory,chmod '/usr/local/lib/node_modules/yo/lib/cli.js'
npm ERR! enoent ENOENT: no such file or directory,chmod '/usr/local/lib/node_modules/yo/lib/cli.js'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! Please include the following file with any support request:
npm ERR!     /home/momor1/npm-debug.log

如你所见,我有最新的npm和nodejs,而且我是根模式,所以我仍然不明白为什么它抛出这个错误.任何帮助请:)

当您尝试安装最新版本(2016/04/18): 1.8.2时,似乎出现此错误

请尝试安装以前的版本:

sudo npm install -g yo@1.8.1

这是为我工作的.在使用OS X El Capitan v10.11.2,节点4.4.4和npm 3.9.0的干净的虚拟机上,并在具有OS X 10.11.5的开发人员机器上进行测试.

相关文章

目录前言一、创建Hadoop用户二、更新apt和安装Vim编辑器三、...
原文连接:https://www.cnblogs.com/yasmi/p/5192694.html ...
电脑重启后,打开VirtualBox,发现一直用的虚拟机莫名的消失...
参见:https://blog.csdn.net/weixin_38883338/article/deta...
Ubuntu 18.04 LTS 已切换到 Netplan 来配置网络接口。Netpla...
介绍每个 Web 服务都可以通过特定的 URL 在 Internet 上访问...