Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
490 views
in Technique[技术] by (71.8m points)

weex项目build报错失败

clone了官方的完整的项目,然后根据readme一步步执行。
到执行./start的时候报错。
报错信息:
Error: ENOENT: no such file or directory, open '/Users/shihua/Documents/workspace/weex/.wwprc'

at Object.fs.openSync (fs.js:584:18)
at Object.fs.readFileSync (fs.js:491:33)
at Object.<anonymous> (/Users/shihua/Documents/workspace/weex/node_modules/[email protected]@wwp/bin/wwp:78:28)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:423:7)
at startup (bootstrap_node.js:147:9)
at bootstrap_node.js:538:3

然后后报N条诸如下面的错误:

ERROR in ./examples/animation.we?entry=true
Module not found: Error: Cannot resolve 'file' or 'directory' ../node_modules/._babel-loader in /Users/shihua/Documents/workspace/weex/examples
@ ./examples/animation.we?entry=true 3:22-595

ERROR in ./examples/error.we?entry=true
Module not found: Error: Cannot resolve 'file' or 'directory' ../node_modules/._babel-loader in /Users/shihua/Documents/workspace/weex/examples
@ ./examples/error.we?entry=true 2:22-591

第一次接触weex,对webpack的配置不太清楚。求助是不是我的设备环境有问题?MAC OSX下。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

有进行npm install吗? 对node的依赖包进行安装


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...