Closed mrarronz closed 6 years ago
according to the error message, I installed the chokidar module by 'npm install chokidar --save', then run ios again with command 'weexpack run ios', still failed with the error above
the same question
userdeMac-mini:weex-adhoc-test xiaoxu$ weexpack run ios module.js:538 throw err; ^
Error: Cannot find module 'chokidar'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.
npm install weexpack 和npm install -g weexpack 是有区别的,当前这个问题的解决方案是找到usr/local/lib/node_modules文件,删掉里面的weexpack文件夹,然后执行npm install -g weexpack重新安装weexpack就可以了
@AdhocXiaoxu 照着楼上同学的做法试了一下,问题依然没有解决,不知为何
module.js:557 throw err; ^
Error: Cannot find module 'chokidar' at Function.Module._resolveFilename (module.js:555:15) at Function.Module._load (module.js:482:25) at Module.require (module.js:604:17) at require (internal/module.js:11:18) at Object. (/usr/local/lib/node_modules/weexpack/lib/run/android.js:11:16)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)