Javascript 安装节点模块时出错----common.gypi未找到

Javascript 安装节点模块时出错----common.gypi未找到,javascript,node.js,npm,Javascript,Node.js,Npm,当我运行npm install时,应该安装package.json中包含的节点模块,但是,存在以下错误: npm http 304 https://registry.npmjs.org/zeparser/0.0.5 npm http GET https://registry.npmjs.org/commander npm http GET https://registry.npmjs.org/tinycolor npm http GET https://registry.npmjs.org/op

当我运行npm install时,应该安装package.json中包含的节点模块,但是,存在以下错误:

npm http 304 https://registry.npmjs.org/zeparser/0.0.5
npm http GET https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/tinycolor
npm http GET https://registry.npmjs.org/options
gyp: C:\Documents and Settings\Jicheng An\.node-gyp\0.10.5\common.gypi not found (cwd: c:\Documents and Settings\Jicheng An\csfv_cms_module\node_modules\csfv_misc_module\node_modules\email-templates\node_modules\juice\node_modules\jsdom\node_modules\contextify) while reading includes of binding.gyp while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (h:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:415:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:784:12)
gyp ERR! System Windows_NT 5.1.2600
gyp ERR! command "node" "h:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd c:\Documents and Settings\Jicheng An\csfv_cms_module\node_modules\csfv_misc_module\node_modules\email-templates\node_modules\juice\node_modules\jsdom\node_modules\contextify
gyp ERR! node -v v0.10.5
gyp ERR! node-gyp -v v0.9.5
gyp ERR! not ok 
npm http 304 https://registry.npmjs.org/tinycolor
npm http 304 https://registry.npmjs.org/options
npm http 304 https://registry.npmjs.org/commander
npm ERR! Error: ENOENT, lstat 'c:\Documents and Settings\Jicheng An\csfv_cms_module\node_modules\csfv_misc_module\node_modules\email-templates\node_modules\juice\node_modules\jsdom\node_modules\cssstyle\lib\properties\borderBottomWidth.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Windows_NT 5.1.2600
npm ERR! command "h:\\Program Files\\nodejs\\node.exe" "h:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i"
npm ERR! cwd c:\Documents and Settings\Jicheng An\csfv_cms_module
npm ERR! node -v v0.10.5
npm ERR! npm -v 1.2.18
npm ERR! path c:\Documents and Settings\Jicheng An\csfv_cms_module\node_modules\csfv_misc_module\node_modules\email-templates\node_modules\juice\node_modules\jsdom\node_modules\cssstyle\lib\properties\borderBottomWidth.js
npm ERR! fstream_path c:\Documents and Settings\Jicheng An\csfv_cms_module\node_modules\csfv_misc_module\node_modules\email-templates\node_modules\juice\node_modules\jsdom\node_modules\cssstyle\lib\properties\borderBottomWidth.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack h:\Program Files\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! contextify@0.1.6 install: `node-gyp rebuild`
npm ERR! `cmd "/c" "node-gyp rebuild"` failed with 1
npm ERR! 
npm ERR! Failed at the contextify@0.1.6 install script.
npm ERR! This is most likely a problem with the contextify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls contextify
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 5.1.2600
npm ERR! command "h:\\Program Files\\nodejs\\node.exe" "h:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i"
npm ERR! cwd c:\Documents and Settings\Jicheng An\csfv_cms_module
npm ERR! node -v v0.10.5
npm ERR! npm -v 1.2.18
npm ERR! code ELIFECYCLE
npm WARN engine mong.socket.io@0.9.0: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.5","npm":"1.2.18"})
npm http GET https://registry.npmjs.org/passport-openid
npm http GET https://registry.npmjs.org/pkginfo
npm http GET https://registry.npmjs.org/passport-oauth
npm http GET https://registry.npmjs.org/passport-oauth
npmhttp304https://registry.npmjs.org/zeparser/0.0.5
npm http GEThttps://registry.npmjs.org/commander
npm http GEThttps://registry.npmjs.org/tinycolor
npm http GEThttps://registry.npmjs.org/options
gyp:C:\Documents and Settings\Jicheng An\.node gyp\0.10.5\common.gypi未找到(cwd:C:\Documents and Settings\Jicheng An\csfv\u cms\u module\node\u modules\csfv\u misc\u module\node\u modules\email templates\node\juice\node\modules\jsdom\node\u modules\contextify),在尝试加载binding.gyp时读取binding.gyp的includes时未找到binding.gyp
哎呀!配置错误
哎呀!堆栈错误:`gyp`失败,退出代码:1
哎呀!堆栈在ChildProcess.onCpExit(h:\Program Files\nodejs\node_modules\npm\node_modules\node gyp\lib\configure.js:415:16)
哎呀!ChildProcess.EventEmitter.emit上的堆栈(events.js:98:17)
哎呀!在Process.ChildProcess.\u handle.onexit处堆栈(child\u Process.js:784:12)
哎呀!系统Windows\u NT 5.1.2600
哎呀!命令“node”h:\\Program Files\\nodejs\\node\u modules\\npm\\node\u modules\\node gyp\\bin\\node gyp.js“重建”
哎呀!cwd c:\Documents and Settings\Jicheng An\csfv\u cms\u module\node\u modules\csfv\u misc\node\u modules\email templates\node\u modules\juice\node\u modules\jsdom\node\u modules\contextify
哎呀!节点-v v0.10.5
哎呀!节点gyp-v v0.9.5
哎呀!不好
npm http 304https://registry.npmjs.org/tinycolor
npm http 304https://registry.npmjs.org/options
npm http 304https://registry.npmjs.org/commander
npm错误!错误:enoint,lstat'c:\Documents and Settings\Jicheng An\csfv\u cms\u module\node\u modules\csfv\u misc\u module\node\u modules\email templates\node\u modules\jsdom\node\u modules\csssstyle\lib\properties\borderBottomWidth.js'
npm错误!如果需要帮助,您可以在以下位置报告此日志:
npm错误!
npm错误!或通过电子邮件发送至:
npm错误!
npm错误!系统Windows\u NT 5.1.2600
npm错误!命令“h:\\Program Files\\nodejs\\node.exe”“h:\\Program Files\\nodejs\\node\u modules\\npm\\bin\\npm cli.js”“i”
npm错误!cwd c:\Documents and Settings\Jicheng An\csfv\U cms\U模块
npm错误!节点-v v0.10.5
npm错误!npm-V1.2.18
npm错误!路径c:\Documents and Settings\Jicheng An\csfv\u cms\u module\node\u modules\csfv\u misc\u module\node\u modules\email templates\node\u modules\jsdom\node\u modules\csssstyle\lib\properties\borderBottomWidth.js
npm错误!fstream\u路径c:\Documents and Settings\Jicheng An\csfv\u cms\u module\node\u modules\csfv\u misc\u module\node\u modules\email templates\node\u modules\jsdom\node\u modules\csssstyle\lib\properties\borderBottomWidth.js
npm错误!fstream_类型文件
npm错误!fstream_类文件编写器
npm错误!代码eNONT
npm错误!埃尔诺34
npm错误!fstream\u堆栈h:\Program Files\nodejs\node\u modules\npm\node\u modules\fstream\lib\writer.js:284:26
npm错误!fstream_stack Object.oncomplete(fs.js:107:15)
npm错误!contextify@0.1.6安装:`node gyp rebuild`
npm错误`cmd“/c”节点gyp重建“`失败,错误为1
npm错误!
npm错误!失败contextify@0.1.6安装脚本。
npm错误!这很可能是contextify包的问题,
npm错误!与npm本身无关。
npm错误!告诉作者此操作在您的系统上失败:
npm错误!节点gyp重建
npm错误!您可以通过以下方式获取他们的信息:
npm错误!npm所有者ls上下文化
npm错误!上面可能还有其他日志输出。
npm错误!系统Windows\u NT 5.1.2600
npm错误!命令“h:\\Program Files\\nodejs\\node.exe”“h:\\Program Files\\nodejs\\node\u modules\\npm\\bin\\npm cli.js”“i”
npm错误!cwd c:\Documents and Settings\Jicheng An\csfv\U cms\U模块
npm错误!节点-v v0.10.5
npm错误!npm-V1.2.18
npm错误!代码失效循环
npm警告发动机监测插座。io@0.9.0:通缉:{“节点”:“0.8.x”}(当前:{“节点”:“v0.10.5”,“npm”:“1.2.18”})
npm http GEThttps://registry.npmjs.org/passport-openid
npm http GEThttps://registry.npmjs.org/pkginfo
npm http GEThttps://registry.npmjs.org/passport-oauth
npm http GEThttps://registry.npmjs.org/passport-oauth
我不知道common.gypi是什么,也不知道为什么会发生错误。
有人能帮我解决这个问题吗?

我相信您的模块需要编译,npm中的大多数模块都为Win Mac Linux预编译了二进制文件,但这一个需要使用节点gyp进行编译

对于Windows,它将实际为模块的C源文件创建.sln和.cxproj文件。 它将使用Python实现这一点。之后,它将运行msbuild来构建解决方案。 在这种情况下,至少需要Visual Studio express