javascript - weex-toolkit安装时候的报错

查看:126
本文介绍了javascript - 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:

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

解决方案

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

这篇关于javascript - weex-toolkit安装时候的报错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆