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: