weex-toolkit安装时候的报错

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:

请问大大们怎么解决,已经两天了。。。

阅读 5.4k
3 个回答

问题已经解决了,跟node版本没有关系,只要是6.0.0以上就可以。解决问题的关键在于把要node_modules这个路径读写权限打开就行了。

node.js你下载V.7.5.0的版本试一下。

新手上路,请多包涵

请直接去https://nodejs.org/en/,下载node安装包,我的就是这么解决的.附:OS->macOS,.........虽然brew install node安装了最新版本,但是可能系统中存在多个node版本,并没有采用最新的.

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题