简体   繁体   English

npm install grunt-takana在node-gyp重建时失败

[英]npm install grunt-takana fails at node-gyp rebuild

I am trying to install grunt-takana but it one of its prerequisites for Windows, node-gyp seems very problematic. 我正在尝试安装grunt-takana但这是Windows的先决条件之一, node-gyp似乎很成问题。

In cmd , when I try npm install grunt-takana I get following errors after node-gyp rebuild : cmd ,当我尝试npm install grunt-takananode-gyp rebuild npm install grunt-takana node-gyp rebuild后出现以下错误:

nodefsevents.cc nodefsevents.cc
..\\nodefsevents.cc(11): fatal error C1083: Cannot open include file: 'pthread.h ': No such file or directory (...) .. \\ nodefsevents.cc(11):致命错误C1083:无法打开包含文件:'pthread.h':没有此类文件或目录(...)

and at the end another one: 最后还有一个:

Binary is fine; 二进制很好; exiting 退出
npm ERR! npm ERR! fsevents@0.1.6 install: node-gyp rebuild fsevents@0.1.6安装: node-gyp rebuild gyp node-gyp rebuild
npm ERR! npm ERR! Exit status 1 退出状态1
npm ERR! npm ERR!
npm ERR! npm ERR! Failed at the fsevents@0.1.6 install script. 在fsevents@0.1.6安装脚本上失败。

When I try manual node-gyp rebuild in c:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp I receive a bit more specific error: 当我尝试在c:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp手动node-gyp rebuild ,我收到了一些更具体的错误:

gyp: binding.gyp not found (cwd: c:\\Program Files\\nodejs\\node_modules\\npm\\node_m odules\\node-gyp) while trying to load binding.gyp gyp:尝试加载binding.gyp时找不到cwd:c:\\ Program Files \\ nodejs \\ node_modules \\ npm \\ node_m odules \\ node-gyp)

So far I've installed: 到目前为止,我已经安装了:
- node v0.10.32 -节点v0.10.32
- node-gyp v1.0.2 -node-gyp v1.0.2
- Python 2.6 (tried also 2.7.9) -Python 2.6(也尝试过2.7.9)
- MS Visual Studio 2013 (Ultimate) -MS Visual Studio 2013(最终版本)
- MS .NET Framework SDK 2.0 -MS .NET Framework SDK 2.0

It looks like grunt-takana is expecting a Unix style threading library ( pthread.h ). 看起来grunt-takana期望使用Unix风格的线程库( pthread.h )。 The official takana docs do not say Windows is supported: takana官方文档不说支持Windows:

Currently, Takana supports OSX, Linux and Sublime Text 2 & 3. 目前,Takana支持OSX,Linux和Sublime Text 2和3。

https://github.com/mechio/takana https://github.com/mechio/takana

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

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