Javascript ';weexpack运行web';投掷误差
我已经安装了一个weexpack项目 当我试图运行命令weexpackrunweb时,它显示错误Javascript ';weexpack运行web';投掷误差,javascript,vue.js,weex,Javascript,Vue.js,Weex,我已经安装了一个weexpack项目 当我试图运行命令weexpackrunweb时,它显示错误 module.js:442 throw err; ^ Error: Cannot find module '../src/run/Web' at Function.Module._resolveFilename (module.js:440:15) at Function.Module._load (module.js:388:25) at Module.require (module.js:46
module.js:442
throw err;
^
Error: Cannot find module '../src/run/Web'
at Function.Module._resolveFilename (module.js:440:15)
at Function.Module._load (module.js:388:25)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object. (/home/dev03/.nvm/versions/node/v6.2.1/lib/node_modules/weexpack/bin/weexpack-run:7:16)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
有人能帮我吗?正如@zahidul islam suzon在上面的评论中所提到的,这似乎是
weexpack中的一个区分大小写的bug
:
它可以通过将
/usr/local/lib/node_modules/weexpack/src/run/web.js(或安装weexpack
的任何地方)重命名为web.js来修复。我对此也很好奇。。。我在weex-run
,weex-run-web
,以及weex-run-android
@codermonkeyfuel中看到了同样的错误,这实际上是路径/大小写敏感的问题。错误:找不到模块“../src/run/Web”。/src/run/Web=>此处的“W”将是“W”