'weexpack run web' 抛出错误
'weexpack run web' throwing error
我已经安装了一个weexpack项目。
当我尝试 运行 命令 weexpack 运行 web 它显示错误。
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
中的区分大小写错误:https://github.com/weexteam/weex-pack/issues/148#issuecomment-302861410
可以通过将 /usr/local/lib/node_modules/weexpack/src/run/web.js
(或安装 weexpack
的任何地方)重命名为 Web.js
来修复。
我已经安装了一个weexpack项目。
当我尝试 运行 命令 weexpack 运行 web 它显示错误。
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
中的区分大小写错误:https://github.com/weexteam/weex-pack/issues/148#issuecomment-302861410
可以通过将 /usr/local/lib/node_modules/weexpack/src/run/web.js
(或安装 weexpack
的任何地方)重命名为 Web.js
来修复。