node.js - Windows 7 上的 npm install Restify 错误?

标签 node.js rest npm windows-7-x64

我正在尝试使用 Node.js 构建 REST Web 服务,因此从 http://nodejs.org/ 下载并安装了 Node.js 版本 0.10.29 |和Python版本2.5安装后我尝试安装restify。

C:\Program Files\nodejs>npm install restify

它显示错误:“gyp”失败,退出代码为:1?,如下图所示,我也在谷歌中搜索了很多关于此错误的信息,但我无法找到解决方案。

enter image description here

最佳答案

是的,我已经安装了restify。上述错误是由于 python 版本 2.5 冲突造成的。当我安装 python 版本 2.6 时,它工作正常。我还为 microsoft sdk 设置了系统变量。

关于node.js - Windows 7 上的 npm install Restify 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24368630/

相关文章:

node.js - 如何编写使用多个文件的 NPM 模块?

javascript - 将post方法中的数据发送到 Node js中的api

javascript - 解析服务器云代码错误 141 : Unauthorized

php - 使用 AWS 进行 SQL 和 REST 前端

javascript - 如何在 browserify 中要求代码镜像的模式、主题或插件

deployment - 如何使用 npm 在当前目录中安装 package.json 依赖项

node.js - Node 和浏览器中的 Webpack 外部

node.js Azure Web App 在长 url 上返回 400

laravel - 使用 Laravel 进行 Flutter FCM

android - 在 http url 中发送 json 字符串