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

Song208 次浏览0个评论2021年08月26日
首次安装Element遇到的问题和方法

首次运行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
请登录后评论
    当前暂无评价,快来发表您的观点吧...
    公告提示
    本站主要用于学习交流Laravel技术,分享Laravel优秀案例;同时非常欢迎大家投稿哦!如果有招聘信息也可以联系我我帮忙发布哦!