vue init webpack vuedemo1
报错
D:\MyWorkSpace\vue_project>vue init webpack vuedemo1
? Project name vuedemo1
? Project description A Vue.js project
? Author rk
? Vue build standalone
? Install vue-router? Yes
? Use ESLint to lint your code? Yes
? Pick an ESLint preset Standard
? Set up unit tests No
? Setup e2e tests with Nightwatch? No
? Should we run `npm install` for you after the project has
been created? (recommended) npm
vue-cli · Generated "vuedemo1".
# Installing project dependencies ...
# ========================
npm ERR! code ERESOLVE
npm ERR! Cannot destructure property 'name' of 'node' as it is null.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\xiaoyao\AppData\Local\npm-cache\_logs\2021-01-18T07_36_11_514Z-debug.log
Running eslint --fix to comply with chosen preset rules...
# ========================
> vuedemo1@1.0.0 lint
> eslint --ext .js,.vue src "--fix"
'eslint' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
npm ERR! code 1
npm ERR! path D:\MyWorkSpace\vue_project\vuedemo1
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c eslint --ext .js,.vue src --fix
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\xiaoyao\AppData\Local\npm-cache\_logs\2021-01-18T07_36_12_528Z-debug.log
# Project initialization finished!
# ====