Webstorm2020.3创建Vue.js项目以及处理Webstorm Terminal报‘vue‘不是内部命令

1.I meet a bug when I build a Vue.js Project in WEbStorm v.2020.3 and I enter ‘Vue init webpack’ in terminal.It was tips"‘vue’ is not an internal commad".And then I found that I forgot configure the node.js and vue.cmd in (System)Environment variable.So I do these:
在这里插入图片描述
Verify it:
Enter ‘vue -V’ in (system)cmd, it will be response the version of vue.js.

2.It is null when I use Webstorm2020.3 create a vue project, so I need enter ‘vue init webpack’ to build it in Terminal(If you create a vue project use commad,you need do that entr ‘vue init webpack [projectName]’). The detail:
Project name: [项目名称]
Project description:[项目描述,一般直接回车]
Author:[作者]
vue build:[构建方式]
Install vue-router:[安装vue-router]
Use ESLint to lint your code? (yes/no):[是否使用ESLint检测你的代码,一般使用]
Pick an ESLint preset[选择风格]:
1.standard(https://github.com/feross/standard) Javascript标准风格
2.Airbnb(https://github.com/airbnb/javascript) JavaScript最合理的方法
3.none (configure it yourself) 自己配置
Set up unit test?(yes/no)[是否安装单元测试]
Pick a test runner 选择一个单元测试运行器
选项有三个
1.Jest(Jest是由Facebook发布的开源的、基于Jasmine的JavaScript单元测试框架)
2.Karma and Mocha
3.none
Setup e2e tests with Nightwatch?[是否使用Nightwatch设置e2e测试]
Should we run npm install for you after the project has been created? (recommended)[项目创建后,我们是否应该为您运行’npm install’?]
use npm(使用npm)
use yarn(使用yarn)
no,I will handle that myself(自己操作)
在这里插入图片描述
Description of success:
在这里插入图片描述
在这里插入图片描述

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值