Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Huge error when installing Canvas #911

Closed
ThatNerdyPikachu opened this issue Apr 30, 2017 · 16 comments
Closed

Huge error when installing Canvas #911

ThatNerdyPikachu opened this issue Apr 30, 2017 · 16 comments

Comments

@ThatNerdyPikachu
Copy link

Issue or Feature

Huge error while installing

Steps to Reproduce

npm install

Your Environment

  • Version of node-canvas (e.g. 1.4.0): 1.1.3
  • Environment (e.g. node 4.2.0 on Mac OS X 10.8): node 6.10.1 on Windows 10

Logs

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Users\\TheBeastGamer25\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install' ]
2 info using npm@3.10.9
3 info using node@v6.10.1
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly install normalizeTree
8 silly loadCurrentTree Finishing
9 silly loadIdealTree Starting
10 silly install loadIdealTree
11 silly cloneCurrentTree Starting
12 silly install cloneCurrentTreeToIdealTree
13 silly cloneCurrentTree Finishing
14 silly loadShrinkwrap Starting
15 silly install loadShrinkwrap
16 silly loadShrinkwrap Finishing
17 silly loadAllDepsIntoIdealTree Starting
18 silly install loadAllDepsIntoIdealTree
19 silly fetchNamedPackageData canvas
20 silly mapToRegistry name canvas
21 silly mapToRegistry using default registry
22 silly mapToRegistry registry https://registry.npmjs.org/
23 silly mapToRegistry data Result {
23 silly mapToRegistry   raw: 'canvas',
23 silly mapToRegistry   scope: null,
23 silly mapToRegistry   escapedName: 'canvas',
23 silly mapToRegistry   name: 'canvas',
23 silly mapToRegistry   rawSpec: '',
23 silly mapToRegistry   spec: 'latest',
23 silly mapToRegistry   type: 'tag' }
24 silly mapToRegistry uri https://registry.npmjs.org/canvas
25 silly fetchNamedPackageData gameboy
26 silly mapToRegistry name gameboy
27 silly mapToRegistry using default registry
28 silly mapToRegistry registry https://registry.npmjs.org/
29 silly mapToRegistry data Result {
29 silly mapToRegistry   raw: 'gameboy',
29 silly mapToRegistry   scope: null,
29 silly mapToRegistry   escapedName: 'gameboy',
29 silly mapToRegistry   name: 'gameboy',
29 silly mapToRegistry   rawSpec: '',
29 silly mapToRegistry   spec: 'latest',
29 silly mapToRegistry   type: 'tag' }
30 silly mapToRegistry uri https://registry.npmjs.org/gameboy
31 verbose request uri https://registry.npmjs.org/gameboy
32 verbose request no auth needed
33 info attempt registry request try #1 at 9:34:33 AM
34 verbose request id 7108a929abb2a0e3
35 verbose etag W/"5322f6e4-d91"
36 verbose lastModified Fri, 14 Mar 2014 12:32:36 GMT
37 http request GET https://registry.npmjs.org/gameboy
38 verbose request uri https://registry.npmjs.org/canvas
39 verbose request no auth needed
40 info attempt registry request try #1 at 9:34:33 AM
41 verbose etag W/"58efd744-1fced"
42 verbose lastModified Thu, 13 Apr 2017 19:53:40 GMT
43 http request GET https://registry.npmjs.org/canvas
44 http 304 https://registry.npmjs.org/gameboy
45 verbose headers { date: 'Sun, 30 Apr 2017 13:34:33 GMT',
45 verbose headers   via: '1.1 varnish',
45 verbose headers   'cache-control': 'max-age=300',
45 verbose headers   etag: 'W/"5322f6e4-d91"',
45 verbose headers   age: '99',
45 verbose headers   connection: 'keep-alive',
45 verbose headers   'x-served-by': 'cache-jfk8143-JFK',
45 verbose headers   'x-cache': 'HIT',
45 verbose headers   'x-cache-hits': '1',
45 verbose headers   'x-timer': 'S1493559274.938283,VS0,VE0',
45 verbose headers   vary: 'Accept-Encoding' }
46 silly get cb [ 304,
46 silly get   { date: 'Sun, 30 Apr 2017 13:34:33 GMT',
46 silly get     via: '1.1 varnish',
46 silly get     'cache-control': 'max-age=300',
46 silly get     etag: 'W/"5322f6e4-d91"',
46 silly get     age: '99',
46 silly get     connection: 'keep-alive',
46 silly get     'x-served-by': 'cache-jfk8143-JFK',
46 silly get     'x-cache': 'HIT',
46 silly get     'x-cache-hits': '1',
46 silly get     'x-timer': 'S1493559274.938283,VS0,VE0',
46 silly get     vary: 'Accept-Encoding' } ]
47 verbose etag https://registry.npmjs.org/gameboy from cache
48 verbose get saving gameboy to C:\Users\TheBeastGamer25\AppData\Roaming\npm-cache\registry.npmjs.org\gameboy\.cache.json
49 verbose correctMkdir C:\Users\TheBeastGamer25\AppData\Roaming\npm-cache correctMkdir not in flight; initializing
50 http 304 https://registry.npmjs.org/canvas
51 verbose headers { date: 'Sun, 30 Apr 2017 13:34:33 GMT',
51 verbose headers   via: '1.1 varnish',
51 verbose headers   'cache-control': 'max-age=300',
51 verbose headers   etag: 'W/"58efd744-1fced"',
51 verbose headers   age: '99',
51 verbose headers   connection: 'keep-alive',
51 verbose headers   'x-served-by': 'cache-jfk8144-JFK',
51 verbose headers   'x-cache': 'HIT',
51 verbose headers   'x-cache-hits': '1',
51 verbose headers   'x-timer': 'S1493559274.945721,VS0,VE0',
51 verbose headers   vary: 'Accept-Encoding' }
52 silly get cb [ 304,
52 silly get   { date: 'Sun, 30 Apr 2017 13:34:33 GMT',
52 silly get     via: '1.1 varnish',
52 silly get     'cache-control': 'max-age=300',
52 silly get     etag: 'W/"58efd744-1fced"',
52 silly get     age: '99',
52 silly get     connection: 'keep-alive',
52 silly get     'x-served-by': 'cache-jfk8144-JFK',
52 silly get     'x-cache': 'HIT',
52 silly get     'x-cache-hits': '1',
52 silly get     'x-timer': 'S1493559274.945721,VS0,VE0',
52 silly get     vary: 'Accept-Encoding' } ]
53 verbose etag https://registry.npmjs.org/canvas from cache
54 verbose get saving canvas to C:\Users\TheBeastGamer25\AppData\Roaming\npm-cache\registry.npmjs.org\canvas\.cache.json
55 verbose correctMkdir C:\Users\TheBeastGamer25\AppData\Roaming\npm-cache correctMkdir already in flight; waiting
56 silly resolveWithNewModule gameboy@0.1.0 checking installable status
57 silly cache add args [ 'gameboy@0.1.0', null ]
58 verbose cache add spec gameboy@0.1.0
59 silly cache add parsed spec Result {
59 silly cache add   raw: 'gameboy@0.1.0',
59 silly cache add   scope: null,
59 silly cache add   escapedName: 'gameboy',
59 silly cache add   name: 'gameboy',
59 silly cache add   rawSpec: '0.1.0',
59 silly cache add   spec: '0.1.0',
59 silly cache add   type: 'version' }
60 silly addNamed gameboy@0.1.0
61 verbose addNamed "0.1.0" is a plain semver version for gameboy
62 silly mapToRegistry name gameboy
63 silly mapToRegistry using default registry
64 silly mapToRegistry registry https://registry.npmjs.org/
65 silly mapToRegistry data Result {
65 silly mapToRegistry   raw: 'gameboy',
65 silly mapToRegistry   scope: null,
65 silly mapToRegistry   escapedName: 'gameboy',
65 silly mapToRegistry   name: 'gameboy',
65 silly mapToRegistry   rawSpec: '',
65 silly mapToRegistry   spec: 'latest',
65 silly mapToRegistry   type: 'tag' }
66 silly mapToRegistry uri https://registry.npmjs.org/gameboy
67 verbose addNameVersion registry:https://registry.npmjs.org/gameboy not in flight; fetching
68 silly resolveWithNewModule canvas@1.1.3 checking installable status
69 silly cache add args [ 'canvas@1.1.3', null ]
70 verbose cache add spec canvas@1.1.3
71 silly cache add parsed spec Result {
71 silly cache add   raw: 'canvas@1.1.3',
71 silly cache add   scope: null,
71 silly cache add   escapedName: 'canvas',
71 silly cache add   name: 'canvas',
71 silly cache add   rawSpec: '1.1.3',
71 silly cache add   spec: '1.1.3',
71 silly cache add   type: 'version' }
72 silly addNamed canvas@1.1.3
73 verbose addNamed "1.1.3" is a plain semver version for canvas
74 silly mapToRegistry name canvas
75 silly mapToRegistry using default registry
76 silly mapToRegistry registry https://registry.npmjs.org/
77 silly mapToRegistry data Result {
77 silly mapToRegistry   raw: 'canvas',
77 silly mapToRegistry   scope: null,
77 silly mapToRegistry   escapedName: 'canvas',
77 silly mapToRegistry   name: 'canvas',
77 silly mapToRegistry   rawSpec: '',
77 silly mapToRegistry   spec: 'latest',
77 silly mapToRegistry   type: 'tag' }
78 silly mapToRegistry uri https://registry.npmjs.org/canvas
79 verbose addNameVersion registry:https://registry.npmjs.org/canvas not in flight; fetching
80 verbose get https://registry.npmjs.org/gameboy not expired, no request
81 verbose get https://registry.npmjs.org/canvas not expired, no request
82 silly cache afterAdd gameboy@0.1.0
83 verbose afterAdd C:\Users\TheBeastGamer25\AppData\Roaming\npm-cache\gameboy\0.1.0\package\package.json not in flight; writing
84 verbose correctMkdir C:\Users\TheBeastGamer25\AppData\Roaming\npm-cache correctMkdir not in flight; initializing
85 silly cache afterAdd canvas@1.1.3
86 verbose afterAdd C:\Users\TheBeastGamer25\AppData\Roaming\npm-cache\canvas\1.1.3\package\package.json not in flight; writing
87 verbose correctMkdir C:\Users\TheBeastGamer25\AppData\Roaming\npm-cache correctMkdir not in flight; initializing
88 verbose afterAdd C:\Users\TheBeastGamer25\AppData\Roaming\npm-cache\gameboy\0.1.0\package\package.json written
89 verbose afterAdd C:\Users\TheBeastGamer25\AppData\Roaming\npm-cache\canvas\1.1.3\package\package.json written
90 silly fetchNamedPackageData nan
91 silly mapToRegistry name nan
92 silly mapToRegistry using default registry
93 silly mapToRegistry registry https://registry.npmjs.org/
94 silly mapToRegistry data Result {
94 silly mapToRegistry   raw: 'nan',
94 silly mapToRegistry   scope: null,
94 silly mapToRegistry   escapedName: 'nan',
94 silly mapToRegistry   name: 'nan',
94 silly mapToRegistry   rawSpec: '',
94 silly mapToRegistry   spec: 'latest',
94 silly mapToRegistry   type: 'tag' }
95 silly mapToRegistry uri https://registry.npmjs.org/nan
96 verbose request uri https://registry.npmjs.org/nan
97 verbose request no auth needed
98 info attempt registry request try #1 at 9:34:33 AM
99 verbose etag W/"58ee904e-1f9bf"
100 verbose lastModified Wed, 12 Apr 2017 20:38:38 GMT
101 http request GET https://registry.npmjs.org/nan
102 http 304 https://registry.npmjs.org/nan
103 verbose headers { date: 'Sun, 30 Apr 2017 13:34:34 GMT',
103 verbose headers   via: '1.1 varnish',
103 verbose headers   'cache-control': 'max-age=300',
103 verbose headers   etag: 'W/"58ee904e-1f9bf"',
103 verbose headers   age: '222',
103 verbose headers   connection: 'keep-alive',
103 verbose headers   'x-served-by': 'cache-jfk8143-JFK',
103 verbose headers   'x-cache': 'HIT',
103 verbose headers   'x-cache-hits': '2',
103 verbose headers   'x-timer': 'S1493559274.098579,VS0,VE0',
103 verbose headers   vary: 'Accept-Encoding' }
104 silly get cb [ 304,
104 silly get   { date: 'Sun, 30 Apr 2017 13:34:34 GMT',
104 silly get     via: '1.1 varnish',
104 silly get     'cache-control': 'max-age=300',
104 silly get     etag: 'W/"58ee904e-1f9bf"',
104 silly get     age: '222',
104 silly get     connection: 'keep-alive',
104 silly get     'x-served-by': 'cache-jfk8143-JFK',
104 silly get     'x-cache': 'HIT',
104 silly get     'x-cache-hits': '2',
104 silly get     'x-timer': 'S1493559274.098579,VS0,VE0',
104 silly get     vary: 'Accept-Encoding' } ]
105 verbose etag https://registry.npmjs.org/nan from cache
106 verbose get saving nan to C:\Users\TheBeastGamer25\AppData\Roaming\npm-cache\registry.npmjs.org\nan\.cache.json
107 verbose correctMkdir C:\Users\TheBeastGamer25\AppData\Roaming\npm-cache correctMkdir not in flight; initializing
108 silly resolveWithNewModule nan@0.4.4 checking installable status
109 silly cache add args [ 'nan@~0.4.1', null ]
110 verbose cache add spec nan@~0.4.1
111 silly cache add parsed spec Result {
111 silly cache add   raw: 'nan@~0.4.1',
111 silly cache add   scope: null,
111 silly cache add   escapedName: 'nan',
111 silly cache add   name: 'nan',
111 silly cache add   rawSpec: '~0.4.1',
111 silly cache add   spec: '>=0.4.1 <0.5.0',
111 silly cache add   type: 'range' }
112 silly addNamed nan@>=0.4.1 <0.5.0
113 verbose addNamed ">=0.4.1 <0.5.0" is a valid semver range for nan
114 silly addNameRange { name: 'nan', range: '>=0.4.1 <0.5.0', hasData: false }
115 silly mapToRegistry name nan
116 silly mapToRegistry using default registry
117 silly mapToRegistry registry https://registry.npmjs.org/
118 silly mapToRegistry data Result {
118 silly mapToRegistry   raw: 'nan',
118 silly mapToRegistry   scope: null,
118 silly mapToRegistry   escapedName: 'nan',
118 silly mapToRegistry   name: 'nan',
118 silly mapToRegistry   rawSpec: '',
118 silly mapToRegistry   spec: 'latest',
118 silly mapToRegistry   type: 'tag' }
119 silly mapToRegistry uri https://registry.npmjs.org/nan
120 verbose addNameRange registry:https://registry.npmjs.org/nan not in flight; fetching
121 verbose get https://registry.npmjs.org/nan not expired, no request
122 silly addNameRange number 2 { name: 'nan', range: '>=0.4.1 <0.5.0', hasData: true }
123 silly addNameRange versions [ 'nan',
123 silly addNameRange   [ '0.3.0-wip',
123 silly addNameRange     '0.3.0-wip2',
123 silly addNameRange     '0.3.0',
123 silly addNameRange     '0.3.1',
123 silly addNameRange     '0.3.2',
123 silly addNameRange     '0.4.0',
123 silly addNameRange     '0.4.1',
123 silly addNameRange     '0.4.2',
123 silly addNameRange     '0.4.3',
123 silly addNameRange     '0.4.4',
123 silly addNameRange     '0.5.0',
123 silly addNameRange     '0.5.1',
123 silly addNameRange     '0.5.2',
123 silly addNameRange     '0.6.0',
123 silly addNameRange     '0.7.0',
123 silly addNameRange     '0.7.1',
123 silly addNameRange     '0.8.0',
123 silly addNameRange     '1.0.0',
123 silly addNameRange     '1.1.0',
123 silly addNameRange     '1.1.1',
123 silly addNameRange     '1.1.2',
123 silly addNameRange     '1.2.0',
123 silly addNameRange     '1.3.0',
123 silly addNameRange     '1.4.0',
123 silly addNameRange     '1.4.1',
123 silly addNameRange     '1.5.0',
123 silly addNameRange     '1.4.2',
123 silly addNameRange     '1.4.3',
123 silly addNameRange     '1.5.1',
123 silly addNameRange     '1.5.2',
123 silly addNameRange     '1.6.0',
123 silly addNameRange     '1.5.3',
123 silly addNameRange     '1.6.1',
123 silly addNameRange     '1.6.2',
123 silly addNameRange     '1.7.0',
123 silly addNameRange     '1.8.0',
123 silly addNameRange     '1.8.1',
123 silly addNameRange     '1.8.2',
123 silly addNameRange     '1.8.3',
123 silly addNameRange     '1.8.4',
123 silly addNameRange     '1.9.0',
123 silly addNameRange     '2.0.0',
123 silly addNameRange     '2.0.1',
123 silly addNameRange     '2.0.2',
123 silly addNameRange     '2.0.3',
123 silly addNameRange     '2.0.4',
123 silly addNameRange     '2.0.5',
123 silly addNameRange     '2.0.6',
123 silly addNameRange     '2.0.7',
123 silly addNameRange     '2.0.8',
123 silly addNameRange     '2.0.9',
123 silly addNameRange     '2.1.0',
123 silly addNameRange     '2.2.0',
123 silly addNameRange     '2.2.1',
123 silly addNameRange     '2.3.0',
123 silly addNameRange     '2.3.1',
123 silly addNameRange     '2.3.2',
123 silly addNameRange     '2.3.3',
123 silly addNameRange     '2.3.4',
123 silly addNameRange     '2.3.5',
123 silly addNameRange     '2.4.0',
123 silly addNameRange     '2.5.0',
123 silly addNameRange     '2.5.1',
123 silly addNameRange     '2.6.0',
123 silly addNameRange     '2.6.1',
123 silly addNameRange     '2.6.2' ] ]
124 silly addNamed nan@0.4.4
125 verbose addNamed "0.4.4" is a plain semver version for nan
126 silly cache afterAdd nan@0.4.4
127 verbose afterAdd C:\Users\TheBeastGamer25\AppData\Roaming\npm-cache\nan\0.4.4\package\package.json not in flight; writing
128 verbose correctMkdir C:\Users\TheBeastGamer25\AppData\Roaming\npm-cache correctMkdir not in flight; initializing
129 verbose afterAdd C:\Users\TheBeastGamer25\AppData\Roaming\npm-cache\nan\0.4.4\package\package.json written
130 silly loadAllDepsIntoIdealTree Finishing
131 silly loadIdealTree Finishing
132 silly currentTree weplay-emulator@0.0.1
132 silly currentTree +-- base64-js@0.0.2
132 silly currentTree +-- benchmark@1.0.0
132 silly currentTree +-- bops@0.0.7
132 silly currentTree +-- component-emitter@1.1.2
132 silly currentTree +-- debug@0.7.4
132 silly currentTree +-- double-ended-queue@2.1.0-0
132 silly currentTree +-- emitter@1.0.1
132 silly currentTree +-- has-binary@0.1.7
132 silly currentTree +-- indexof@0.0.1
132 silly currentTree +-- isarray@0.0.1
132 silly currentTree +-- json3@3.3.2
132 silly currentTree +-- ms@0.7.1
132 silly currentTree +-- msgpack-js@0.3.0
132 silly currentTree +-- msgpack@0.2.2
132 silly currentTree +-- redis-commands@1.3.1
132 silly currentTree +-- redis@0.10.1
132 silly currentTree +-- socket.io-emitter@1.0.0
132 silly currentTree | +-- debug@2.2.0
132 silly currentTree | `-- redis@2.4.2
132 silly currentTree +-- socket.io-parser@2.2.6
132 silly currentTree | `-- debug@2.2.0
132 silly currentTree `-- to-utf8@0.0.1
133 silly idealTree weplay-emulator@0.0.1
133 silly idealTree +-- base64-js@0.0.2
133 silly idealTree +-- benchmark@1.0.0
133 silly idealTree +-- bops@0.0.7
133 silly idealTree +-- canvas@1.1.3
133 silly idealTree +-- component-emitter@1.1.2
133 silly idealTree +-- debug@0.7.4
133 silly idealTree +-- double-ended-queue@2.1.0-0
133 silly idealTree +-- emitter@1.0.1
133 silly idealTree +-- gameboy@0.1.0
133 silly idealTree +-- has-binary@0.1.7
133 silly idealTree +-- indexof@0.0.1
133 silly idealTree +-- isarray@0.0.1
133 silly idealTree +-- json3@3.3.2
133 silly idealTree +-- ms@0.7.1
133 silly idealTree +-- msgpack-js@0.3.0
133 silly idealTree +-- msgpack@0.2.2
133 silly idealTree +-- nan@0.4.4
133 silly idealTree +-- redis-commands@1.3.1
133 silly idealTree +-- redis@0.10.1
133 silly idealTree +-- socket.io-emitter@1.0.0
133 silly idealTree | +-- debug@2.2.0
133 silly idealTree | `-- redis@2.4.2
133 silly idealTree +-- socket.io-parser@2.2.6
133 silly idealTree | `-- debug@2.2.0
133 silly idealTree `-- to-utf8@0.0.1
134 silly generateActionsToTake Starting
135 silly install generateActionsToTake
136 silly generateActionsToTake Finishing
137 silly diffTrees action count 3
138 silly diffTrees add nan@0.4.4
139 silly diffTrees add canvas@1.1.3
140 silly diffTrees add gameboy@0.1.0
141 silly decomposeActions action count 24
142 silly decomposeActions fetch nan@0.4.4
143 silly decomposeActions extract nan@0.4.4
144 silly decomposeActions test nan@0.4.4
145 silly decomposeActions preinstall nan@0.4.4
146 silly decomposeActions build nan@0.4.4
147 silly decomposeActions install nan@0.4.4
148 silly decomposeActions postinstall nan@0.4.4
149 silly decomposeActions finalize nan@0.4.4
150 silly decomposeActions fetch canvas@1.1.3
151 silly decomposeActions extract canvas@1.1.3
152 silly decomposeActions test canvas@1.1.3
153 silly decomposeActions preinstall canvas@1.1.3
154 silly decomposeActions build canvas@1.1.3
155 silly decomposeActions install canvas@1.1.3
156 silly decomposeActions postinstall canvas@1.1.3
157 silly decomposeActions finalize canvas@1.1.3
158 silly decomposeActions fetch gameboy@0.1.0
159 silly decomposeActions extract gameboy@0.1.0
160 silly decomposeActions test gameboy@0.1.0
161 silly decomposeActions preinstall gameboy@0.1.0
162 silly decomposeActions build gameboy@0.1.0
163 silly decomposeActions install gameboy@0.1.0
164 silly decomposeActions postinstall gameboy@0.1.0
165 silly decomposeActions finalize gameboy@0.1.0
166 silly runTopLevelLifecycles Starting
167 silly install runPreinstallTopLevelLifecycles
168 silly preinstall weplay-emulator@0.0.1 C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\weplay-emulator-d59180b8
169 info lifecycle weplay-emulator@0.0.1~preinstall: weplay-emulator@0.0.1
170 silly lifecycle weplay-emulator@0.0.1~preinstall: no script for preinstall, continuing
171 silly executeActions Starting
172 silly install executeActions
173 silly doSerial global-install 0
174 silly doParallel fetch 3
175 verbose correctMkdir C:\Users\TheBeastGamer25\AppData\Roaming\npm-cache\_locks correctMkdir not in flight; initializing
176 verbose lock using C:\Users\TheBeastGamer25\AppData\Roaming\npm-cache\_locks\staging-a7075489b6ff68ed.lock for C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging
177 silly doParallel extract 3
178 silly extract nan@0.4.4
179 silly extract canvas@1.1.3
180 silly extract gameboy@0.1.0
181 verbose unbuild node_modules\.staging\nan-a0dccad7
182 verbose unbuild node_modules\.staging\canvas-27d1620d
183 verbose unbuild node_modules\.staging\gameboy-ba1ca3b2
184 silly gentlyRm C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\nan-a0dccad7 is being purged from base C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator
185 verbose gentlyRm don't care about contents; nuking C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\nan-a0dccad7
186 silly gentlyRm C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\canvas-27d1620d is being purged from base C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator
187 verbose gentlyRm don't care about contents; nuking C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\canvas-27d1620d
188 silly gentlyRm C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\gameboy-ba1ca3b2 is being purged from base C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator
189 verbose gentlyRm don't care about contents; nuking C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\gameboy-ba1ca3b2
190 verbose tar unpack C:\Users\TheBeastGamer25\AppData\Roaming\npm-cache\nan\0.4.4\package.tgz
191 verbose tar unpacking to C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\nan-a0dccad7
192 silly gentlyRm C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\nan-a0dccad7 is being purged
193 verbose gentlyRm don't care about contents; nuking C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\nan-a0dccad7
194 verbose tar unpack C:\Users\TheBeastGamer25\AppData\Roaming\npm-cache\canvas\1.1.3\package.tgz
195 verbose tar unpacking to C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\canvas-27d1620d
196 silly gentlyRm C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\canvas-27d1620d is being purged
197 verbose gentlyRm don't care about contents; nuking C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\canvas-27d1620d
198 verbose tar unpack C:\Users\TheBeastGamer25\AppData\Roaming\npm-cache\gameboy\0.1.0\package.tgz
199 verbose tar unpacking to C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\gameboy-ba1ca3b2
200 silly gentlyRm C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\gameboy-ba1ca3b2 is being purged
201 verbose gentlyRm don't care about contents; nuking C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\gameboy-ba1ca3b2
202 silly gunzTarPerm modes [ '777', '666' ]
203 silly gunzTarPerm modes [ '777', '666' ]
204 silly gunzTarPerm modes [ '777', '666' ]
205 silly gunzTarPerm extractEntry package.json
206 silly gunzTarPerm modified mode [ 'package.json', 420, 438 ]
207 silly gunzTarPerm extractEntry package.json
208 silly gunzTarPerm modified mode [ 'package.json', 420, 438 ]
209 silly gunzTarPerm extractEntry package.json
210 silly gunzTarPerm modified mode [ 'package.json', 420, 438 ]
211 silly gunzTarPerm extractEntry README.md
212 silly gunzTarPerm modified mode [ 'README.md', 420, 438 ]
213 silly gunzTarPerm extractEntry LICENSE
214 silly gunzTarPerm modified mode [ 'LICENSE', 420, 438 ]
215 silly gunzTarPerm extractEntry .index.js
216 silly gunzTarPerm modified mode [ '.index.js', 420, 438 ]
217 silly gunzTarPerm extractEntry nan.h
218 silly gunzTarPerm modified mode [ 'nan.h', 420, 438 ]
219 silly gunzTarPerm extractEntry .npmignore
220 silly gunzTarPerm modified mode [ '.npmignore', 420, 438 ]
221 silly gunzTarPerm extractEntry index.js
222 silly gunzTarPerm modified mode [ 'index.js', 420, 438 ]
223 silly gunzTarPerm extractEntry .npmignore
224 silly gunzTarPerm modified mode [ '.npmignore', 420, 438 ]
225 silly gunzTarPerm extractEntry index.js
226 silly gunzTarPerm modified mode [ 'index.js', 420, 438 ]
227 silly gunzTarPerm extractEntry History.md
228 silly gunzTarPerm modified mode [ 'History.md', 420, 438 ]
229 silly gunzTarPerm extractEntry Readme.md
230 silly gunzTarPerm modified mode [ 'Readme.md', 420, 438 ]
231 silly gunzTarPerm extractEntry binding.gyp
232 silly gunzTarPerm modified mode [ 'binding.gyp', 420, 438 ]
233 silly gunzTarPerm extractEntry Makefile
234 silly gunzTarPerm modified mode [ 'Makefile', 420, 438 ]
235 silly gunzTarPerm extractEntry Readme.md
236 silly gunzTarPerm modified mode [ 'Readme.md', 420, 438 ]
237 silly gunzTarPerm extractEntry .gitmodules
238 silly gunzTarPerm modified mode [ '.gitmodules', 420, 438 ]
239 silly gunzTarPerm extractEntry .travis.yml
240 silly gunzTarPerm modified mode [ '.travis.yml', 420, 438 ]
241 silly gunzTarPerm extractEntry install
242 silly gunzTarPerm modified mode [ 'install', 493, 511 ]
243 silly gunzTarPerm extractEntry lib/bindings.js
244 silly gunzTarPerm modified mode [ 'lib/bindings.js', 420, 438 ]
245 silly gunzTarPerm extractEntry lib/canvas.js
246 silly gunzTarPerm modified mode [ 'lib/canvas.js', 420, 438 ]
247 silly gunzTarPerm extractEntry lib/context2d.js
248 silly gunzTarPerm modified mode [ 'lib/context2d.js', 420, 438 ]
249 silly gunzTarPerm extractEntry lib/image.js
250 silly gunzTarPerm modified mode [ 'lib/image.js', 420, 438 ]
251 silly gunzTarPerm extractEntry lib/jpegstream.js
252 silly gunzTarPerm modified mode [ 'lib/jpegstream.js', 420, 438 ]
253 silly gunzTarPerm extractEntry lib/pixelarray.js
254 silly gunzTarPerm modified mode [ 'lib/pixelarray.js', 420, 438 ]
255 silly gunzTarPerm extractEntry lib/pngstream.js
256 silly gunzTarPerm modified mode [ 'lib/pngstream.js', 420, 438 ]
257 silly gunzTarPerm extractEntry History.md
258 silly gunzTarPerm modified mode [ 'History.md', 420, 438 ]
259 silly gunzTarPerm extractEntry src/Image.h
260 silly gunzTarPerm modified mode [ 'src/Image.h', 420, 438 ]
261 silly gunzTarPerm extractEntry src/Canvas.cc
262 silly gunzTarPerm modified mode [ 'src/Canvas.cc', 420, 438 ]
263 silly gunzTarPerm extractEntry src/CanvasGradient.cc
264 silly gunzTarPerm modified mode [ 'src/CanvasGradient.cc', 420, 438 ]
265 silly gunzTarPerm extractEntry src/CanvasGradient.h
266 silly gunzTarPerm modified mode [ 'src/CanvasGradient.h', 420, 438 ]
267 silly gunzTarPerm extractEntry src/CanvasPattern.cc
268 silly gunzTarPerm modified mode [ 'src/CanvasPattern.cc', 420, 438 ]
269 silly gunzTarPerm extractEntry src/CanvasPattern.h
270 silly gunzTarPerm modified mode [ 'src/CanvasPattern.h', 420, 438 ]
271 silly gunzTarPerm extractEntry src/CanvasRenderingContext2d.cc
272 silly gunzTarPerm modified mode [ 'src/CanvasRenderingContext2d.cc', 420, 438 ]
273 silly gunzTarPerm extractEntry src/CanvasRenderingContext2d.h
274 silly gunzTarPerm modified mode [ 'src/CanvasRenderingContext2d.h', 420, 438 ]
275 silly gunzTarPerm extractEntry src/FontFace.cc
276 silly gunzTarPerm modified mode [ 'src/FontFace.cc', 420, 438 ]
277 silly gunzTarPerm extractEntry src/FontFace.h
278 silly gunzTarPerm modified mode [ 'src/FontFace.h', 420, 438 ]
279 silly gunzTarPerm extractEntry src/Image.cc
280 silly gunzTarPerm modified mode [ 'src/Image.cc', 420, 438 ]
281 silly gunzTarPerm extractEntry src/Canvas.h
282 silly gunzTarPerm modified mode [ 'src/Canvas.h', 420, 438 ]
283 silly gunzTarPerm extractEntry src/ImageData.cc
284 silly gunzTarPerm modified mode [ 'src/ImageData.cc', 420, 438 ]
285 silly gunzTarPerm extractEntry src/ImageData.h
286 silly gunzTarPerm modified mode [ 'src/ImageData.h', 420, 438 ]
287 silly gunzTarPerm extractEntry src/JPEGStream.h
288 silly gunzTarPerm modified mode [ 'src/JPEGStream.h', 420, 438 ]
289 silly gunzTarPerm extractEntry src/PNG.h
290 silly gunzTarPerm modified mode [ 'src/PNG.h', 420, 438 ]
291 silly gunzTarPerm extractEntry src/PixelArray.cc
292 silly gunzTarPerm modified mode [ 'src/PixelArray.cc', 420, 438 ]
293 silly gunzTarPerm extractEntry src/PixelArray.h
294 silly gunzTarPerm modified mode [ 'src/PixelArray.h', 420, 438 ]
295 silly gunzTarPerm extractEntry src/Point.h
296 silly gunzTarPerm modified mode [ 'src/Point.h', 420, 438 ]
297 silly gunzTarPerm extractEntry src/closure.h
298 silly gunzTarPerm modified mode [ 'src/closure.h', 420, 438 ]
299 silly gunzTarPerm extractEntry src/color.cc
300 silly gunzTarPerm modified mode [ 'src/color.cc', 420, 438 ]
301 silly gunzTarPerm extractEntry src/color.h
302 silly gunzTarPerm modified mode [ 'src/color.h', 420, 438 ]
303 silly gunzTarPerm extractEntry src/init.cc
304 silly gunzTarPerm modified mode [ 'src/init.cc', 493, 511 ]
305 silly gunzTarPerm extractEntry util/cairo_include.sh
306 silly gunzTarPerm modified mode [ 'util/cairo_include.sh', 493, 511 ]
307 silly gunzTarPerm extractEntry util/has_cairo_freetype.sh
308 silly gunzTarPerm modified mode [ 'util/has_cairo_freetype.sh', 493, 511 ]
309 silly gunzTarPerm extractEntry util/has_lib.sh
310 silly gunzTarPerm modified mode [ 'util/has_lib.sh', 493, 511 ]
311 silly gunzTarPerm extractEntry util/lib_lookup.sh
312 silly gunzTarPerm modified mode [ 'util/lib_lookup.sh', 493, 511 ]
313 silly gentlyRm C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\nan-a0dccad7\node_modules is being purged
314 verbose gentlyRm don't care about contents; nuking C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\nan-a0dccad7\node_modules
315 silly gentlyRm C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\gameboy-ba1ca3b2\node_modules is being purged
316 verbose gentlyRm don't care about contents; nuking C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\gameboy-ba1ca3b2\node_modules
317 silly gentlyRm C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\canvas-27d1620d\node_modules is being purged
318 verbose gentlyRm don't care about contents; nuking C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\canvas-27d1620d\node_modules
319 silly doParallel preinstall 3
320 silly preinstall nan@0.4.4 C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\nan-a0dccad7
321 info lifecycle nan@0.4.4~preinstall: nan@0.4.4
322 silly preinstall canvas@1.1.3 C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\canvas-27d1620d
323 info lifecycle canvas@1.1.3~preinstall: canvas@1.1.3
324 silly preinstall gameboy@0.1.0 C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\gameboy-ba1ca3b2
325 info lifecycle gameboy@0.1.0~preinstall: gameboy@0.1.0
326 silly lifecycle nan@0.4.4~preinstall: no script for preinstall, continuing
327 silly lifecycle canvas@1.1.3~preinstall: no script for preinstall, continuing
328 silly lifecycle gameboy@0.1.0~preinstall: no script for preinstall, continuing
329 silly doReverseSerial remove 0
330 silly doSerial move 0
331 silly doSerial finalize 3
332 silly finalize C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\nan
333 silly finalize C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas
334 silly finalize C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\gameboy
335 silly doSerial build 3
336 silly build nan@0.4.4
337 info linkStuff nan@0.4.4
338 silly linkStuff nan@0.4.4 has C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules as its parent node_modules
339 verbose linkBins nan@0.4.4
340 verbose linkMans nan@0.4.4
341 silly build canvas@1.1.3
342 info linkStuff canvas@1.1.3
343 silly linkStuff canvas@1.1.3 has C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules as its parent node_modules
344 verbose linkBins canvas@1.1.3
345 verbose linkMans canvas@1.1.3
346 silly build gameboy@0.1.0
347 info linkStuff gameboy@0.1.0
348 silly linkStuff gameboy@0.1.0 has C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules as its parent node_modules
349 verbose linkBins gameboy@0.1.0
350 verbose linkMans gameboy@0.1.0
351 silly doSerial global-link 0
352 silly doParallel update-linked 0
353 silly doSerial install 3
354 silly install nan@0.4.4 C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\nan-a0dccad7
355 info lifecycle nan@0.4.4~install: nan@0.4.4
356 silly lifecycle nan@0.4.4~install: no script for install, continuing
357 silly install canvas@1.1.3 C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging\canvas-27d1620d
358 info lifecycle canvas@1.1.3~install: canvas@1.1.3
359 verbose lifecycle canvas@1.1.3~install: unsafe-perm in lifecycle true
360 verbose lifecycle canvas@1.1.3~install: PATH: C:\Users\TheBeastGamer25\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin;C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas\node_modules\.bin;C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.bin;C:\Python27\;C:\Python27\Scripts;C:\tools\ruby23\bin;c:\devkitPro\msys\bin;E:\Python\;E:\Python\Scripts;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Heroku\bin;C:\Program Files (x86)\git\cmd;C:/ffmpeg/bin;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files\Java\jdk1.8.0_77\bin;C:\Program Files\Java\jre1.8.0_77\bin;c:\program files\d3dgear;c:\program files\d3dgear;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\PuTTY\;C:\Python27;C:\Python27\Scripts;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\xampp\php;C:\ProgramData\ComposerSetup\bin;C:\Program Files (x86)\GTK2-Runtime\bin;C:\Users\TheBeastGamer25\AppData\Local\Programs\Python\Python36-32\Scripts\;C:\Users\TheBeastGamer25\AppData\Local\Programs\Python\Python36-32\;C:\Users\TheBeastGamer25\AppData\Local\Programs\Python\Launcher\;C:\Users\TheBeastGamer25\Desktop\ffmpeg\bin;E:\Python\;E:\Python\Scripts;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Heroku\bin;C:\Program Files (x86)\git\cmd;C:/ffmpeg/bin;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files\Java\jdk1.8.0_77\bin;C:\Program Files\Java\jre1.8.0_77\bin;c:\program files\d3dgear;c:\program files\d3dgear;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\nodejs\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Users\TheBeastGamer25\Desktop\ffmpeg-20151203-git-085ab74-win64-static\bin;C:\Users\TheBeastGamer25\Desktop\ffmpeg-20151105-git-c878082-win64-static\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Java\jdk1.8.0_91\bin;C:\Program Files\Java\jre1.8.0_91\bin;C:\Python34;C:\Program Files\gradle\bin;C:\U;C:\Users\TheBeastGamer25\AppData\Roaming\npm;C:\Users\TheBeastGamer25\AppData\Roaming\Composer\vendor\bin;C:\xampp\php;C:\libjpeg-turbo64\bin;
361 verbose lifecycle canvas@1.1.3~install: CWD: C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas
362 silly lifecycle canvas@1.1.3~install: Args: [ '/d /s /c', 'node-gyp rebuild' ]
363 silly lifecycle canvas@1.1.3~install: Returned: code: 1  signal: null
364 info lifecycle canvas@1.1.3~install: Failed to exec install script
365 verbose unlock done using C:\Users\TheBeastGamer25\AppData\Roaming\npm-cache\_locks\staging-a7075489b6ff68ed.lock for C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\.staging
366 silly rollbackFailedOptional Starting
367 silly rollbackFailedOptional Finishing
368 silly runTopLevelLifecycles Finishing
369 silly install printInstalled
370 warn weplay-emulator@0.0.1 No repository field.
371 verbose If you need help, you may report this error at:
371 verbose     <https://github.com/npm/npm/issues>
372 warn weplay-emulator@0.0.1 No license field.
373 verbose If you need help, you may report this error at:
373 verbose     <https://github.com/npm/npm/issues>
374 verbose stack Error: canvas@1.1.3 install: `node-gyp rebuild`
374 verbose stack Exit status 1
374 verbose stack     at EventEmitter.<anonymous> (C:\Users\TheBeastGamer25\AppData\Roaming\npm\node_modules\npm\lib\utils\lifecycle.js:255:16)
374 verbose stack     at emitTwo (events.js:106:13)
374 verbose stack     at EventEmitter.emit (events.js:191:7)
374 verbose stack     at ChildProcess.<anonymous> (C:\Users\TheBeastGamer25\AppData\Roaming\npm\node_modules\npm\lib\utils\spawn.js:40:14)
374 verbose stack     at emitTwo (events.js:106:13)
374 verbose stack     at ChildProcess.emit (events.js:191:7)
374 verbose stack     at maybeClose (internal/child_process.js:886:16)
374 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
375 verbose pkgid canvas@1.1.3
376 verbose cwd C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator
377 error Windows_NT 10.0.14393
378 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\TheBeastGamer25\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
379 error node v6.10.1
380 error npm  v3.10.9
381 error code ELIFECYCLE
382 error canvas@1.1.3 install: `node-gyp rebuild`
382 error Exit status 1
383 error Failed at the canvas@1.1.3 install script 'node-gyp rebuild'.
383 error Make sure you have the latest version of node.js and npm installed.
383 error If you do, this is most likely a problem with the canvas package,
383 error not with npm itself.
383 error Tell the author that this fails on your system:
383 error     node-gyp rebuild
383 error You can get information on how to open an issue for this project with:
383 error     npm bugs canvas
383 error Or if that isn't available, you can get their info via:
383 error     npm owner ls canvas
383 error There is likely additional logging output above.
384 verbose exit [ 1, true ]
@zbjornson
Copy link
Collaborator

Unfortunately nothing in that log is useful for troubleshooting. Did you follow the instructions on the wiki for Windows installs?

@ThatNerdyPikachu
Copy link
Author

@zbjornson yes, anyway to give better logs?

@zbjornson
Copy link
Collaborator

It's easier to troubleshoot if you run node-gyp rebuild directly instead of npm install. You'll need to run npm install -g node-gyp first if you don't have it installed already. If the errors there aren't useful, then node-gyp rebuild --verbose.

@ThatNerdyPikachu
Copy link
Author

ThatNerdyPikachu commented May 1, 2017

@zbjornson

C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator>node-gyp rebuild --verbose
gyp info it worked if it ends with ok
gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli   'C:\\Users\\TheBeastGamer25\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose' ]
gyp info using node-gyp@3.6.1
gyp info using node@6.10.1 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed     at getNotFoundError (C:\Users\TheBeastGamer25\AppData\Roaming\npm\node_modules\node-gyp\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (C:\Users\TheBeastGamer25\AppData\Roaming\npm\node_modules\node-gyp\node_modules\which\which.js:68:19)
gyp verb `which` failed     at E (C:\Users\TheBeastGamer25\AppData\Roaming\npm\node_modules\node-gyp\node_modules\which\which.js:80:29)
gyp verb `which` failed     at C:\Users\TheBeastGamer25\AppData\Roaming\npm\node_modules\node-gyp\node_modules\which\which.js:89:16
gyp verb `which` failed     at C:\Users\TheBeastGamer25\AppData\Roaming\npm\node_modules\node-gyp\node_modules\isexe\index.js:42:5
gyp verb `which` failed     at C:\Users\TheBeastGamer25\AppData\Roaming\npm\node_modules\node-gyp\node_modules\isexe\windows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:123:15)
gyp verb `which` failed  python2 { Error: not found: python2
gyp verb `which` failed     at getNotFoundError (C:\Users\TheBeastGamer25\AppData\Roaming\npm\node_modules\node-gyp\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (C:\Users\TheBeastGamer25\AppData\Roaming\npm\node_modules\node-gyp\node_modules\which\which.js:68:19)
gyp verb `which` failed     at E (C:\Users\TheBeastGamer25\AppData\Roaming\npm\node_modules\node-gyp\node_modules\which\which.js:80:29)
gyp verb `which` failed     at C:\Users\TheBeastGamer25\AppData\Roaming\npm\node_modules\node-gyp\node_modules\which\which.js:89:16
gyp verb `which` failed     at C:\Users\TheBeastGamer25\AppData\Roaming\npm\node_modules\node-gyp\node_modules\isexe\index.js:42:5
gyp verb `which` failed     at C:\Users\TheBeastGamer25\AppData\Roaming\npm\node_modules\node-gyp\node_modules\isexe\windows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:123:15) code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python C:\Python27\python.EXE
gyp verb check python version `C:\Python27\python.EXE -c "import platform; print(platform.python_version());"` returned: "2.7.13\r\n"
gyp verb get node dir no --target version specified, falling back to host node version: 6.10.1
gyp verb command install [ '6.10.1' ]
gyp verb install input version string "6.10.1"
gyp verb install installing version: 6.10.1
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 6.10.1
gyp verb build dir attempting to create "build" dir: C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\build
gyp verb build dir "build" dir needed to be created? C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\build
gyp verb find vs2017 Found installation at: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools
gyp verb find vs2017   - Missing Visual Studio C++ core features (Microsoft.VisualStudio.VC.MSBuild.Base)
gyp verb find vs2017   - Missing VC++ 2017 v141 toolset (x86,x64) (Microsoft.VisualStudio.Component.VC.Tools.x86.x64)
gyp verb find vs2017   - Missing a Windows SDK (Microsoft.VisualStudio.Component.Windows10SDK.* or Microsoft.VisualStudio.Component.Windows81SDK)
gyp verb find vs2017   - Some required components are missing, not using this installation
gyp verb Not using VS2017: No usable installation of VS2017 found
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\build\config.gypi
gyp verb config.gypi checking for gypi file: C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\config.gypi
gyp verb common.gypi checking for gypi file: C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\common.gypi
gyp verb gyp gyp format was not specified; forcing "msvs"
gyp info spawn C:\Python27\python.EXE
gyp info spawn args [ 'C:\\Users\\TheBeastGamer25\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-G',
gyp info spawn args   'msvs_version=auto',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\TheBeastGamer25\\Desktop\\weplay\\weplay-emulator\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\TheBeastGamer25\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\TheBeastGamer25\\.node-gyp\\6.10.1\\include\\node\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\TheBeastGamer25\\.node-gyp\\6.10.1',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\TheBeastGamer25\\AppData\\Roaming\\npm\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\TheBeastGamer25\\Desktop\\weplay\\weplay-emulator',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'C:\\Users\\TheBeastGamer25\\Desktop\\weplay\\weplay-emulator\\build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp: binding.gyp not found (cwd: C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator) 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 (C:\Users\TheBeastGamer25\AppData\Roaming\npm\node_modules\node-gyp\lib\configure.js:336:16)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\TheBeastGamer25\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose"
gyp ERR! cwd C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator
gyp ERR! node -v v6.10.1
gyp ERR! node-gyp -v v3.6.1
gyp ERR! not ok

C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator>

@zbjornson
Copy link
Collaborator

binding.gyp not found

Sorry, you need to run node-gyp from within the node-canvas directory (e.g. node_modules/node-canvas). If npm deleted the node-canvas directory because of the failed install, then try npm install --ignore-scripts node-canvas, then cd to node_modules/node-canvas and run node-gyp rebuild. If it complains about the nan dependency missing, run npm install nan in either directory.

@ThatNerdyPikachu
Copy link
Author

@zbjornson

gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\TheBeastGamer25\\Desktop\\weplay\\weplay-emulator\\node_modules\\canvas',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'C:\\Users\\TheBeastGamer25\\Desktop\\weplay\\weplay-emulator\\node_modules\\canvas\\build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir C:\Users\TheBeastGamer25\.node-gyp\6.10.1
gyp verb found first Solution file build/binding.sln
gyp verb could not find "msbuild.exe" in PATH - finding location in registry
gyp verb "Release" dir needed to be created? null
gyp verb copying "node.lib" for x64 C:\Users\TheBeastGamer25\.node-gyp\6.10.1\Release\node.lib
gyp info spawn C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 5/1/2017 6:15:25 PM.
Project "C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\c
anvas\build\binding.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Release|x64".
Project "C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\c
anvas\build\binding.sln" (1) is building "C:\Users\TheBeastGamer25\Desktop\wepl
ay\weplay-emulator\node_modules\canvas\build\canvas.vcxproj" (2) on node 1 (def
ault targets).
PrepareForBuild:
  Creating directory "Release\obj\canvas\".
  Creating directory "Release\obj\canvas\canvas.tlog\".
InitializeBuildStatus:
  Creating "Release\obj\canvas\canvas.tlog\unsuccessfulbuild" because "AlwaysCr
  eate" was specified.
ClCompile:
  E:\Visual Studio\VC\bin\amd64\CL.exe /c /I"C:\Users\TheBeastGamer25\.node-gyp
  \6.10.1\include\node" /I"C:\Users\TheBeastGamer25\.node-gyp\6.10.1\src" /I"C:
  \Users\TheBeastGamer25\.node-gyp\6.10.1\deps\uv\include" /I"C:\Users\TheBeast
  Gamer25\.node-gyp\6.10.1\deps\v8\include" /I..\node_modules\nan /IC:\GTK\incl
  ude /Zi /nologo /W3 /WX- /Ox /Ob2 /Oi /Ot /Oy /GL /D NODE_GYP_MODULE_NAME=can
  vas /D USING_UV_SHARED=1 /D USING_V8_SHARED=1 /D V8_DEPRECATION_WARNINGS=1 /D
   WIN32 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _HAS_EXCEP
  TIONS=0 /D snprintf=_snprintf /D _USE_MATH_DEFINES /D BUILDING_NODE_EXTENSION
   /D _WINDLL /GF /Gm- /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inl
  ine /GR- /Fo"Release\obj\canvas\\" /Fd"Release\obj\canvas\vc140.pdb" /Gd /TP
  /wd4267 /wd4351 /wd4355 /wd4800 /wd4251 /errorReport:queue /MP ..\src\Canvas.
  cc ..\src\CanvasGradient.cc ..\src\CanvasPattern.cc ..\src\CanvasRenderingCon
  text2d.cc ..\src\color.cc ..\src\Image.cc ..\src\ImageData.cc ..\src\init.cc
  ..\src\PixelArray.cc "C:\Users\TheBeastGamer25\AppData\Roaming\npm\node_modul
  es\node-gyp\src\win_delay_load_hook.cc"
  Canvas.cc
  CanvasGradient.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\Ca
nvasGradient.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_
modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\CanvasGradient.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\CanvasGradient.cc
) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas\
build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\Ca
nvas.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\
canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\Canvas.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\Canvas.cc) [C:\Us
ers\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas\build\ca
nvas.vcxproj]
  CanvasPattern.cc
  CanvasRenderingContext2d.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\Ca
nvasPattern.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_m
odules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\CanvasPattern.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\CanvasPattern.cc)
 [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas\b
uild\canvas.vcxproj]
  color.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\Ca
nvasRenderingContext2d.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emul
ator\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\CanvasRenderingContext2d.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\CanvasRenderingCo
ntext2d.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modul
es\canvas\build\canvas.vcxproj]
  Image.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\co
lor.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\c
anvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\color.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\color.cc) [C:\Use
rs\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas\build\can
vas.vcxproj]
  ImageData.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\Im
age.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\c
anvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\Image.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\Image.cc) [C:\Use
rs\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas\build\can
vas.vcxproj]
  init.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\Im
ageData.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modul
es\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\ImageData.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\ImageData.cc) [C:
\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas\build
\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\in
it.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\ca
nvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\init.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\init.cc) [C:\User
s\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas\build\canv
as.vcxproj]
  PixelArray.cc
  win_delay_load_hook.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\Pi
xelArray.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modu
les\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\PixelArray.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\PixelArray.cc) [C
:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas\buil
d\canvas.vcxproj]
Done Building Project "C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\
node_modules\canvas\build\canvas.vcxproj" (default targets) -- FAILED.

Done Building Project "C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\
node_modules\canvas\build\binding.sln" (default targets) -- FAILED.


Build FAILED.

"C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas\bu
ild\binding.sln" (default target) (1) ->
"C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas\bu
ild\canvas.vcxproj" (default target) (2) ->
(ClCompile target) ->
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
): warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\
CanvasGradient.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\nod
e_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
): warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\
Canvas.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_module
s\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
): warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\
CanvasPattern.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node
_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
): warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\
CanvasRenderingContext2d.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-em
ulator\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
): warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\
color.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules
\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
): warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\
Image.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules
\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
): warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\
ImageData.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_mod
ules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
): warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\
init.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\
canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
): warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\
PixelArray.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_mo
dules\canvas\build\canvas.vcxproj]


"C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas\bu
ild\binding.sln" (default target) (1) ->
"C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas\bu
ild\canvas.vcxproj" (default target) (2) ->
(ClCompile target) ->
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927
): fatal error C1189: #error:  Macro definition of snprintf conflicts with Stan
dard Library function declaration (compiling source file ..\src\CanvasGradient.
cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canva
s\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927
): fatal error C1189: #error:  Macro definition of snprintf conflicts with Stan
dard Library function declaration (compiling source file ..\src\Canvas.cc) [C:\
Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas\build\
canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927
): fatal error C1189: #error:  Macro definition of snprintf conflicts with Stan
dard Library function declaration (compiling source file ..\src\CanvasPattern.c
c) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas
\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927
): fatal error C1189: #error:  Macro definition of snprintf conflicts with Stan
dard Library function declaration (compiling source file ..\src\CanvasRendering
Context2d.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_mod
ules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927
): fatal error C1189: #error:  Macro definition of snprintf conflicts with Stan
dard Library function declaration (compiling source file ..\src\color.cc) [C:\U
sers\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas\build\c
anvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927
): fatal error C1189: #error:  Macro definition of snprintf conflicts with Stan
dard Library function declaration (compiling source file ..\src\Image.cc) [C:\U
sers\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas\build\c
anvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927
): fatal error C1189: #error:  Macro definition of snprintf conflicts with Stan
dard Library function declaration (compiling source file ..\src\ImageData.cc) [
C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas\bui
ld\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927
): fatal error C1189: #error:  Macro definition of snprintf conflicts with Stan
dard Library function declaration (compiling source file ..\src\init.cc) [C:\Us
ers\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas\build\ca
nvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927
): fatal error C1189: #error:  Macro definition of snprintf conflicts with Stan
dard Library function declaration (compiling source file ..\src\PixelArray.cc)
[C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas\bu
ild\canvas.vcxproj]

    9 Warning(s)
    9 Error(s)

Time Elapsed 00:00:01.65
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\TheBeastGamer25\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:285:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\TheBeastGamer25\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose"
gyp ERR! cwd C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas
gyp ERR! node -v v6.10.1
gyp ERR! node-gyp -v v3.6.1
gyp ERR! not ok

C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas>

@zbjornson
Copy link
Collaborator

Macro definition of snprintf conflicts with Standard Library function declaration

This was fixed in version 1.3.3 (9e7c44b). Just realized in your OP you listed that you're trying to install 1.1.3. Can you upgrade?

@ThatNerdyPikachu
Copy link
Author

Let's see, it might not be compatible with the project, but I'll try.

@ThatNerdyPikachu
Copy link
Author

@zbjornson


C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator>npm install

> canvas@1.1.3 install C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\gameboy\node_modules\canvas
> node-gyp rebuild


C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\gameboy\node_modules\canvas>if not defined npm_config_node_gyp (node "C:\Users\TheBeastGamer25\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  Canvas.cc
  CanvasGradient.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\Ca
nvas.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\
gameboy\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\Canvas.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\Canvas.cc) [C:\Us
ers\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\gameboy\node_mo
dules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\Ca
nvasGradient.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_
modules\gameboy\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\CanvasGradient.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\CanvasGradient.cc
) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\gameboy
\node_modules\canvas\build\canvas.vcxproj]
  CanvasPattern.cc
  CanvasRenderingContext2d.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\Ca
nvasPattern.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_m
odules\gameboy\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\CanvasPattern.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\CanvasPattern.cc)
 [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\gameboy\
node_modules\canvas\build\canvas.vcxproj]
  color.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\Ca
nvasRenderingContext2d.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emul
ator\node_modules\gameboy\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\CanvasRenderingContext2d.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\CanvasRenderingCo
ntext2d.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modul
es\gameboy\node_modules\canvas\build\canvas.vcxproj]
  Image.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\co
lor.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\g
ameboy\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\color.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\color.cc) [C:\Use
rs\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\gameboy\node_mod
ules\canvas\build\canvas.vcxproj]
  ImageData.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\Im
age.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\g
ameboy\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\Image.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\Image.cc) [C:\Use
rs\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\gameboy\node_mod
ules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\Im
ageData.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modul
es\gameboy\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\ImageData.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\ImageData.cc) [C:
\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\gameboy\node
_modules\canvas\build\canvas.vcxproj]
  init.cc
  PixelArray.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\in
it.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\ga
meboy\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\init.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\init.cc) [C:\User
s\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\gameboy\node_modu
les\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\Pi
xelArray.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modu
les\gameboy\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\PixelArray.cc)
  win_delay_load_hook.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\PixelArray.cc) [C
:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\gameboy\nod
e_modules\canvas\build\canvas.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\TheBeastGamer25\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\TheBeastGamer25\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\gameboy\node_modules\canvas
gyp ERR! node -v v6.10.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
weplay-emulator@0.0.1 C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator
`-- canvas@1.3.3

npm WARN weplay-emulator@0.0.1 No repository field.
npm WARN weplay-emulator@0.0.1 No license field.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\TheBeastGamer25\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v6.10.1
npm ERR! npm  v3.10.9
npm ERR! code ELIFECYCLE

npm ERR! canvas@1.1.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the canvas@1.1.3 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, 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 information on how to open an issue for this project with:
npm ERR!     npm bugs canvas
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls canvas
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\npm-debug.log

C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator>

Trying to install 1.3.3, package.json:

{
  "name": "weplay-emulator",
  "version": "0.0.1",
  "description": "",
  "dependencies": {
    "canvas": "1.3.3",
    "debug": "0.7.4",
    "gameboy": "0.1.0",
    "msgpack": "0.2.2",
    "redis": "0.10.1",
    "socket.io-emitter": "1.0.0"
  },
  "scripts": {
    "start": "node index.js"
  }
}

@zbjornson
Copy link
Collaborator

The logs still show 1.1.3 though. npm might be fulfilling the fetch from its cache. From your weplay directory, try npm install canvas@1.6.5.

@ThatNerdyPikachu
Copy link
Author

@zbjornson


C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator>npm install

> canvas@1.1.3 install C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\gameboy\node_modules\canvas
> node-gyp rebuild


C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\gameboy\node_modules\canvas>if not defined npm_config_node_gyp (node "C:\Users\TheBeastGamer25\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  Canvas.cc
  CanvasGradient.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\Ca
nvas.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\
gameboy\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\Canvas.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\Canvas.cc) [C:\Us
ers\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\gameboy\node_mo
dules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\Ca
nvasGradient.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_
modules\gameboy\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\CanvasGradient.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\CanvasGradient.cc
) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\gameboy
\node_modules\canvas\build\canvas.vcxproj]
  CanvasPattern.cc
  CanvasRenderingContext2d.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\Ca
nvasPattern.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_m
odules\gameboy\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\CanvasPattern.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\CanvasPattern.cc)
 [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\gameboy\
node_modules\canvas\build\canvas.vcxproj]
  color.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\Ca
nvasRenderingContext2d.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emul
ator\node_modules\gameboy\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\CanvasRenderingContext2d.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\CanvasRenderingCo
ntext2d.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modul
es\gameboy\node_modules\canvas\build\canvas.vcxproj]
  Image.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\co
lor.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\g
ameboy\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\color.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\color.cc) [C:\Use
rs\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\gameboy\node_mod
ules\canvas\build\canvas.vcxproj]
  ImageData.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\Im
age.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\g
ameboy\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\Image.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\Image.cc) [C:\Use
rs\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\gameboy\node_mod
ules\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\Im
ageData.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modul
es\gameboy\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\ImageData.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\ImageData.cc) [C:
\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\gameboy\node
_modules\canvas\build\canvas.vcxproj]
  init.cc
  PixelArray.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\in
it.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\ga
meboy\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\init.cc)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\init.cc) [C:\User
s\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\gameboy\node_modu
les\canvas\build\canvas.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925):
 warning C4005: 'snprintf': macro redefinition (compiling source file ..\src\Pi
xelArray.cc) [C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modu
les\gameboy\node_modules\canvas\build\canvas.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925
  ): note: command-line arguments:  see previous definition of 'snprintf' (comp
  iling source file ..\src\PixelArray.cc)
  win_delay_load_hook.cc
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927):
 fatal error C1189: #error:  Macro definition of snprintf conflicts with Standa
rd Library function declaration (compiling source file ..\src\PixelArray.cc) [C
:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\gameboy\nod
e_modules\canvas\build\canvas.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\TheBeastGamer25\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\TheBeastGamer25\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\gameboy\node_modules\canvas
gyp ERR! node -v v6.10.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
weplay-emulator@0.0.1 C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator
`-- canvas@1.3.3

npm WARN weplay-emulator@0.0.1 No repository field.
npm WARN weplay-emulator@0.0.1 No license field.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\TheBeastGamer25\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v6.10.1
npm ERR! npm  v3.10.9
npm ERR! code ELIFECYCLE

npm ERR! canvas@1.1.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the canvas@1.1.3 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, 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 information on how to open an issue for this project with:
npm ERR!     npm bugs canvas
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls canvas
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\npm-debug.log

C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator>npm install canvas@1.6.5

> canvas@1.6.5 install C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas
> node-gyp rebuild


C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas>if not defined npm_config_node_gyp (node "C:\Users\TheBeastGamer25\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
Warning: Missing input files:
C:\GTK\bin\zlib1.dll
C:\GTK\bin\libexpat-1.dll
C:\GTK\bin\libpng14-14.dll
C:\GTK\bin\libcairo-2.dll
C:\GTK\bin\libfontconfig-1.dll
C:\GTK\bin\libfreetype-6.dll
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  Canvas.cc
  CanvasGradient.cc
c:\users\thebeastgamer25\desktop\weplay\weplay-emulator\node_modules\canvas\src
\Canvas.h(19): fatal error C1083: Cannot open include file: 'cairo.h': No such
file or directory (compiling source file ..\src\Canvas.cc) [C:\Users\TheBeastGa
mer25\Desktop\weplay\weplay-emulator\node_modules\canvas\build\canvas.vcxproj]
c:\users\thebeastgamer25\desktop\weplay\weplay-emulator\node_modules\canvas\src
\Canvas.h(19): fatal error C1083: Cannot open include file: 'cairo.h': No such
file or directory (compiling source file ..\src\CanvasGradient.cc) [C:\Users\Th
eBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas\build\canvas.v
cxproj]
  CanvasPattern.cc
  CanvasRenderingContext2d.cc
c:\users\thebeastgamer25\desktop\weplay\weplay-emulator\node_modules\canvas\src
\Canvas.h(19): fatal error C1083: Cannot open include file: 'cairo.h': No such
file or directory (compiling source file ..\src\CanvasPattern.cc) [C:\Users\The
BeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas\build\canvas.vc
xproj]
  color.cc
c:\users\thebeastgamer25\desktop\weplay\weplay-emulator\node_modules\canvas\src
\Canvas.h(19): fatal error C1083: Cannot open include file: 'cairo.h': No such
file or directory (compiling source file ..\src\CanvasRenderingContext2d.cc) [C
:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas\buil
d\canvas.vcxproj]
  Image.cc
  ImageData.cc
c:\users\thebeastgamer25\desktop\weplay\weplay-emulator\node_modules\canvas\src
\Canvas.h(19): fatal error C1083: Cannot open include file: 'cairo.h': No such
file or directory (compiling source file ..\src\Image.cc) [C:\Users\TheBeastGam
er25\Desktop\weplay\weplay-emulator\node_modules\canvas\build\canvas.vcxproj]
  init.cc
c:\users\thebeastgamer25\desktop\weplay\weplay-emulator\node_modules\canvas\src
\Canvas.h(19): fatal error C1083: Cannot open include file: 'cairo.h': No such
file or directory (compiling source file ..\src\ImageData.cc) [C:\Users\TheBeas
tGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas\build\canvas.vcxpro
j]
  win_delay_load_hook.cc
c:\users\thebeastgamer25\desktop\weplay\weplay-emulator\node_modules\canvas\src
\Canvas.h(19): fatal error C1083: Cannot open include file: 'cairo.h': No such
file or directory (compiling source file ..\src\init.cc) [C:\Users\TheBeastGame
r25\Desktop\weplay\weplay-emulator\node_modules\canvas\build\canvas.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\TheBeastGamer25\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\TheBeastGamer25\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\node_modules\canvas
gyp ERR! node -v v6.10.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN weplay-emulator@0.0.1 No repository field.
npm WARN weplay-emulator@0.0.1 No license field.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\TheBeastGamer25\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "canvas@1.6.5"
npm ERR! node v6.10.1
npm ERR! npm  v3.10.9
npm ERR! code ELIFECYCLE

npm ERR! canvas@1.6.5 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the canvas@1.6.5 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, 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 information on how to open an issue for this project with:
npm ERR!     npm bugs canvas
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls canvas
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator\npm-debug.log

C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator>

@zbjornson
Copy link
Collaborator

C:\Users\TheBeastGamer25\Desktop\weplay\weplay-emulator>npm install
canvas@1.1.3

That's still 1.1.3. You need to clear your npm cache or specify the version explicitly, as in npm install canvas@1.6.5.

@ThatNerdyPikachu
Copy link
Author

@zbjornson I did!

@zbjornson
Copy link
Collaborator

Ah, the 1.1.3 log was at the top and 1.6.5 buried in the middle.

Warning: Missing input files:
C:\GTK\bin\zlib1.dll
C:\GTK\bin\libexpat-1.dll
C:\GTK\bin\libpng14-14.dll
C:\GTK\bin\libcairo-2.dll
C:\GTK\bin\libfontconfig-1.dll
C:\GTK\bin\libfreetype-6.dll

If you installed GTK someplace other than C:\GTK, you need to use --GTK_Root (or better, just put them in C:\GTK so you don't have to do anything special). Also needs to be GTK2 and not GTK3 (will give the same error IIRC).

@ThatNerdyPikachu
Copy link
Author

@zbjornson How would I change this if I used choco to install?

@unional
Copy link

unional commented Sep 29, 2017

Yes, choco does not install GTK at C:\GTK. So the installation note is actually not accurate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants