alibaba / weex

A framework for building Mobile cross-platform UI
https://weexapp.com/
Apache License 2.0
18.28k stars 2.13k forks source link

weex run android :提示Cannot find module 'chokidar',怎么解决? #3176

Closed FredLiu111 closed 3 years ago

FredLiu111 commented 6 years ago

Error: Cannot find module 'chokidar' at Function.Module._resolveFilename (module.js:543:15) at Function.Module._load (module.js:470:25) at Module.require (module.js:593:17) at require (internal/module.js:11:18) at Object. (/Users/liupeng/.xtoolkit/node_modules/weexpack/lib/run/android.js:11:16) at Module._compile (module.js:649:30) at Object.Module._extensions..js (module.js:660:10) at Module.load (module.js:561:32) at tryModuleLoad (module.js:501:12) at Function.Module._load (module.js:493:3) at Module.require (module.js:593:17) at require (internal/module.js:11:18) at Object. (/Users/liupeng/.xtoolkit/node_modules/weexpack/lib/run/index.js:3:18) at Module._compile (module.js:649:30) at Object.Module._extensions..js (module.js:660:10) at Module.load (module.js:561:32) at tryModuleLoad (module.js:501:12) at Function.Module._load (module.js:493:3) at Module.require (module.js:593:17) at require (internal/module.js:11:18) at Object. (/Users/liupeng/.xtoolkit/node_modules/weexpack/bin/weexpack-run.js:11:5) at Module._compile (module.js:649:30)

stephenwong1991 commented 6 years ago

我运行的是 ios 环境,提示也说的是缺少 'chokidar' 模块,但是手动下载之后,再次运行依然会报这个错误。说实话我用 weex-toolkit 的 weex 命令基本运行不起来虚拟机,无奈换用 weexpack ,下载 weexpack 后使用 weexpack run android 应该可以运行起来,就酱。

YorkShen commented 5 years ago

This PR/issue doesn't received response since Weex migrated to Apache two years ago and this repository is no longer active yet.

Feel free to ask question in new repository and thanks for your contribution.

Hanks10100 commented 3 years ago

This issue is outdated for a long time and will be closed now. You can create a new one if you still have questions.