无法安装 "npm install -g yo" 全球只能本地。
can't install "npm install -g yo" global only local.
我正在尝试安装 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
我尝试了一种不同的方式 运行
yarn global add yo
然后
export PATH="$PATH:$(yarn global bin):$HOME/.config/yarn/global/node_modules/.bin"
和
yo jhipster
现在 jhipster 终于可以工作了
我正在尝试安装 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
我尝试了一种不同的方式 运行
yarn global add yo
然后
export PATH="$PATH:$(yarn global bin):$HOME/.config/yarn/global/node_modules/.bin"
和
yo jhipster
现在 jhipster 终于可以工作了