npm install time出现gyp ERR! stack Error: "pre" versions of node cannot be installed, use the --nodedi

来源:互联网 发布:centos连接无线网 编辑:程序博客网 时间:2024/06/03 18:57

npm install time出现gyp ERR! stack Error: "pre" versions of node cannot be installed, use the --nodedir flag instead错误的解决方案:

出现这个错误的原因是因为安装的node是一个预览版,即版本号后面带-pre,如下:

#node -v

v0.10.22-pre

解决办法就是安装一个稳定版的版本。

0 0
原创粉丝点击