gpt4 book ai didi

ubuntu - 安装 yeoman 时出错

转载 作者:太空宇宙 更新时间:2023-11-03 16:43:39 25 4
gpt4 key购买 nike

我正在尝试在我的 ubuntu v16.4 LTS 上安装 yo,但出现此错误:

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,而且我处于 root 模式,所以我仍然不明白为什么会抛出此错误。请提供任何帮助:)

最佳答案

似乎是在您尝试安装今天(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 的我的开发人员机器上进行了测试。

关于ubuntu - 安装 yeoman 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37296792/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com