首次安装Element遇到的问题和方法

Song946 次浏览0个评论2021年08月26日

首次运行Element遇到如下错误

npm run dev

报错如下:

npm ERR! Missing script: "dev"
npm ERR! 
npm ERR! To see a list of scripts, run:
npm ERR!   npm run

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/songlu/.npm/_logs/2021-08-26T06_02_42_747Z-debug.log

解决办法

vue init webpack
? Generate project in current directory? Yes
? Project name wechats-element
? Project description A Vue.js project
? Author **** <****@qq.com>
? Vue build standalone
? Install vue-router? Yes
? Use ESLint to lint your code? Yes
? Pick an ESLint preset Standard
? Set up unit tests Yes
? Pick a test runner jest
? Setup e2e tests with Nightwatch? Yes
? Should we run `npm install` for you after the project has been created? (recommended) npm

提交评论

请登录后评论

用户评论

    当前暂无评价,快来发表您的观点吧...

更多相关好文

    当前暂无更多相关好文推荐...