无法安装"npm install -g yo"仅限全局的本地。



我正在尝试安装jhipster,但我无法安装

npm install -g yo

我收到这个

Yeoman Doctor
Running sanity checks on your system
✔ Global configuration file is valid
✔ NODE_PATH matches the npm root
✔ Node.js version
✔ No .bowerrc file in home directory
✔ No .yo-rc.json file in home directory
✔ npm version
✖ yo version
Your yo version is outdated.
Upgrade to the latest version by running:
npm install -g yo@latest

Found potential issues on your machine :(
+ yo@2.0.5

但是如果我运行

npm install yo

我没有遇到任何问题

im正在使用npm-v6.4.1节点-vv10.13.0和macOS Mojave 10.14

我尝试了一种不同的方式来运行

yarn global add yo

然后

export PATH="$PATH:$(yarn global bin):$HOME/.config/yarn/global/node_modules/.bin"

yo jhipster

现在jhipster终于开始工作了😀

相关内容

  • 没有找到相关文章

最新更新