Jq: 错误:找不到模块“指挥官”

创建于 2015-01-31  ·  3评论  ·  资料来源: stedolan/jq

当我尝试启动jq ,它报告缺少依赖项commander

跟踪:

$ npm install -g jq
$ jq

module.js:340
    throw err;
          ^
Error: Cannot find module 'commander'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Users/andrew/.nvm/v0.10.18/lib/node_modules/jq/bin/jq:7:15)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)

系统:

$ specs npm:jq node brew os
Specs:

specs 0.12
https://github.com/mcandre/specs#readme

npm list jq
/Users/andrew/Desktop/
└── (empty)


npm --version
1.3.8

node --version
v0.10.18

brew --version
0.9.5

system_profiler SPSoftwareDataType | grep 'System Version'
      System Version: OS X 10.10.1 (14B25)

解决方法是,我使用brew install jq而不是npm install -g jq

not a bug

最有用的评论

npm的jq是“用于节点的服务器端jQuery包装器”,与该jq无关,正如您所说,可以使用“ brew install jq”安装,尽管您可能想安装更新的“ master”版本,使用“ brew install --HEAD jq”。

所有3条评论

npm的jq是“用于节点的服务器端jQuery包装器”,与该jq无关,正如您所说,可以使用“ brew install jq”安装,尽管您可能想安装更新的“ master”版本,使用“ brew install --HEAD jq”。

我的错误,我应该先阅读NPM说明。

当我在本地安装lineman时会引发错误
我正在使用以下命令:npm install -g lineman

错误是:
[email protected]预安装C:\ Users \ Admin \ AppData \ Roaming \ npm \ node_modules \ lineman \ node_modules \ js2coffee

节点./cyclic.js

npm WARN引擎[email protected] :想要的:{“ node”:“ 0.8.x || 0.10.x”}(当前:{“ node”:“ 4.2.1”,“ npm” :“ 2.14.7”})

[email protected]安装C:\ Users \ Admin \ AppData \ Roaming \ npm \ node_modules \ lineman \ node_modules \ testem \ node_modules \ socket.io \ node_modules \ engine.io \ node_modules \ ws \ node_modules \ utf -8-验证
节点gyp重建

C:\ Users \ Admin \ AppData \ Roaming \ npm \ node_modules \ lineman \ node_modules \ testem \ node_modules \ socket.io \ node_modules \ engine.io \ node_modules \ ws \ node_modules \ utf-8-validate>如果未定义npm_config_node_gyp(节点“ C:\ Program Files \ nodejs \ node_modules \ npm \ bin \ node-gyp-bin .... \ node_modules \ node-gyp \ bin \ node-gyp.js” rebuild)else(node rebuild)
一次构建一个此解决方案中的项目。 要启用并行构建,请添加“ / m”开关。
MSBUILD:错误MSB3428:无法加载Visual C ++组件“ VCBuild.exe”。 要解决此问题,1)安装.NET Framew
ork 2.0 SDK,2)安装Microsoft Visual Studio 2005或3)将组件的位置添加到系统路径(如果存在)
已安装在其他位置。 [C:\ Users \ Admin \ AppData \ Roaming \ npm \ node_modules \ lineman \ node_modules \ testem \ node_modules \ socke
t.io \ node_modules \ engine.io \ node_modules \ ws \ node_modules \ utf-8-validate \ build \ binding.sln]
糟糕! 建立错误
糟糕! 堆栈错误: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe失败,退出代码:1
糟糕! 堆栈在ChildProcess.onExit(C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ lib \ build.js:270:23)
糟糕! 堆叠在generateTwo(events.js:87:13)
糟糕! 堆栈在ChildProcess.emit(events.js:172:7)
糟糕! 堆栈位于Process.ChildProcess._handle.onexit(内部/child_process.js:200:12)
糟糕! 系统Windows_NT 10.0.10240
糟糕! 命令“ C:\ Program Files \ nodejs \ node.exe”“ C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ bin \ node-gyp.js”“重建”
糟糕! CWD C:\ Users \ Admin \ AppData \ Roaming \ npm \ node_modules \ lineman \ node_modules \ testem \ node_modules \ socket.io \ node_modules \ engine.io \ node_modules \ ws \ node_modules \ utf-8-validate
糟糕! 节点-v v4.2.1
糟糕! 节点gyp -v v3.0.3
糟糕! 不好

[email protected]安装C:\ Users \ Admin \ AppData \ Roaming \ npm \ node_modules \ lineman \ node_modules \ testem \ node_modules \ socket.io \ node_modules \ engine.io \ node_modules \ ws \ node_modules \ bufferutil
节点gyp重建

C:\ Users \ Admin \ AppData \ Roaming \ npm \ node_modules \ lineman \ node_modules \ testem \ node_modules \ socket.io \ node_modules \ engine.io \ node_modules \ ws \ node_modules \ bufferutil>(如果未定义)npm_config_node_gyp(节点“ C: \ Program Files \ nodejs \ node_modules \ npm \ bin \ node-gyp-bin .... \ node_modules \ node-gyp \ bin \ node-gyp.js“ rebuild)else(节点rebuild)
一次构建一个此解决方案中的项目。 要启用并行构建,请添加“ / m”开关。
MSBUILD:错误MSB3428:无法加载Visual C ++组件“ VCBuild.exe”。 要解决此问题,1)安装.NET Framew
ork 2.0 SDK,2)安装Microsoft Visual Studio 2005或3)将组件的位置添加到系统路径(如果存在)
已安装在其他位置。 [C:\ Users \ Admin \ AppData \ Roaming \ npm \ node_modules \ lineman \ node_modules \ testem \ node_modules \ socke
t.io \ node_modules \ engine.io \ node_modules \ ws \ node_modules \ bufferutil \ build \ binding.sln]
糟糕! 建立错误
糟糕! 堆栈错误: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe失败,退出代码:1
糟糕! 堆栈在ChildProcess.onExit(C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ lib \ build.js:270:23)
糟糕! 堆叠在generateTwo(events.js:87:13)
糟糕! 堆栈在ChildProcess.emit(events.js:172:7)
糟糕! 堆栈位于Process.ChildProcess._handle.onexit(内部/child_process.js:200:12)
糟糕! 系统Windows_NT 10.0.10240
糟糕! 命令“ C:\ Program Files \ nodejs \ node.exe”“ C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ bin \ node-gyp.js”“重建”
糟糕! CWD C:\ Users \ Admin \ AppData \ Roaming \ npm \ node_modules \ lineman \ node_modules \ testem \ node_modules \ socket.io \ node_modules \ engine.io \ node_modules \ ws \ node_modules \ bufferutil
糟糕! 节点-v v4.2.1
糟糕! 节点gyp -v v3.0.3
糟糕! 不好
npm WARN可选的dep失败,继续[email protected]

[email protected]安装C:\ Users \ Admin \ AppData \ Roaming \ npm \ node_modules \ lineman \ node_modules \ testem \ node_modules \ socket.io \ node_modules \ socket.io-client \ node_modules \ engine.io -client \ node_modules \ ws \ node_modules \ utf-8-validate
节点gyp重建

C:\ Users \ Admin \ AppData \ Roaming \ npm \ node_modules \ lineman \ node_modules \ testem \ node_modules \ socket.io \ node_modules \ socket.io-client \ node_modules \ engine.io-client \ node_modules \ ws \ node_modules \ utf -8-验证>如果未定义npm_config_node_gyp(节点“ C:\ Program Files \ nodejs \ node_modules \ npm \ bin \ node-gyp-bin .... \ node_modules \ node-gyp \ bin \ node-gyp.js” rebuild)else(节点rebuild)
一次构建一个此解决方案中的项目。 要启用并行构建,请添加“ / m”开关。
MSBUILD:错误MSB3428:无法加载Visual C ++组件“ VCBuild.exe”。 要解决此问题,1)安装.NET Framew
ork 2.0 SDK,2)安装Microsoft Visual Studio 2005或3)将组件的位置添加到系统路径(如果存在)
已安装在其他位置。 [C:\ Users \ Admin \ AppData \ Roaming \ npm \ node_modules \ lineman \ node_modules \ testem \ node_modules \ socke
t.io \ node_modules \ socket.io-client \ node_modules \ engine.io-client \ node_modules \ ws \ node_modules \ utf-8-validate \ build \ bind
ing.sln]
糟糕! 建立错误
糟糕! 堆栈错误: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe失败,退出代码:1
糟糕! 堆栈在ChildProcess.onExit(C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ lib \ build.js:270:23)
糟糕! 堆叠在generateTwo(events.js:87:13)
糟糕! 堆栈在ChildProcess.emit(events.js:172:7)
糟糕! 堆栈位于Process.ChildProcess._handle.onexit(内部/child_process.js:200:12)
糟糕! 系统Windows_NT 10.0.10240
糟糕! 命令“ C:\ Program Files \ nodejs \ node.exe”“ C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ bin \ node-gyp.js”“重建”
糟糕! CWD C:\ Users \ Admin \ AppData \ Roaming \ npm \ node_modules \ lineman \ node_modules \ testem \ node_modules \ socket.io \ node_modules \ socket.io-client \ node_modules \ engine.io-client \ node_modules \ ws \ node_modules \ utf-8-validate
糟糕! 节点-v v4.2.1
糟糕! 节点gyp -v v3.0.3
糟糕! 不好
npm WARN可选的dep失败,继续[email protected]

[email protected]安装C:\ Users \ Admin \ AppData \ Roaming \ npm \ node_modules \ lineman \ node_modules \ testem \ node_modules \ socket.io \ node_modules \ socket.io-client \ node_modules \ engine.io-client \ node_modules \ ws \ node_modules \ bufferutil
节点gyp重建

C:\ Users \ Admin \ AppData \ Roaming \ npm \ node_modules \ lineman \ node_modules \ testem \ node_modules \ socket.io \ node_modules \ socket.io-client \ node_modules \ engine.io-client \ node_modules \ ws \ node_modules \ bufferutil >如果未定义npm_config_node_gyp(节点“ C:\ Program Files \ nodejs \ node_modules \ npm \ bin \ node-gyp-bin .... \ node_modules \ node-gyp \ bin \ node-gyp.js”重建)其他(节点重建)
一次构建一个此解决方案中的项目。 要启用并行构建,请添加“ / m”开关。
MSBUILD:错误MSB3428:无法加载Visual C ++组件“ VCBuild.exe”。 要解决此问题,1)安装.NET Framew
ork 2.0 SDK,2)安装Microsoft Visual Studio 2005或3)将组件的位置添加到系统路径(如果存在)
已安装在其他位置。 [C:\ Users \ Admin \ AppData \ Roaming \ npm \ node_modules \ lineman \ node_modules \ testem \ node_modules \ socke
t.io \ node_modules \ socket.io-client \ node_modules \ engine.io-client \ node_modules \ ws \ node_modules \ bufferutil \ build \ binding。
sln]
糟糕! 建立错误
糟糕! 堆栈错误: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe失败,退出代码:1
糟糕! 堆栈在ChildProcess.onExit(C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ lib \ build.js:270:23)
糟糕! 堆叠在generateTwo(events.js:87:13)
糟糕! 堆栈在ChildProcess.emit(events.js:172:7)
糟糕! 堆栈位于Process.ChildProcess._handle.onexit(内部/child_process.js:200:12)
糟糕! 系统Windows_NT 10.0.10240
糟糕! 命令“ C:\ Program Files \ nodejs \ node.exe”“ C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ bin \ node-gyp.js”“重建”
糟糕! CWD C:\ Users \ Admin \ AppData \ Roaming \ npm \ node_modules \ lineman \ node_modules \ testem \ node_modules \ socket.io \ node_modules \ socket.io-client \ node_modules \ engine.io-client \ node_modules \ ws \ node_modules \缓冲工具
糟糕! 节点-v v4.2.1
糟糕! 节点gyp -v v3.0.3
糟糕! 不好
npm WARN可选的dep失败,继续[email protected]
npm WARN可选的dep失败,继续[email protected]
C:\ Users \ Admin \ AppData \ Roaming \ npm \ lineman-> C:\ Users \ Admin \ AppData \ Roaming \ npm \ node_modules \ lineman \ cli.js
[email protected] C:\ Users \ Admin \ AppData \ Roaming \ npm \ node_modules \ lineman
├── [email protected]
├──[email protected]
├──[email protected]
├──[email protected]
├──[email protected]
├──指挥官@ 1.3.2([email protected]
├──[email protected]
├──下划线。 字符串@ 2.3.3
├──[email protected]
├──[email protected][email protected]
├──[email protected]
├──[email protected][email protected]
├── [email protected][email protected][email protected]
├──[email protected](clean-css @ 1.0.12,grunt-lib-
├──[email protected][email protected],grunt-lib- contrib @0.5.3)
├──[email protected](async @ 0.9.2,dargs @ 4.0.1,cross-spawn @ 0.2.9,chalk @ 1.1.1,[email protected]
├── [email protected][email protected][email protected][email protected][email protected][email protected][email protected]
├──[email protected][email protected]
├── [email protected][email protected][email protected][email protected][email protected]
├──[email protected](tiny-lr-fork @ 0.0.5,[email protected]
├──[email protected](grunt-lib-contrib @ 0.6.1,uglify-
├── [email protected][email protected][email protected][email protected][email protected][email protected][email protected],rimraf @ 2.2.8,hooker @ 0.2.3,grunt-legacy-util @ 0.2.0,exit @ 0.1.2,coffee-script @ 1.3.3,iconv-lite @ 0.2.11,underscore.string @ 2.2.1 ,glob @ 3.1.21,nopt @ 1.0.10,minimatch @ 0.2.14,grunt-legacy-log @ 0.1.2,findup-sync @ 0.1.3,js-yaml @ 2.0.5)
├── [email protected][email protected][email protected][email protected][email protected]
├──[email protected](粉笔@ 0.4.0,grunt-lib- contrib @0.5.3,[email protected]
├── [email protected][email protected][email protected]
├── [email protected][email protected][email protected][email protected][email protected][email protected][email protected][email protected] .3,decompress @ 0.2.5,request @ 2.65.0,cson-safe @ 0.1.1)
├──[email protected](方法@ 0.0.1,cookie-signature @ 1.0.1,fresh @ 0.2.0,range-parser
└──[email protected](growl @ 1.8.1,xml-escape @ 1.0.0,styled_string

此页面是否有帮助?
0 / 5 - 0 等级