首页 文章

尝试在Windows中安装模块时节点js中的错误

提问于
浏览
0

我想在节点js中安装一个名为synchronize的模块 .

我收到了这个错误 . 我在窗户:

fibers@1.0.6安装C:\ Users \ Kobbi \ WebstormProjects \ untitled19 \ node_modules \ synchronize \ node_modules \ fibers node build.js || nodejs build.js win32-ia32-v8-3.28`存在;测试二进制问题;手动构建传入C:\ Users \ Kobbi \ WebstormProjects \ untitled19 \ node_modules \ synchronize \ node_modules \ fibers>如果未定义npm_config_node_gyp(节点“C:\ Program Files(x86)\ nodejs \ node_modules \ npm \ bin \ node-gyp- bin \ .... \ node_modules \ node-gyp \ bin \ node-gyp.js“rebuild --release”else(nod e rebuild --release)一次一个地在此解决方案中构建项目 . 要启用并行构建,请添加“/ m”开关 . C:\ Users \ Kobbi \ WebstormProjects \ untitled19 \ node_modules \ synchronize \ node_modules \ fibers \ b \ uild \ fibers.vcxproj(20,3):错误MSB4019:导入的项目“C:\ Microsoft.Cpp.Default . 道具”是未找到 . 确认声明中的路径是正确的,并且该文件存在于磁盘上 . gyp ERR!构建错误gyp ERR!堆栈错误:C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ msbuild.exe失败,退出代码:1 gyp ERR!在ChildProcess.onExit堆栈(C:\ Program Files(x86)\ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ lib \ build.js:269:23)gyp ERR!在ChildProcess.emit堆栈(events.js:110:17)gyp ERR! Process.ChildProcess._handle.onexit(child_process.js:1074:12)gyp ERR!系统Windows_NT 6.1.7601 gyp ERR!命令“node”“C:\ Program Files(x86)\ nodejs \ node_modules \ npm \ node_modules \ \ node-gyp \ bin \ node-gyp.js”“rebuild”“ - release”gyp ERR! cwd C:\ Users \ Kobbi \ WebstormProjects \ untitled19 \ node_modules \ synchronize \ node_modu les \ fibers gyp ERR! node -v v0.12.7 gyp ERR! node-gyp -v v2.0.1 gyp ERR!不行构建失败'nodejs'不被识别为内部或外部命令,可操作程序或批处理文件 . 错误的ERR! Windows_NT 6.1.7601 npm ERR! argv“C:\ Program Files(x86)\ nodejs \ node.exe”“C:\ Program Files(x86)\ node js \ node_modules \ npm \ bin \ npm-cli.js”“install”“synchronize”npm呃!节点v0.12.7 npm ERR! npm v2.11.3 npm ERR!代码ELIFECYCLE npm ERR! fibers@1.0.6 install:node build.js || nodejs build.js npm ERR!退出状态1 npm ERR!错误的ERR!在fiber@1.0.6安装脚本'node build.js ||时失败nodejs build.js' . 错误的ERR!这很可能是纤维包的问题,npm ERR!不是与npm本身 . 错误的ERR!告诉作者你的系统失败了:npm ERR! node build.js || nodejs build.js npm ERR!您可以通过以下方式获取他们的信息:npm ERR! npm owner ls fiber npm ERR!上面可能有额外的日志记录输出 . 错误的ERR!请在任何支持请求中包含以下文件:npm ERR! C:\ Users \用户Kobbi \ WebstormProjects \ untitled19 \ NPM-的debug.log

我将不胜感激任何帮助 . 提前致谢

1 回答

  • 0

    嗯 - 好消息是你不应该看到那个错误,坏消息是看起来最新的Fibers(1.0.6)在Windows的npm实现中有一个损坏的二进制文件(至少Windows 7 x32位) . 我假设你在节点0.10.xx上?

    以下是关于此主题的github问题的链接:https://github.com/laverdet/node-fibers/issues/236

    唉,我不知道有什么好的工作,因为似乎在npm上不再提供Fibers@1.0.5二进制文件!所以它也试图 Build 它 .

    唉,github README.md对于如何在Windows上实际编译它非常模糊 . 这是模糊(下面) . 由于我没有完整的开发环境,我甚至无法尝试...但是,我们不应该这样做 . :(

    来源

    git clone git://github.com/laverdet/node-fibers.git
    cd node-fibers
    npm install
    

    注意:node-fiber使用node-gyp进行构建 . 要手动调用构建过程,可以使用node-gyp rebuild . 这将把编译的扩展名放在build / Release / fibers.node中 . 但是,当你需要('光纤')时,它会期望模块位于例如bin / linux-x64-v8-3.11 / fibers.node中 . 您可以在每次构建时手动将模块放在此处,也可以使用包含的构建脚本 . npm install或node build -f将为您执行此操作 . 如果您要攻击节点光纤,那么首先进行node-gyp配置可能是值得的,然后对于后续的重建,您可以进行node-gyp构建,这将比完整的npm安装或node-gyp重建更快 .

相关问题