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源

posted @ 2020-01-07 23:44  AllenZhang_(*^▽^*)  阅读(897)  评论(0编辑  收藏  举报