ES6-ES10练习的环境配置

node v12.2.0

要使用npx命令则npm版本需要>5.2

创建项目:npx es10-cli create 项目名

运行:npm start

如果npm不大于5.2,无法使用npx

npm install es10-cli -g

es10-cli create 项目名

cd 项目名

npm start

如果还不行

git clone https://github.com/cucygh/es-cli.git 项目名

cd 项目名

npm install

npm start

再不行就切换npm源

猜你喜欢

转载自www.cnblogs.com/allenzhang-920/p/12164368.html