VUE项目问题

1. 问题描述

    <1> 问题:从SVN上down下来的VUE项目,本地webstorm启动出现以下问题

          

         原因分析:webstorm自动使用npm install命令运行,但是node_modules里面有未安装的依赖,需要忽略该依赖;

         解决方案:        

<1> 删除项目根路径下的 node_modules 文件夹 
<2> 在项目根路径下执行 cnpm install
<3> <2>执行完后,执行 npm run dev

    npm install VS cnpm install 
参考: https://blog.csdn.net/csm0912/article/details/90264026

     

     <2> 问题: 项目里面有nodejs下载的依赖包node_modules,那会发现webstorm打开会非常慢,设置卡死

            参考: 

                        https://www.cnblogs.com/chengwb/p/6183440.html

                        https://www.jianshu.com/p/44075da931d9

    <3> 问题:To install them, you can run: npm install --save autosize babel-runtime/core-js/array/from babel-runtime/          

   cnpm install core-js@2

           参考:https://www.cnblogs.com/zoo-x/articles/12876039.html  

  

      

原文地址:https://www.cnblogs.com/lvlin241/p/12803868.html