vue-hackernews icon indicating copy to clipboard operation
vue-hackernews copied to clipboard

Cannot find module

Open zjhsd2007 opened this issue 9 years ago • 3 comments

在执行npm run dev时报下面的错误,但这所有的依赖我都已经下载

Uncaught Error: Cannot find module "!!./../../node_modules/css-loader/index.js!./../../node_modules/vue-loader/lib/style-rewriter.js?id=_v-cee506ee&file=App.vue!./../../node_modules/stylus-loader/index.js!./../../node_modules/vue-loader/lib/selector.js?type=style&index=0!./App.vue"

环境: win7 node v5.1.1 npm v3.5.1

zjhsd2007 avatar Dec 18 '15 07:12 zjhsd2007

是不是改过代码?如果代码有错误可能会导致这个问题

southerncross avatar Dec 30 '15 17:12 southerncross

+1 我在项目下修改代码。。然后npm run build 报错,好像是cross-env出错了 image

horizon0514 avatar Mar 26 '16 09:03 horizon0514

我在npm run build的时候也发现了Cannot find module '../dist'这个错误,run dev可以正常起来,这个怎么解决? 补充一下环境mac, node v4.4.7 npm v2.15.8

Tell the author that this fails on your system: npm ERR! cross-env NODE_ENV=production webpack --progress --hide-modules


搞定了,把node_modules/.bin/cross-env里的require('../dist')路径给改成require('./../cross-env/dist') ,终于build起来了

santinoDu avatar Jun 30 '16 02:06 santinoDu