我正在尝试安装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
我没问题
我正在使用 npm -v 6.4.1 节点-v v10.13.0 和macOS Mojave 10.14
答案 0 :(得分:0)
我尝试以其他方式跑步
yarn global add yo
然后
export PATH="$PATH:$(yarn global bin):$HOME/.config/yarn/global/node_modules/.bin"
和
yo jhipster
现在jhipster终于可以工作