vue项目 拷到别的电脑应该怎吗再次重新运行

步骤:

  将项目中的node_modules文件夹删掉,其次在文件根目录下执行 $ npm cache clean 命令清除掉cache缓存(如果你前面是用的cnpm install 命令的话就执行$ cnpm cache clean),然后npm install 之后

再 npm run dev就可以运行了

posted @ 2018-12-13 17:52  未来的后来  阅读(2186)  评论(0编辑  收藏  举报