Start vue project installation dependency error
Error when starting vue project installation dependency
Four reasons for now
Low version, upgrade to new version
2. Execute npm cache clean, and then restart npm install
3. If the download of the dependency package fails, you can use cnpm Taobao image to download or yarn download and install
4. There will usually be error prompts when reporting an error prompt.
Vue must-have installation dependencies
npm i element-ui -S
Quote in
/*Introduce the following three lines*/ import ElementUI from 'element-ui'; import 'element-ui/lib/theme-chalk/'; (ElementUI);
2. Install sass
npm install sass-loader node-sass --save-dev
Add configuration in rules under build folder
{ test: /.sass$/, loaders: ['style', 'css', 'sass'] }
If an error is reported: Node-sass version 6.0.0 is incompatible with ^4.0.0 (Node Sass version 6.0.0 is incompatible with ^4.0.0)
Uninstall the previous version of node-sass
npm uninstall node-sass npm install -g cnpm --registry= npm install [email protected]
3. Install axios
npm install axios -S
4. Install vuex
npm install vuex --save or cnpm install vuex --save
5. Install js-cookie
npm install js-cookie --save
The above is personal experience. I hope you can give you a reference and I hope you can support me more.