简体   繁体   English

Node.js在Windows上解析

[英]Node.js restify on Windows

I want to start developing a REST API with Node.js. 我想开始使用Node.js开发REST API。 My development environment is a Windows 7 machine. 我的开发环境是Windows 7机器。

I read that the restify is a good choice for start a REST API, but this module depends from dtrace-provider, and dtrace-provider is not compatible with Windows. 我读到restify是启动REST API的不错选择,但是这个模块依赖于dtrace-provider,而dtrace-provider与Windows不兼容。

How can I compile this module on windows? 如何在Windows上编译此模块? There is another way to make this work? 有另一种方法可以使这项工作?

This issue was resolved ( https://github.com/mcavage/node-restify/issues/100 ), and the DTrace dependency is optional. 此问题已得到解决( https://github.com/mcavage/node-restify/issues/100 ),并且DTrace依赖项是可选的。

It worked for me only on npm 1.1.5, so you might need to update ( npm update npm@1.1.5 -g running as administrator). 它仅适用于npm 1.1.5,因此您可能需要更新(以管理员npm update npm@1.1.5 -g运行npm update npm@1.1.5 -g )。

我只是使用快递资源

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM