节点Gyp重建在失败canvas@1.1.6安装脚本

节点Gyp重建在失败canvas@1.1.6安装脚本,canvas,node-gyp,Canvas,Node Gyp,我首先要说的是,我几乎没有使用终端或node.js的经验 我试图通过node的npm安装paper.js,我尝试了各种方法 VisualStudioC++没有VCBuue.EXE,所以我安装了Windows SDK,这似乎解决了这个问题。节点版本为0.10.33,还安装了Python 2.7 修复重建过程中的一些问题后,我出现以下错误: VCBUILD : error Message: [C:\Users\Decker\AppData\Roaming\npm\node_modules\pa

我首先要说的是,我几乎没有使用终端或
node.js的经验

我试图通过node的
npm
安装
paper.js
,我尝试了各种方法

VisualStudioC++没有VCBuue.EXE,所以我安装了Windows SDK,这似乎解决了这个问题。节点版本为0.10.33,还安装了Python 2.7

修复重建过程中的一些问题后,我出现以下错误:

 VCBUILD : error Message:  [C:\Users\Decker\AppData\Roaming\npm\node_modules\pap
er\node_modules\canvas\build\binding.sln]
VCBUILD : System error : -2147154687. [C:\Users\Decker\AppData\Roaming\npm\node
_modules\paper\node_modules\canvas\build\binding.sln]
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\
npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:
12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Decker\AppData\Roaming\npm\node_modules\paper\node_modules
\canvas
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok


> contextify@0.1.11 install C:\Users\Decker\AppData\Roaming\npm\node_modules\pap
er\node_modules\jsdom\node_modules\contextify
> node-gyp rebuild

   C:\Users\Decker\AppData\Roaming\npm\node_modules\paper\node_modules\jsdom\node_m
odules\contextify>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bi
n\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xlocale(342): warning C
4530: C++ exception handler used, but unwind semantics are not enabled. Specify
 /EHsc [C:\Users\Decker\AppData\Roaming\npm\node_modules\paper\node_modules\jsd
om\node_modules\contextify\build\binding.sln]
C:\Users\Decker\.node-gyp\0.10.33\deps\v8\include\v8.h(184): warning C4506: no
definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Ha
ndle<T>)' [C:\Users\Decker\AppData\Roaming\npm\node_modules\paper\node_modules\
jsdom\node_modules\contextify\build\binding.sln]
C:\Users\Decker\.node-gyp\0.10.33\deps\v8\include\v8.h(184): warning C4506: no
definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Ha
ndle<T>)' [C:\Users\Decker\AppData\Roaming\npm\node_modules\paper\node_modules\
jsdom\node_modules\contextify\build\binding.sln]
npm ERR! canvas@1.1.6 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the canvas@1.1.6 install script.
npm ERR! This is most likely a problem with the canvas 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 canvas
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "paper"
npm ERR! cwd C:\Windows\System32
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
VCBUILD:错误消息:[C:\Users\Decker\AppData\Roaming\npm\node\u modules\pap
er\node\u modules\canvas\build\binding.sln]
VCBUILD:系统错误:-2147154687。[C:\Users\Decker\AppData\Roaming\npm\node
_modules\paper\node\u modules\canvas\build\binding.sln]
哎呀!构建错误
哎呀!堆栈错误:`C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
`失败,退出代码:1
哎呀!堆栈在ChildProcess.onExit(C:\Program Files\nodejs\NodeU模块\
npm\node\u modules\node gyp\lib\build.js:267:23)
哎呀!ChildProcess.emit上的堆栈(events.js:98:17)
哎呀!在Process.ChildProcess.\u handle.onexit(child\u Process.js:810:
12)
哎呀!系统Windows\u NT 6.1.7601
哎呀!命令“node”C:\\Program Files\\nodejs\\node\u modules\\npm\\node\u modu
les\\node gyp\\bin\\node gyp.js“重建”
哎呀!cwd C:\Users\Decker\AppData\Roaming\npm\node\u modules\paper\node\u modules
\帆布
哎呀!节点-v v0.10.33
哎呀!节点gyp-v1.0.2
哎呀!不好
> contextify@0.1.11安装C:\Users\Decker\AppData\Roaming\npm\node\u modules\pap
er\node\u modules\jsdom\node\u modules\contextify
>节点gyp重建
C:\Users\Decker\AppData\Roaming\npm\node\u modules\paper\node\u modules\jsdom\node\m
odules\contextify>node“C:\Program Files\nodejs\node\U modules\npm\bin\node gyp bi
n\\..\..\node\u modules\node gyp\bin\node gyp.js“重建”
在此解决方案中一次构建一个项目。要启用并行构建,
请添加“/m”开关。
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xlocale(342):警告C
4530:使用C++异常处理程序,但未启用展开语义。具体说明
/EHsc[C:\Users\Decker\AppData\Roaming\npm\node\u modules\paper\node\u modules\jsd
om\node\u modules\contextify\build\binding.sln]
C:\Users\Decker\.node gyp\0.10.33\deps\v8\include\v8.h(184):警告C4506:否
内联函数“v8::Persistent v8::Persistent::New(v8::Ha)”的定义
ndle)“[C:\Users\Decker\AppData\Roaming\npm\node\u modules\paper\node\u modules\
jsdom\node\u modules\contextify\build\binding.sln]
C:\Users\Decker\.node gyp\0.10.33\deps\v8\include\v8.h(184):警告C4506:否
内联函数“v8::Persistent v8::Persistent::New(v8::Ha)”的定义
ndle)“[C:\Users\Decker\AppData\Roaming\npm\node\u modules\paper\node\u modules\
jsdom\node\u modules\contextify\build\binding.sln]
npm错误!canvas@1.1.6安装:`node gyp rebuild`
npm错误!退出状态1
npm错误!
npm错误!失败canvas@1.1.6安装脚本。
npm错误!这很可能是canvas包的问题,
npm错误!与npm本身无关。
npm错误!告诉作者此操作在您的系统上失败:
npm错误!节点gyp重建
npm错误!您可以通过以下方式获取他们的信息:
npm错误!npm所有者ls画布
npm错误!上面可能还有其他日志输出。
npm错误!系统Windows\u NT 6.1.7601
npm错误!命令“C:\\Program Files\\nodejs\\\\node.exe”C:\\Program Files\\nod
ejs\\node\u modules\\npm\\bin\\npm cli.js“install”“-g”“paper”
npm错误!cwd C:\Windows\System32
npm错误!节点-v v0.10.33
npm错误!npm-V1.4.28
npm错误!代码失效循环
npm错误!不正常代码0