用vue create my-app 命令創建vue應用是,不要選擇默認的
Desktop> vue create my-app
? Your connection to the default npm registry seems to be slow.
Use https://registry.npm.taobao.org for faster installation? (Y/n)
選擇Y
Vue CLI v4.0.5
? Please pick a preset: (Use arrow keys)
> default (babel, eslint)
Manually select features
選擇
Manually select features
然后
Vue CLI v4.0.5
? Please pick a preset: Manually select features
? Check the features needed for your project:
(*) Babel
( ) TypeScript
( ) Progressive Web App (PWA) Support
(*) Router
(*) Vuex
(*) CSS Pre-processors
( ) Linter / Formatter
(*) Unit Testing
>(*) E2E Testing
然后選擇帶星號的那個,只要不選Linter / Formatter 就行,不會有代碼檢測了。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/129832.html
標籤:其他
