mac系统命令行安装weex-toolkit@beta ,总是安装不上。报错信息如下:
Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "weex-toolkit@beta" "weexpack"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! weex-toolkit@1.0.1-beta.6 postinstall: `xtoolkit install weex-builder`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the weex-toolkit@1.0.1-beta.6 postinstall script 'xtoolkit install weex-builder'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the weex-toolkit package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! xtoolkit install weex-builder
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs weex-toolkit
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls weex-toolkit
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
请问大大们怎么解决,已经两天了。。。
问题已经解决了,跟node版本没有关系,只要是6.0.0以上就可以。解决问题的关键在于把要node_modules这个路径读写权限打开就行了。