vscode运行起vue项目的全过程

D:\driver_cms-master>npm run dev

npm ERR! path D:\driver_cms-master\package.json

npm ERR! code ENOENT

npm ERR! errno -4058

npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open 'D:\driver_cms-master\package.json'

npm ERR! enoent This is related to npm not being able to find a file.

npm ERR! enoent


npm ERR! A complete log of this run can be found in:

npm ERR!     D:\nodejs\node_cache\_logs\2019-02-22T11_37_01_228Z-debug.log


啊!!!我英语不好,不要欺负我呀,全是error


于是我开始了漫长的搜索之路,google,百度,怎么就没有一个包治百病的办法呢,于是我气沉丹田,认真看了一下这个错误no such file or directory, open 'D:\driver_cms-master\package.json',要加粗呀,我的路径不对


只需D:\driver_cms-master>cd driver_cms-master就可以了,唉,大意失荆州呀,至于为什么路径会变,可能我不小心新建了个文件?还是他本来就会加,这是下一次的内容啦

--------------------- 

作者:lamxin 

来源:CSDN 

原文:https://blog.csdn.net/lamxin/article/details/87885706 

版权声明:本文为博主原创文章,转载请附上博文链接!