Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of starting vue project installation depending on the Times

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Today, I would like to share with you the relevant knowledge points about how to start the vue project installation and rely on the Times to solve the problem. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's learn about it.

Start the vue project installation dependency error report

When starting the vue project to install dependent Times error

Four reasons come to mind for the time being

1.node version is low, upgrade to new version

two。 Execute npm cache clean and then re-npm install

3. If you fail to download the dependency package, you can download it using cnpm Taobao image, or download and install it with yarn

4. There is usually an error prompt when an error is reported, and the operation will be carried out according to the error prompt.

Vue prerequisite installation depends on 1.elementUInpm I element-ui-S

Reference in main.js

/ * introduce the following three lines * / import ElementUI from 'element-ui';import' element-ui/lib/theme-chalk/index.css';Vue.use (ElementUI); 2. Install sassnpm install sass-loader node-sass-- save-dev

Add the configuration in the rules of webpack.base.conf.js under the build folder

{test: / .sass$/, loaders: ['style',' css', 'sass']}

If an error occurs: node-sass version 6.0.0 is not compatible with ^ 4.0.0 (Node Sass version 6.0.0 is incompatible with ^ 4.0.0)

Uninstall the previous version of node-sass first

Npm uninstall node-sassnpm install-g cnpm-- registry= https://registry.npm.taobao.orgnpm install node-sass@4.14.13. Install axiosnpm install axios-S4. Install vuexnpm install vuex-save or cnpm install vuex-save5. Install js-cookienpm install js-cookie-save above is all the contents of the article "starting the vue project installation depends on how to solve the Times error". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report