猿问

在git中执行npm run dev启动项目,显示错误?

node和npm的版本是

出错的信息是:
https://img2.mukewang.com/5c99e6610001c5eb05660302.jpg

在浏览器中显示是Cannot GET / 这个
我是直接用的npm install 像错误信息中的css-loader我已经下载好了,但是执行npm run dev还是报这个错误
https://img2.mukewang.com/5c99e6630001627d02400263.jpg

请问这是为什么呢?怎么解决呢?


子衿沉夜
浏览 1368回答 3
3回答

繁花如伊

试试把node_modules删了,重新cnpm insatll一下

慕的地10843

css-loader 用cnpm下载貌似会出问题的,得单独用npm去下载css-loader

拉风的咖菲猫

It looks like you're missing a peerDependency, this could be because you upgraded from NPM 2 or it could just be that something went wrong with the installation, so simply do:npm install css-loader --save-devIf all else fails, simply remove node_modules from your project and do a fresh install: npm install——————from stackflow
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答