lovell / sharp

High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, AVIF and TIFF images. Uses the libvips library.
https://sharp.pixelplumbing.com
Apache License 2.0
29.39k stars 1.3k forks source link

Windows - Specified module not found: Sharp #1388

Closed chiumax closed 6 years ago

chiumax commented 6 years ago

Additional information here: https://github.com/lovell/sharp/issues/1387

I have also tried making a brand new project with sharp as the only package. index.js

const testMod = require("sharp");

console.log("Done!");

package.json

{
  "dependencies": {
    "sharp": "^0.20.8"
  }
}

Running gives me this error:

internal/modules/cjs/loader.js:718
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: The specified module could not be found.
\\?\E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\Release\sharp.node
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:718:18)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\lib\constructor.js:10:15)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
PS E:\Computer-Stuff\Javascript\2018\New folder>

What I have done: I have installed node-gyp, I have installed windows-build-tools 6 times and redid install for vs community twice and installed python 2.7 twice. But nothing works. I have been stuck on this problem for at least a week and I'm am really frustrated.

lovell commented 6 years ago

Hello, please can you provide the full output of running the npm install --verbose sharp command on this machine.

pravintamil commented 6 years ago

I got the same issue


module.js:681                                                                                                       
  return process.dlopen(module, path._makeLong(filename));                                                          
                 ^                                                                                                  

Error: The specified module could not be found.                                                                     
\\?\D:\laragon\www\wofox-adonis\node_modules\sharp\build\Release\sharp.node                                         
    at Object.Module._extensions..node (module.js:681:18)                                                           
    at Module.load (module.js:565:32)                                                                               
    at tryModuleLoad (module.js:505:12)                                                                             
    at Function.Module._load (module.js:497:3)                                                                      
    at Module.require (module.js:596:17)                                                                            
    at require (internal/module.js:11:18)                                                                           
    at Object.<anonymous> (D:\laragon\www\wofox-adonis\node_modules\sharp\lib\constructor.js:10:15)                 
    at Module._compile (module.js:652:30)                                                                           
    at Object.Module._extensions..js (module.js:663:10)                                                             
    at Module.load (module.js:565:32)                                                                               
Application crashed, make sure to kill all related running process, fix the issue and re-run the app                `
chiumax commented 6 years ago

I tried npm install sharp --verbose @lovell Thank you for the response! I was afraid that no one would respond This is what I get:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   'sharp',
1 verbose cli   '--verbose' ]
2 info using npm@6.4.1
3 info using node@v10.11.0
4 verbose npm-session e8e013734c5f8367
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 200 https://registry.npmjs.org/sharp 147ms
8 silly pacote range manifest for sharp@^0.20.8 fetched in 180ms
9 timing stage:loadCurrentTree Completed in 521ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 69ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule sharp@0.20.8 checking installable status
17 silly removeObsoleteDep removing sharp@0.20.8 from the tree as its been replaced by a newer version or is no longer required
18 silly removeObsoleteDep removing color@3.0.0 from the tree as its been replaced by a newer version or is no longer required
19 silly removeObsoleteDep removing color-convert@1.9.3 from the tree as its been replaced by a newer version or is no longer required
20 silly removeObsoleteDep removing color-name@1.1.3 from the tree as its been replaced by a newer version or is no longer required
21 silly removeObsoleteDep removing color-string@1.5.3 from the tree as its been replaced by a newer version or is no longer required
22 silly removeObsoleteDep removing simple-swizzle@0.2.2 from the tree as its been replaced by a newer version or is no longer required
23 silly removeObsoleteDep removing is-arrayish@0.3.2 from the tree as its been replaced by a newer version or is no longer required
24 silly removeObsoleteDep removing fs-copy-file-sync@1.1.1 from the tree as its been replaced by a newer version or is no longer required
25 silly removeObsoleteDep removing nan@2.11.0 from the tree as its been replaced by a newer version or is no longer required
26 silly removeObsoleteDep removing prebuild-install@4.0.0 from the tree as its been replaced by a newer version or is no longer required
27 silly removeObsoleteDep removing detect-libc@1.0.3 from the tree as its been replaced by a newer version or is no longer required
28 silly removeObsoleteDep removing expand-template@1.1.1 from the tree as its been replaced by a newer version or is no longer required
29 silly removeObsoleteDep removing github-from-package@0.0.0 from the tree as its been replaced by a newer version or is no longer required
30 silly removeObsoleteDep removing minimist@1.2.0 from the tree as its been replaced by a newer version or is no longer required
31 silly removeObsoleteDep removing node-abi@2.4.4 from the tree as its been replaced by a newer version or is no longer required
32 silly removeObsoleteDep removing noop-logger@0.1.1 from the tree as its been replaced by a newer version or is no longer required
33 silly removeObsoleteDep removing npmlog@4.1.2 from the tree as its been replaced by a newer version or is no longer required
34 silly removeObsoleteDep removing are-we-there-yet@1.1.5 from the tree as its been replaced by a newer version or is no longer required
35 silly removeObsoleteDep removing delegates@1.0.0 from the tree as its been replaced by a newer version or is no longer required
36 silly removeObsoleteDep removing readable-stream@2.3.6 from the tree as its been replaced by a newer version or is no longer required
37 silly removeObsoleteDep removing core-util-is@1.0.2 from the tree as its been replaced by a newer version or is no longer required
38 silly removeObsoleteDep removing inherits@2.0.3 from the tree as its been replaced by a newer version or is no longer required
39 silly removeObsoleteDep removing isarray@1.0.0 from the tree as its been replaced by a newer version or is no longer required
40 silly removeObsoleteDep removing process-nextick-args@2.0.0 from the tree as its been replaced by a newer version or is no longer required
41 silly removeObsoleteDep removing string_decoder@1.1.1 from the tree as its been replaced by a newer version or is no longer required
42 silly removeObsoleteDep removing util-deprecate@1.0.2 from the tree as its been replaced by a newer version or is no longer required
43 silly removeObsoleteDep removing console-control-strings@1.1.0 from the tree as its been replaced by a newer version or is no longer required
44 silly removeObsoleteDep removing gauge@2.7.4 from the tree as its been replaced by a newer version or is no longer required
45 silly removeObsoleteDep removing aproba@1.2.0 from the tree as its been replaced by a newer version or is no longer required
46 silly removeObsoleteDep removing has-unicode@2.0.1 from the tree as its been replaced by a newer version or is no longer required
47 silly removeObsoleteDep removing object-assign@4.1.1 from the tree as its been replaced by a newer version or is no longer required
48 silly removeObsoleteDep removing signal-exit@3.0.2 from the tree as its been replaced by a newer version or is no longer required
49 silly removeObsoleteDep removing string-width@1.0.2 from the tree as its been replaced by a newer version or is no longer required
50 silly removeObsoleteDep removing code-point-at@1.1.0 from the tree as its been replaced by a newer version or is no longer required
51 silly removeObsoleteDep removing is-fullwidth-code-point@1.0.0 from the tree as its been replaced by a newer version or is no longer required
52 silly removeObsoleteDep removing number-is-nan@1.0.1 from the tree as its been replaced by a newer version or is no longer required
53 silly removeObsoleteDep removing strip-ansi@3.0.1 from the tree as its been replaced by a newer version or is no longer required
54 silly removeObsoleteDep removing ansi-regex@2.1.1 from the tree as its been replaced by a newer version or is no longer required
55 silly removeObsoleteDep removing wide-align@1.1.3 from the tree as its been replaced by a newer version or is no longer required
56 silly removeObsoleteDep removing set-blocking@2.0.0 from the tree as its been replaced by a newer version or is no longer required
57 silly removeObsoleteDep removing os-homedir@1.0.2 from the tree as its been replaced by a newer version or is no longer required
58 silly removeObsoleteDep removing pump@2.0.1 from the tree as its been replaced by a newer version or is no longer required
59 silly removeObsoleteDep removing end-of-stream@1.4.1 from the tree as its been replaced by a newer version or is no longer required
60 silly removeObsoleteDep removing rc@1.2.8 from the tree as its been replaced by a newer version or is no longer required
61 silly removeObsoleteDep removing deep-extend@0.6.0 from the tree as its been replaced by a newer version or is no longer required
62 silly removeObsoleteDep removing ini@1.3.5 from the tree as its been replaced by a newer version or is no longer required
63 silly removeObsoleteDep removing strip-json-comments@2.0.1 from the tree as its been replaced by a newer version or is no longer required
64 silly removeObsoleteDep removing tar-fs@1.16.3 from the tree as its been replaced by a newer version or is no longer required
65 silly removeObsoleteDep removing pump@1.0.3 from the tree as its been replaced by a newer version or is no longer required
66 silly removeObsoleteDep removing tar-stream@1.6.2 from the tree as its been replaced by a newer version or is no longer required
67 silly removeObsoleteDep removing bl@1.2.2 from the tree as its been replaced by a newer version or is no longer required
68 silly removeObsoleteDep removing buffer-alloc@1.2.0 from the tree as its been replaced by a newer version or is no longer required
69 silly removeObsoleteDep removing buffer-alloc-unsafe@1.1.0 from the tree as its been replaced by a newer version or is no longer required
70 silly removeObsoleteDep removing buffer-fill@1.0.0 from the tree as its been replaced by a newer version or is no longer required
71 silly removeObsoleteDep removing fs-constants@1.0.0 from the tree as its been replaced by a newer version or is no longer required
72 silly removeObsoleteDep removing to-buffer@1.1.1 from the tree as its been replaced by a newer version or is no longer required
73 silly removeObsoleteDep removing xtend@4.0.1 from the tree as its been replaced by a newer version or is no longer required
74 silly removeObsoleteDep removing which-pm-runs@1.0.0 from the tree as its been replaced by a newer version or is no longer required
75 silly removeObsoleteDep removing semver@5.5.1 from the tree as its been replaced by a newer version or is no longer required
76 silly removeObsoleteDep removing simple-get@2.8.1 from the tree as its been replaced by a newer version or is no longer required
77 silly removeObsoleteDep removing decompress-response@3.3.0 from the tree as its been replaced by a newer version or is no longer required
78 silly removeObsoleteDep removing mimic-response@1.0.1 from the tree as its been replaced by a newer version or is no longer required
79 silly removeObsoleteDep removing once@1.4.0 from the tree as its been replaced by a newer version or is no longer required
80 silly removeObsoleteDep removing wrappy@1.0.2 from the tree as its been replaced by a newer version or is no longer required
81 silly removeObsoleteDep removing simple-concat@1.0.0 from the tree as its been replaced by a newer version or is no longer required
82 silly removeObsoleteDep removing tar@4.4.6 from the tree as its been replaced by a newer version or is no longer required
83 silly removeObsoleteDep removing chownr@1.1.1 from the tree as its been replaced by a newer version or is no longer required
84 silly removeObsoleteDep removing fs-minipass@1.2.5 from the tree as its been replaced by a newer version or is no longer required
85 silly removeObsoleteDep removing minipass@2.3.4 from the tree as its been replaced by a newer version or is no longer required
86 silly removeObsoleteDep removing yallist@3.0.2 from the tree as its been replaced by a newer version or is no longer required
87 silly removeObsoleteDep removing minizlib@1.1.0 from the tree as its been replaced by a newer version or is no longer required
88 silly removeObsoleteDep removing mkdirp@0.5.1 from the tree as its been replaced by a newer version or is no longer required
89 silly removeObsoleteDep removing minimist@0.0.8 from the tree as its been replaced by a newer version or is no longer required
90 silly removeObsoleteDep removing tunnel-agent@0.6.0 from the tree as its been replaced by a newer version or is no longer required
91 silly removeObsoleteDep removing safe-buffer@5.1.2 from the tree as its been replaced by a newer version or is no longer required
92 http fetch GET 200 https://registry.npmjs.org/color 49ms
93 silly pacote range manifest for color@^3.0.0 fetched in 58ms
94 silly resolveWithNewModule color@3.0.0 checking installable status
95 http fetch GET 200 https://registry.npmjs.org/prebuild-install 92ms
96 http fetch GET 200 https://registry.npmjs.org/detect-libc 103ms
97 http fetch GET 200 https://registry.npmjs.org/tar 105ms
98 http fetch GET 200 https://registry.npmjs.org/fs-copy-file-sync 115ms
99 http fetch GET 200 https://registry.npmjs.org/tunnel-agent 115ms
100 silly pacote range manifest for prebuild-install@^4.0.0 fetched in 121ms
101 silly resolveWithNewModule prebuild-install@4.0.0 checking installable status
102 http fetch GET 200 https://registry.npmjs.org/semver 121ms
103 http fetch GET 200 https://registry.npmjs.org/simple-get 124ms
104 http fetch GET 200 https://registry.npmjs.org/npmlog 127ms
105 http fetch GET 200 https://registry.npmjs.org/nan 132ms
106 silly pacote range manifest for detect-libc@^1.0.3 fetched in 134ms
107 silly resolveWithNewModule detect-libc@1.0.3 checking installable status
108 silly pacote range manifest for tar@^4.4.6 fetched in 134ms
109 silly resolveWithNewModule tar@4.4.6 checking installable status
110 silly pacote range manifest for fs-copy-file-sync@^1.1.1 fetched in 138ms
111 silly resolveWithNewModule fs-copy-file-sync@1.1.1 checking installable status
112 silly pacote range manifest for tunnel-agent@^0.6.0 fetched in 138ms
113 silly resolveWithNewModule tunnel-agent@0.6.0 checking installable status
114 silly pacote range manifest for npmlog@^4.1.2 fetched in 141ms
115 silly resolveWithNewModule npmlog@4.1.2 checking installable status
116 silly pacote range manifest for semver@^5.5.1 fetched in 141ms
117 silly resolveWithNewModule semver@5.5.1 checking installable status
118 silly pacote range manifest for simple-get@^2.8.1 fetched in 141ms
119 silly resolveWithNewModule simple-get@2.8.1 checking installable status
120 silly pacote range manifest for nan@^2.11.0 fetched in 145ms
121 silly resolveWithNewModule nan@2.11.0 checking installable status
122 http fetch GET 200 https://registry.npmjs.org/color-string 39ms
123 http fetch GET 200 https://registry.npmjs.org/color-convert 46ms
124 silly pacote range manifest for color-string@^1.5.2 fetched in 47ms
125 silly resolveWithNewModule color-string@1.5.3 checking installable status
126 silly pacote range manifest for color-convert@^1.9.1 fetched in 53ms
127 silly resolveWithNewModule color-convert@1.9.3 checking installable status
128 http fetch GET 200 https://registry.npmjs.org/color-name 30ms
129 http fetch GET 200 https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz 41ms
130 silly pacote version manifest for color-name@1.1.3 fetched in 82ms
131 silly resolveWithNewModule color-name@1.1.3 checking installable status
132 http fetch GET 200 https://registry.npmjs.org/simple-swizzle 49ms
133 silly pacote range manifest for simple-swizzle@^0.2.2 fetched in 57ms
134 silly resolveWithNewModule simple-swizzle@0.2.2 checking installable status
135 http fetch GET 200 https://registry.npmjs.org/is-arrayish 40ms
136 silly pacote range manifest for is-arrayish@^0.3.1 fetched in 47ms
137 silly resolveWithNewModule is-arrayish@0.3.2 checking installable status
138 http fetch GET 200 https://registry.npmjs.org/set-blocking 35ms
139 http fetch GET 200 https://registry.npmjs.org/are-we-there-yet 40ms
140 http fetch GET 200 https://registry.npmjs.org/console-control-strings 40ms
141 http fetch GET 200 https://registry.npmjs.org/gauge 41ms
142 silly pacote range manifest for set-blocking@~2.0.0 fetched in 48ms
143 silly resolveWithNewModule set-blocking@2.0.0 checking installable status
144 silly pacote range manifest for are-we-there-yet@~1.1.2 fetched in 52ms
145 silly resolveWithNewModule are-we-there-yet@1.1.5 checking installable status
146 silly pacote range manifest for gauge@~2.7.3 fetched in 51ms
147 silly resolveWithNewModule gauge@2.7.4 checking installable status
148 silly pacote range manifest for console-control-strings@~1.1.0 fetched in 51ms
149 silly resolveWithNewModule console-control-strings@1.1.0 checking installable status
150 http fetch GET 200 https://registry.npmjs.org/delegates 33ms
151 silly pacote range manifest for delegates@^1.0.0 fetched in 42ms
152 silly resolveWithNewModule delegates@1.0.0 checking installable status
153 http fetch GET 200 https://registry.npmjs.org/readable-stream 46ms
154 silly pacote range manifest for readable-stream@^2.0.6 fetched in 54ms
155 silly resolveWithNewModule readable-stream@2.3.6 checking installable status
156 http fetch GET 200 https://registry.npmjs.org/util-deprecate 38ms
157 http fetch GET 200 https://registry.npmjs.org/isarray 44ms
158 http fetch GET 200 https://registry.npmjs.org/inherits 47ms
159 http fetch GET 200 https://registry.npmjs.org/safe-buffer 47ms
160 http fetch GET 200 https://registry.npmjs.org/string_decoder 49ms
161 http fetch GET 200 https://registry.npmjs.org/process-nextick-args 50ms
162 http fetch GET 200 https://registry.npmjs.org/core-util-is 57ms
163 silly pacote range manifest for util-deprecate@~1.0.1 fetched in 61ms
164 silly resolveWithNewModule util-deprecate@1.0.2 checking installable status
165 silly pacote range manifest for safe-buffer@~5.1.1 fetched in 64ms
166 silly resolveWithNewModule safe-buffer@5.1.2 checking installable status
167 silly pacote range manifest for isarray@~1.0.0 fetched in 64ms
168 silly resolveWithNewModule isarray@1.0.0 checking installable status
169 silly pacote range manifest for string_decoder@~1.1.1 fetched in 65ms
170 silly resolveWithNewModule string_decoder@1.1.1 checking installable status
171 silly pacote range manifest for inherits@~2.0.3 fetched in 66ms
172 silly resolveWithNewModule inherits@2.0.3 checking installable status
173 silly pacote range manifest for process-nextick-args@~2.0.0 fetched in 66ms
174 silly resolveWithNewModule process-nextick-args@2.0.0 checking installable status
175 silly pacote range manifest for core-util-is@~1.0.0 fetched in 69ms
176 silly resolveWithNewModule core-util-is@1.0.2 checking installable status
177 http fetch GET 200 https://registry.npmjs.org/signal-exit 43ms
178 http fetch GET 200 https://registry.npmjs.org/strip-ansi 46ms
179 http fetch GET 200 https://registry.npmjs.org/string-width 47ms
180 http fetch GET 200 https://registry.npmjs.org/object-assign 48ms
181 http fetch GET 200 https://registry.npmjs.org/has-unicode 50ms
182 http fetch GET 200 https://registry.npmjs.org/aproba 53ms
183 silly pacote range manifest for string-width@^1.0.1 fetched in 64ms
184 silly resolveWithNewModule string-width@1.0.2 checking installable status
185 silly pacote range manifest for signal-exit@^3.0.0 fetched in 64ms
186 silly resolveWithNewModule signal-exit@3.0.2 checking installable status
187 silly pacote range manifest for strip-ansi@^3.0.1 fetched in 65ms
188 silly resolveWithNewModule strip-ansi@3.0.1 checking installable status
189 silly pacote range manifest for object-assign@^4.1.0 fetched in 65ms
190 silly resolveWithNewModule object-assign@4.1.1 checking installable status
191 silly pacote range manifest for has-unicode@^2.0.0 fetched in 67ms
192 silly resolveWithNewModule has-unicode@2.0.1 checking installable status
193 silly pacote range manifest for aproba@^1.0.3 fetched in 69ms
194 silly resolveWithNewModule aproba@1.2.0 checking installable status
195 http fetch GET 200 https://registry.npmjs.org/wide-align 68ms
196 silly pacote range manifest for wide-align@^1.1.0 fetched in 77ms
197 silly resolveWithNewModule wide-align@1.1.3 checking installable status
198 http fetch GET 200 https://registry.npmjs.org/is-fullwidth-code-point 33ms
199 http fetch GET 200 https://registry.npmjs.org/code-point-at 38ms
200 silly pacote range manifest for is-fullwidth-code-point@^1.0.0 fetched in 43ms
201 silly resolveWithNewModule is-fullwidth-code-point@1.0.0 checking installable status
202 silly pacote range manifest for code-point-at@^1.0.0 fetched in 47ms
203 silly resolveWithNewModule code-point-at@1.1.0 checking installable status
204 http fetch GET 200 https://registry.npmjs.org/number-is-nan 44ms
205 silly pacote range manifest for number-is-nan@^1.0.0 fetched in 51ms
206 silly resolveWithNewModule number-is-nan@1.0.1 checking installable status
207 http fetch GET 200 https://registry.npmjs.org/ansi-regex 36ms
208 http fetch GET 200 https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz 32ms
209 silly pacote range manifest for ansi-regex@^2.0.0 fetched in 77ms
210 silly resolveWithNewModule ansi-regex@2.1.1 checking installable status
211 http fetch GET 200 https://registry.npmjs.org/mkdirp 33ms
212 http fetch GET 200 https://registry.npmjs.org/rc 49ms
213 http fetch GET 200 https://registry.npmjs.org/noop-logger 51ms
214 http fetch GET 200 https://registry.npmjs.org/expand-template 53ms
215 http fetch GET 200 https://registry.npmjs.org/minimist 55ms
216 silly pacote range manifest for noop-logger@^0.1.1 fetched in 71ms
217 silly resolveWithNewModule noop-logger@0.1.1 checking installable status
218 silly pacote range manifest for rc@^1.1.6 fetched in 72ms
219 silly resolveWithNewModule rc@1.2.8 checking installable status
220 http fetch GET 200 https://registry.npmjs.org/node-abi 73ms
221 http fetch GET 200 https://registry.npmjs.org/github-from-package 83ms
222 http fetch GET 200 https://registry.npmjs.org/tar-fs 85ms
223 http fetch GET 200 https://registry.npmjs.org/os-homedir 87ms
224 http fetch GET 200 https://registry.npmjs.org/pump 91ms
225 silly pacote range manifest for expand-template@^1.0.2 fetched in 93ms
226 silly resolveWithNewModule expand-template@1.1.1 checking installable status
227 silly pacote range manifest for node-abi@^2.2.0 fetched in 103ms
228 silly resolveWithNewModule node-abi@2.4.4 checking installable status
229 silly pacote version manifest for github-from-package@0.0.0 fetched in 105ms
230 silly resolveWithNewModule github-from-package@0.0.0 checking installable status
231 http fetch GET 200 https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz 69ms
232 http fetch GET 200 https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz 44ms
233 silly pacote range manifest for os-homedir@^1.0.1 fetched in 109ms
234 silly resolveWithNewModule os-homedir@1.0.2 checking installable status
235 silly pacote range manifest for pump@^2.0.1 fetched in 110ms
236 silly resolveWithNewModule pump@2.0.1 checking installable status
237 silly pacote range manifest for mkdirp@^0.5.1 fetched in 116ms
238 silly resolveWithNewModule mkdirp@0.5.1 checking installable status
239 silly pacote range manifest for minimist@^1.2.0 fetched in 116ms
240 silly resolveWithNewModule minimist@1.2.0 checking installable status
241 http fetch GET 200 https://registry.npmjs.org/tar-fs/-/tar-fs-1.16.3.tgz 36ms
242 silly pacote range manifest for tar-fs@^1.13.0 fetched in 135ms
243 silly resolveWithNewModule tar-fs@1.16.3 checking installable status
244 http fetch GET 200 https://registry.npmjs.org/which-pm-runs 70ms
245 silly pacote range manifest for which-pm-runs@^1.0.0 fetched in 79ms
246 silly resolveWithNewModule which-pm-runs@1.0.0 checking installable status
247 http fetch GET 200 https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz 31ms
248 silly pacote version manifest for minimist@0.0.8 fetched in 37ms
249 silly resolveWithNewModule minimist@0.0.8 checking installable status
250 http fetch GET 200 https://registry.npmjs.org/end-of-stream 35ms
251 silly pacote range manifest for end-of-stream@^1.1.0 fetched in 49ms
252 silly resolveWithNewModule end-of-stream@1.4.1 checking installable status
253 http fetch GET 200 https://registry.npmjs.org/once 57ms
254 silly pacote range manifest for once@^1.3.1 fetched in 64ms
255 silly resolveWithNewModule once@1.4.0 checking installable status
256 http fetch GET 200 https://registry.npmjs.org/wrappy 25ms
257 silly pacote range manifest for wrappy@1 fetched in 33ms
258 silly resolveWithNewModule wrappy@1.0.2 checking installable status
259 http fetch GET 200 https://registry.npmjs.org/strip-json-comments 35ms
260 http fetch GET 200 https://registry.npmjs.org/ini 38ms
261 http fetch GET 200 https://registry.npmjs.org/deep-extend 41ms
262 silly pacote range manifest for strip-json-comments@~2.0.1 fetched in 46ms
263 silly resolveWithNewModule strip-json-comments@2.0.1 checking installable status
264 silly pacote range manifest for ini@~1.3.0 fetched in 48ms
265 silly resolveWithNewModule ini@1.3.5 checking installable status
266 silly pacote range manifest for deep-extend@^0.6.0 fetched in 49ms
267 silly resolveWithNewModule deep-extend@0.6.0 checking installable status
268 http fetch GET 200 https://registry.npmjs.org/decompress-response 40ms
269 http fetch GET 200 https://registry.npmjs.org/simple-concat 41ms
270 silly pacote range manifest for simple-concat@^1.0.0 fetched in 50ms
271 silly resolveWithNewModule simple-concat@1.0.0 checking installable status
272 silly pacote range manifest for decompress-response@^3.3.0 fetched in 50ms
273 silly resolveWithNewModule decompress-response@3.3.0 checking installable status
274 http fetch GET 200 https://registry.npmjs.org/mimic-response 38ms
275 silly pacote range manifest for mimic-response@^1.0.0 fetched in 52ms
276 silly resolveWithNewModule mimic-response@1.0.1 checking installable status
277 silly pacote range manifest for pump@^1.0.0 fetched in 8ms
278 silly resolveWithNewModule pump@1.0.3 checking installable status
279 http fetch GET 200 https://registry.npmjs.org/chownr 41ms
280 http fetch GET 200 https://registry.npmjs.org/tar-stream 48ms
281 silly pacote range manifest for chownr@^1.0.1 fetched in 52ms
282 silly resolveWithNewModule chownr@1.1.1 checking installable status
283 silly pacote range manifest for tar-stream@^1.1.2 fetched in 56ms
284 silly resolveWithNewModule tar-stream@1.6.2 checking installable status
285 http fetch GET 200 https://registry.npmjs.org/buffer-alloc 37ms
286 http fetch GET 200 https://registry.npmjs.org/to-buffer 38ms
287 http fetch GET 200 https://registry.npmjs.org/fs-constants 41ms
288 http fetch GET 200 https://registry.npmjs.org/bl 47ms
289 silly pacote range manifest for to-buffer@^1.1.1 fetched in 48ms
290 silly resolveWithNewModule to-buffer@1.1.1 checking installable status
291 silly pacote range manifest for buffer-alloc@^1.2.0 fetched in 48ms
292 silly resolveWithNewModule buffer-alloc@1.2.0 checking installable status
293 silly pacote range manifest for fs-constants@^1.0.0 fetched in 52ms
294 silly resolveWithNewModule fs-constants@1.0.0 checking installable status
295 http fetch GET 200 https://registry.npmjs.org/xtend 53ms
296 silly pacote range manifest for bl@^1.0.0 fetched in 57ms
297 silly resolveWithNewModule bl@1.2.2 checking installable status
298 silly pacote range manifest for xtend@^4.0.0 fetched in 61ms
299 silly resolveWithNewModule xtend@4.0.1 checking installable status
300 http fetch GET 200 https://registry.npmjs.org/buffer-fill 30ms
301 http fetch GET 200 https://registry.npmjs.org/buffer-alloc-unsafe 35ms
302 silly pacote range manifest for buffer-fill@^1.0.0 fetched in 38ms
303 silly resolveWithNewModule buffer-fill@1.0.0 checking installable status
304 http fetch GET 200 https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz 34ms
305 silly pacote range manifest for buffer-alloc-unsafe@^1.1.0 fetched in 78ms
306 silly resolveWithNewModule buffer-alloc-unsafe@1.1.0 checking installable status
307 http fetch GET 200 https://registry.npmjs.org/yallist 33ms
308 http fetch GET 200 https://registry.npmjs.org/fs-minipass 34ms
309 silly pacote range manifest for fs-minipass@^1.2.5 fetched in 47ms
310 silly resolveWithNewModule fs-minipass@1.2.5 checking installable status
311 http fetch GET 200 https://registry.npmjs.org/minipass 48ms
312 silly pacote range manifest for yallist@^3.0.2 fetched in 49ms
313 silly resolveWithNewModule yallist@3.0.2 checking installable status
314 http fetch GET 200 https://registry.npmjs.org/minizlib 49ms
315 silly pacote range manifest for minizlib@^1.1.0 fetched in 59ms
316 silly resolveWithNewModule minizlib@1.1.0 checking installable status
317 silly pacote range manifest for minipass@^2.3.3 fetched in 59ms
318 silly resolveWithNewModule minipass@2.3.4 checking installable status
319 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 1559ms
320 timing stage:loadIdealTree Completed in 1648ms
321 silly currentTree New folder
321 silly currentTree +-- ansi-regex@2.1.1
321 silly currentTree +-- aproba@1.2.0
321 silly currentTree +-- are-we-there-yet@1.1.5
321 silly currentTree +-- bl@1.2.2
321 silly currentTree +-- buffer-alloc-unsafe@1.1.0
321 silly currentTree +-- buffer-alloc@1.2.0
321 silly currentTree +-- buffer-fill@1.0.0
321 silly currentTree +-- build
321 silly currentTree +-- chownr@1.1.1
321 silly currentTree +-- code-point-at@1.1.0
321 silly currentTree +-- color-convert@1.9.3
321 silly currentTree +-- color-name@1.1.3
321 silly currentTree +-- color-string@1.5.3
321 silly currentTree +-- color@3.0.0
321 silly currentTree +-- console-control-strings@1.1.0
321 silly currentTree +-- core-util-is@1.0.2
321 silly currentTree +-- decompress-response@3.3.0
321 silly currentTree +-- deep-extend@0.6.0
321 silly currentTree +-- delegates@1.0.0
321 silly currentTree +-- detect-libc@1.0.3
321 silly currentTree +-- end-of-stream@1.4.1
321 silly currentTree +-- expand-template@1.1.1
321 silly currentTree +-- fs-constants@1.0.0
321 silly currentTree +-- fs-copy-file-sync@1.1.1
321 silly currentTree +-- fs-minipass@1.2.5
321 silly currentTree +-- gauge@2.7.4
321 silly currentTree +-- github-from-package@0.0.0
321 silly currentTree +-- has-unicode@2.0.1
321 silly currentTree +-- inherits@2.0.3
321 silly currentTree +-- ini@1.3.5
321 silly currentTree +-- is-arrayish@0.3.2
321 silly currentTree +-- is-fullwidth-code-point@1.0.0
321 silly currentTree +-- isarray@1.0.0
321 silly currentTree +-- mimic-response@1.0.1
321 silly currentTree +-- minimist@1.2.0
321 silly currentTree +-- minipass@2.3.4
321 silly currentTree +-- minizlib@1.1.0
321 silly currentTree +-- mkdirp@0.5.1
321 silly currentTree | `-- minimist@0.0.8
321 silly currentTree +-- nan@2.11.0
321 silly currentTree +-- node-abi@2.4.4
321 silly currentTree +-- noop-logger@0.1.1
321 silly currentTree +-- npmlog@4.1.2
321 silly currentTree +-- number-is-nan@1.0.1
321 silly currentTree +-- object-assign@4.1.1
321 silly currentTree +-- once@1.4.0
321 silly currentTree +-- os-homedir@1.0.2
321 silly currentTree +-- prebuild-install@4.0.0
321 silly currentTree +-- process-nextick-args@2.0.0
321 silly currentTree +-- pump@2.0.1
321 silly currentTree +-- rc@1.2.8
321 silly currentTree +-- readable-stream@2.3.6
321 silly currentTree +-- safe-buffer@5.1.2
321 silly currentTree +-- semver@5.5.1
321 silly currentTree +-- set-blocking@2.0.0
321 silly currentTree +-- sharp@0.20.8
321 silly currentTree +-- signal-exit@3.0.2
321 silly currentTree +-- simple-concat@1.0.0
321 silly currentTree +-- simple-get@2.8.1
321 silly currentTree +-- simple-swizzle@0.2.2
321 silly currentTree +-- string_decoder@1.1.1
321 silly currentTree +-- string-width@1.0.2
321 silly currentTree +-- strip-ansi@3.0.1
321 silly currentTree +-- strip-json-comments@2.0.1
321 silly currentTree +-- tar-fs@1.16.3
321 silly currentTree | `-- pump@1.0.3
321 silly currentTree +-- tar-stream@1.6.2
321 silly currentTree +-- tar@4.4.6
321 silly currentTree +-- to-buffer@1.1.1
321 silly currentTree +-- tunnel-agent@0.6.0
321 silly currentTree +-- util-deprecate@1.0.2
321 silly currentTree +-- which-pm-runs@1.0.0
321 silly currentTree +-- wide-align@1.1.3
321 silly currentTree +-- wrappy@1.0.2
321 silly currentTree +-- xtend@4.0.1
321 silly currentTree `-- yallist@3.0.2
322 silly idealTree New folder
322 silly idealTree +-- ansi-regex@2.1.1
322 silly idealTree +-- aproba@1.2.0
322 silly idealTree +-- are-we-there-yet@1.1.5
322 silly idealTree +-- bl@1.2.2
322 silly idealTree +-- buffer-alloc-unsafe@1.1.0
322 silly idealTree +-- buffer-alloc@1.2.0
322 silly idealTree +-- buffer-fill@1.0.0
322 silly idealTree +-- chownr@1.1.1
322 silly idealTree +-- code-point-at@1.1.0
322 silly idealTree +-- color-convert@1.9.3
322 silly idealTree +-- color-name@1.1.3
322 silly idealTree +-- color-string@1.5.3
322 silly idealTree +-- color@3.0.0
322 silly idealTree +-- console-control-strings@1.1.0
322 silly idealTree +-- core-util-is@1.0.2
322 silly idealTree +-- decompress-response@3.3.0
322 silly idealTree +-- deep-extend@0.6.0
322 silly idealTree +-- delegates@1.0.0
322 silly idealTree +-- detect-libc@1.0.3
322 silly idealTree +-- end-of-stream@1.4.1
322 silly idealTree +-- expand-template@1.1.1
322 silly idealTree +-- fs-constants@1.0.0
322 silly idealTree +-- fs-copy-file-sync@1.1.1
322 silly idealTree +-- fs-minipass@1.2.5
322 silly idealTree +-- gauge@2.7.4
322 silly idealTree +-- github-from-package@0.0.0
322 silly idealTree +-- has-unicode@2.0.1
322 silly idealTree +-- inherits@2.0.3
322 silly idealTree +-- ini@1.3.5
322 silly idealTree +-- is-arrayish@0.3.2
322 silly idealTree +-- is-fullwidth-code-point@1.0.0
322 silly idealTree +-- isarray@1.0.0
322 silly idealTree +-- mimic-response@1.0.1
322 silly idealTree +-- minimist@1.2.0
322 silly idealTree +-- minipass@2.3.4
322 silly idealTree +-- minizlib@1.1.0
322 silly idealTree +-- mkdirp@0.5.1
322 silly idealTree | `-- minimist@0.0.8
322 silly idealTree +-- nan@2.11.0
322 silly idealTree +-- node-abi@2.4.4
322 silly idealTree +-- noop-logger@0.1.1
322 silly idealTree +-- npmlog@4.1.2
322 silly idealTree +-- number-is-nan@1.0.1
322 silly idealTree +-- object-assign@4.1.1
322 silly idealTree +-- once@1.4.0
322 silly idealTree +-- os-homedir@1.0.2
322 silly idealTree +-- prebuild-install@4.0.0
322 silly idealTree +-- process-nextick-args@2.0.0
322 silly idealTree +-- pump@2.0.1
322 silly idealTree +-- rc@1.2.8
322 silly idealTree +-- readable-stream@2.3.6
322 silly idealTree +-- safe-buffer@5.1.2
322 silly idealTree +-- semver@5.5.1
322 silly idealTree +-- set-blocking@2.0.0
322 silly idealTree +-- sharp@0.20.8
322 silly idealTree +-- signal-exit@3.0.2
322 silly idealTree +-- simple-concat@1.0.0
322 silly idealTree +-- simple-get@2.8.1
322 silly idealTree +-- simple-swizzle@0.2.2
322 silly idealTree +-- string_decoder@1.1.1
322 silly idealTree +-- string-width@1.0.2
322 silly idealTree +-- strip-ansi@3.0.1
322 silly idealTree +-- strip-json-comments@2.0.1
322 silly idealTree +-- tar-fs@1.16.3
322 silly idealTree | `-- pump@1.0.3
322 silly idealTree +-- tar-stream@1.6.2
322 silly idealTree +-- tar@4.4.6
322 silly idealTree +-- to-buffer@1.1.1
322 silly idealTree +-- tunnel-agent@0.6.0
322 silly idealTree +-- util-deprecate@1.0.2
322 silly idealTree +-- which-pm-runs@1.0.0
322 silly idealTree +-- wide-align@1.1.3
322 silly idealTree +-- wrappy@1.0.2
322 silly idealTree +-- xtend@4.0.1
322 silly idealTree `-- yallist@3.0.2
323 silly install generateActionsToTake
324 timing stage:generateActionsToTake Completed in 8ms
325 silly diffTrees action count 2
326 silly diffTrees remove build
327 silly diffTrees update sharp@0.20.8
328 silly decomposeActions action count 12
329 silly decomposeActions unbuild build
330 silly decomposeActions remove build
331 silly decomposeActions unbuild sharp@0.20.8
332 silly decomposeActions remove sharp@0.20.8
333 silly decomposeActions fetch sharp@0.20.8
334 silly decomposeActions extract sharp@0.20.8
335 silly decomposeActions preinstall sharp@0.20.8
336 silly decomposeActions build sharp@0.20.8
337 silly decomposeActions install sharp@0.20.8
338 silly decomposeActions postinstall sharp@0.20.8
339 silly decomposeActions finalize sharp@0.20.8
340 silly decomposeActions refresh-package-json sharp@0.20.8
341 silly install executeActions
342 silly doSerial global-install 12
343 verbose correctMkdir C:\Users\Super\AppData\Roaming\npm-cache\_locks correctMkdir not in flight; initializing
344 timing audit compress Completed in 1ms
345 info audit Submitting payload of 5258bytes
346 verbose lock using C:\Users\Super\AppData\Roaming\npm-cache\_locks\staging-c6dbe5b120657ecc.lock for E:\Computer-Stuff\Javascript\2018\New folder\node_modules\.staging
347 silly doParallel extract 1
348 silly extract sharp@0.20.8
349 silly tarball trying sharp@^0.20.8 by hash: sha512-A8NaPGWRDKpmHTi8sl2xzozYXhTQWBb/GaJ8ZPU7L/vKW8wVvd4Yq+isJ0c7p9sX5gnjPQcM3eOfHuvvnZ2fOQ==
350 silly tarball no local data for sharp@^0.20.8. Extracting by manifest.
351 http fetch GET 200 https://registry.npmjs.org/sharp/-/sharp-0.20.8.tgz 196ms
352 silly extract sharp@^0.20.8 extracted to E:\Computer-Stuff\Javascript\2018\New folder\node_modules\.staging\sharp-15c017ad (205ms)
353 timing action:extract Completed in 208ms
354 silly doReverseSerial unbuild 12
355 silly unbuild sharp@0.20.8
356 info lifecycle sharp@0.20.8~preuninstall: sharp@0.20.8
357 info lifecycle sharp@0.20.8~uninstall: sharp@0.20.8
358 verbose unbuild rmStuff sharp@0.20.8 from E:\Computer-Stuff\Javascript\2018\New folder\node_modules
359 info lifecycle sharp@0.20.8~postuninstall: sharp@0.20.8
360 silly unbuild build
361 info lifecycle undefined~preuninstall: undefined
362 info lifecycle undefined~uninstall: undefined
363 timing action:unbuild Completed in 4ms
364 silly doSerial remove 12
365 silly remove E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp
366 timing audit submit Completed in 644ms
367 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 644ms
368 timing audit body Completed in 1ms
369 timing action:remove Completed in 12860ms
370 silly doSerial move 12
371 silly doSerial finalize 12
372 silly finalize E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp
373 timing action:finalize Completed in 60089ms
374 verbose unlock done using C:\Users\Super\AppData\Roaming\npm-cache\_locks\staging-c6dbe5b120657ecc.lock for E:\Computer-Stuff\Javascript\2018\New folder\node_modules\.staging
375 warn rollback Rolling back sharp@0.20.8 failed (this is probably harmless): EBUSY: resource busy or locked, rmdir 'E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\Release'
376 timing stage:rollbackFailedOptional Completed in 12678ms
377 timing stage:runTopLevelLifecycles Completed in 88264ms
378 silly saveTree New folder
378 silly saveTree `-- sharp@0.20.8
378 silly saveTree   +-- color@3.0.0
378 silly saveTree   | +-- color-convert@1.9.3
378 silly saveTree   | | `-- color-name@1.1.3
378 silly saveTree   | `-- color-string@1.5.3
378 silly saveTree   |   `-- simple-swizzle@0.2.2
378 silly saveTree   |     `-- is-arrayish@0.3.2
378 silly saveTree   +-- detect-libc@1.0.3
378 silly saveTree   +-- fs-copy-file-sync@1.1.1
378 silly saveTree   +-- nan@2.11.0
378 silly saveTree   +-- npmlog@4.1.2
378 silly saveTree   | +-- are-we-there-yet@1.1.5
378 silly saveTree   | | +-- delegates@1.0.0
378 silly saveTree   | | `-- readable-stream@2.3.6
378 silly saveTree   | |   +-- core-util-is@1.0.2
378 silly saveTree   | |   +-- inherits@2.0.3
378 silly saveTree   | |   +-- isarray@1.0.0
378 silly saveTree   | |   +-- process-nextick-args@2.0.0
378 silly saveTree   | |   +-- safe-buffer@5.1.2
378 silly saveTree   | |   +-- string_decoder@1.1.1
378 silly saveTree   | |   `-- util-deprecate@1.0.2
378 silly saveTree   | +-- console-control-strings@1.1.0
378 silly saveTree   | +-- gauge@2.7.4
378 silly saveTree   | | +-- aproba@1.2.0
378 silly saveTree   | | +-- has-unicode@2.0.1
378 silly saveTree   | | +-- object-assign@4.1.1
378 silly saveTree   | | +-- signal-exit@3.0.2
378 silly saveTree   | | +-- string-width@1.0.2
378 silly saveTree   | | | +-- code-point-at@1.1.0
378 silly saveTree   | | | +-- is-fullwidth-code-point@1.0.0
378 silly saveTree   | | | | `-- number-is-nan@1.0.1
378 silly saveTree   | | | `-- strip-ansi@3.0.1
378 silly saveTree   | | |   `-- ansi-regex@2.1.1
378 silly saveTree   | | +-- strip-ansi@3.0.1
378 silly saveTree   | | `-- wide-align@1.1.3
378 silly saveTree   | `-- set-blocking@2.0.0
378 silly saveTree   +-- prebuild-install@4.0.0
378 silly saveTree   | +-- expand-template@1.1.1
378 silly saveTree   | +-- github-from-package@0.0.0
378 silly saveTree   | +-- minimist@1.2.0
378 silly saveTree   | +-- mkdirp@0.5.1
378 silly saveTree   | | `-- minimist@0.0.8
378 silly saveTree   | +-- node-abi@2.4.4
378 silly saveTree   | | `-- semver@5.5.1
378 silly saveTree   | +-- noop-logger@0.1.1
378 silly saveTree   | +-- os-homedir@1.0.2
378 silly saveTree   | +-- pump@2.0.1
378 silly saveTree   | | +-- end-of-stream@1.4.1
378 silly saveTree   | | | `-- once@1.4.0
378 silly saveTree   | | |   `-- wrappy@1.0.2
378 silly saveTree   | | `-- once@1.4.0
378 silly saveTree   | +-- rc@1.2.8
378 silly saveTree   | | +-- deep-extend@0.6.0
378 silly saveTree   | | +-- ini@1.3.5
378 silly saveTree   | | `-- strip-json-comments@2.0.1
378 silly saveTree   | +-- simple-get@2.8.1
378 silly saveTree   | | +-- decompress-response@3.3.0
378 silly saveTree   | | | `-- mimic-response@1.0.1
378 silly saveTree   | | `-- simple-concat@1.0.0
378 silly saveTree   | +-- tar-fs@1.16.3
378 silly saveTree   | | +-- chownr@1.1.1
378 silly saveTree   | | +-- pump@1.0.3
378 silly saveTree   | | `-- tar-stream@1.6.2
378 silly saveTree   | |   +-- bl@1.2.2
378 silly saveTree   | |   +-- buffer-alloc@1.2.0
378 silly saveTree   | |   | +-- buffer-alloc-unsafe@1.1.0
378 silly saveTree   | |   | `-- buffer-fill@1.0.0
378 silly saveTree   | |   +-- fs-constants@1.0.0
378 silly saveTree   | |   +-- to-buffer@1.1.1
378 silly saveTree   | |   `-- xtend@4.0.1
378 silly saveTree   | +-- tunnel-agent@0.6.0
378 silly saveTree   | `-- which-pm-runs@1.0.0
378 silly saveTree   +-- semver@5.5.1
378 silly saveTree   +-- simple-get@2.8.1
378 silly saveTree   +-- tar@4.4.6
378 silly saveTree   | +-- fs-minipass@1.2.5
378 silly saveTree   | | `-- minipass@2.3.4
378 silly saveTree   | |   `-- yallist@3.0.2
378 silly saveTree   | +-- minipass@2.3.4
378 silly saveTree   | +-- minizlib@1.1.0
378 silly saveTree   | `-- yallist@3.0.2
378 silly saveTree   `-- tunnel-agent@0.6.0
379 warn New folder No description
380 warn New folder No repository field.
381 warn New folder No license field.
382 verbose stack Error: EPERM: operation not permitted, rename 'E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp' -> 'E:\Computer-Stuff\Javascript\2018\New folder\node_modules\.sharp.DELETE'
383 verbose cwd E:\Computer-Stuff\Javascript\2018\New folder
384 verbose Windows_NT 10.0.17134
385 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "sharp" "--verbose"
386 verbose node v10.11.0
387 verbose npm  v6.4.1
388 error path E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp
389 error code EPERM
390 error errno -4048
391 error syscall rename
392 error Error: EPERM: operation not permitted, rename 'E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp' -> 'E:\Computer-Stuff\Javascript\2018\New folder\node_modules\.sharp.DELETE'
392 error  { [Error: EPERM: operation not permitted, rename 'E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp' -> 'E:\Computer-Stuff\Javascript\2018\New folder\node_modules\.sharp.DELETE']
392 error   cause:
392 error    { Error: EPERM: operation not permitted, rename 'E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp' -> 'E:\Computer-Stuff\Javascript\2018\New folder\node_modules\.sharp.DELETE'
392 error      errno: -4048,
392 error      code: 'EPERM',
392 error      syscall: 'rename',
392 error      path:
392 error       'E:\\Computer-Stuff\\Javascript\\2018\\New folder\\node_modules\\sharp',
392 error      dest:
392 error       'E:\\Computer-Stuff\\Javascript\\2018\\New folder\\node_modules\\.sharp.DELETE' },
392 error   stack:
392 error    'Error: EPERM: operation not permitted, rename \'E:\\Computer-Stuff\\Javascript\\2018\\New folder\\node_modules\\sharp\' -> \'E:\\Computer-Stuff\\Javascript\\2018\\New folder\\node_modules\\.sharp.DELETE\'',
392 error   errno: -4048,
392 error   code: 'EPERM',
392 error   syscall: 'rename',
392 error   path:
392 error    'E:\\Computer-Stuff\\Javascript\\2018\\New folder\\node_modules\\sharp',
392 error   dest:
392 error    'E:\\Computer-Stuff\\Javascript\\2018\\New folder\\node_modules\\.sharp.DELETE' }
393 error The operation was rejected by your operating system.
393 error It's possible that the file was already in use (by a text editor or antivirus),
393 error or that you lack permissions to access it.
393 error
393 error If you believe this might be a permissions issue, please double-check the
393 error permissions of the file and its containing directories, or try running
393 error the command again as root/Administrator (though this is not recommended).
394 verbose exit [ -4048, true ]
chiumax commented 6 years ago

I can try running as admin in powershell - only if you say so

lovell commented 6 years ago

If you haven't already spotted it, the salient error from the installation output above is:

Error: EPERM: operation not permitted, rename 'E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp' -> 'E:\Computer-Stuff\Javascript\2018\New folder\node_modules\.sharp.DELETE'

which suggests a local filesystem permissions error.

The comments in https://github.com/npm/npm/issues/10826 suggest a number of approaches to deal with this, with over-zealous "anti-virus" software being mentioned a number of times. Good luck!

chiumax commented 6 years ago

@lovell sorry for the late response, I was at school. turns out dependency walker was still open. I have done npm install --verbose sharp successfully but it still errors the same way:

PS E:\Computer-Stuff\Javascript\2018\New folder> node .\test.js
internal/modules/cjs/loader.js:718
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: The specified module could not be found.
\\?\E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\Release\sharp.node
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:718:18)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\lib\constructor.js:10:15)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
PS E:\Computer-Stuff\Javascript\2018\New folder>

This is the ouput of the npm install verbose

PS E:\Computer-Stuff\Javascript\2018\New folder> npm install sharp --verbose
npm info it worked if it ends with ok
npm verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
npm verb cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli   'install',
npm verb cli   'sharp',
npm verb cli   '--verbose' ]
npm info using npm@6.4.1
npm info using node@v10.11.0
npm verb npm-session 670d449a1506d8f0
npm http fetch GET 200 https://registry.npmjs.org/sharp 17ms (from cache)
npm timing stage:loadCurrentTree Completed in 366ms
npm timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms
npm timing stage:loadIdealTree:loadShrinkwrap Completed in 84ms
npm http fetch GET 200 https://registry.npmjs.org/fs-copy-file-sync 18ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/detect-libc 19ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/color 21ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/npmlog 20ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/tunnel-agent 21ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/nan 23ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/semver 23ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/tar 25ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/prebuild-install 27ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/simple-get 28ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/color-string 2ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/color-convert 3ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/color-name 2ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/simple-swizzle 3ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/is-arrayish 3ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/are-we-there-yet 5ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/console-control-strings 6ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/set-blocking 7ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/gauge 7ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/delegates 1ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/readable-stream 4ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/core-util-is 6ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/inherits 7ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/isarray 9ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/safe-buffer 9ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/util-deprecate 10ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/string_decoder 11ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/process-nextick-args 13ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/signal-exit 7ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/aproba 10ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/wide-align 8ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/string-width 11ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/object-assign 12ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/has-unicode 12ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/strip-ansi 12ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/code-point-at 2ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/is-fullwidth-code-point 3ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/number-is-nan 1ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/ansi-regex 2ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/mkdirp 8ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/expand-template 10ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/noop-logger 10ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/node-abi 12ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/minimist 13ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/github-from-package 13ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/os-homedir 13ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/pump 15ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/tar-fs 16ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/rc 19ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/which-pm-runs 5ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/once 2ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/end-of-stream 3ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/wrappy 2ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/strip-json-comments 3ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/deep-extend 6ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/ini 7ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/simple-concat 4ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/decompress-response 5ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/mimic-response 1ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/chownr 2ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/tar-stream 4ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/to-buffer 4ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/fs-constants 4ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/xtend 6ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/bl 8ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/buffer-alloc 8ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/buffer-alloc-unsafe 2ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/buffer-fill 3ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/fs-minipass 3ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/yallist 3ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/minizlib 6ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/minipass 6ms (from cache)
npm timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 266ms
npm timing stage:loadIdealTree Completed in 367ms
npm timing stage:generateActionsToTake Completed in 7ms
npm verb correctMkdir C:\Users\Super\AppData\Roaming\npm-cache\_locks correctMkdir not in flight; initializing
npm timing audit compress Completed in 5ms
npm info audit Submitting payload of 5258bytes
npm verb lock using C:\Users\Super\AppData\Roaming\npm-cache\_locks\staging-c6dbe5b120657ecc.lock for E:\Computer-Stuff\Javascript\2018\New folder\node_modules\.staging
npm timing action:extract Completed in 55ms
npm info lifecycle sharp@0.20.8~preuninstall: sharp@0.20.8
npm info lifecycle sharp@0.20.8~uninstall: sharp@0.20.8
npm verb unbuild rmStuff sharp@0.20.8 from E:\Computer-Stuff\Javascript\2018\New folder\node_modules
npm info lifecycle sharp@0.20.8~postuninstall: sharp@0.20.8
npm timing action:unbuild Completed in 4ms
npm timing action:remove Completed in 117ms
npm timing action:finalize Completed in 1ms
npm timing action:refresh-package-json Completed in 62ms
npm info lifecycle sharp@0.20.8~preinstall: sharp@0.20.8
npm timing action:preinstall Completed in 1ms
npm info linkStuff sharp@0.20.8
npm timing action:build Completed in 1ms
npm info lifecycle sharp@0.20.8~install: sharp@0.20.8

> sharp@0.20.8 install E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)

info sharp Using cached C:\Users\Super\AppData\Roaming\npm-cache\_libvips\libvips-8.6.1-win32-x64.tar.gz
(node:7996) UnhandledPromiseRejectionWarning: ZlibError: zlib: unexpected end of file
    at Zlib.(anonymous function).onerror (E:\Computer-Stuff\Javascript\2018\New folder\node_modules\minizlib\index.js:131:21)
    at Unzip.write (E:\Computer-Stuff\Javascript\2018\New folder\node_modules\minizlib\index.js:255:31)
    at Unzip.flush (E:\Computer-Stuff\Javascript\2018\New folder\node_modules\minizlib\index.js:222:10)
    at Unzip.end (E:\Computer-Stuff\Javascript\2018\New folder\node_modules\minizlib\index.js:229:10)
    at Unpack.end (E:\Computer-Stuff\Javascript\2018\New folder\node_modules\tar\lib\parse.js:415:21)
    at Yallist.pipes.forEach.p (E:\Computer-Stuff\Javascript\2018\New folder\node_modules\minipass\index.js:288:18)
    at Yallist.forEach (E:\Computer-Stuff\Javascript\2018\New folder\node_modules\yallist\yallist.js:154:8)
    at ReadStream.emit (E:\Computer-Stuff\Javascript\2018\New folder\node_modules\minipass\index.js:285:18)
    at ReadStream.emit (E:\Computer-Stuff\Javascript\2018\New folder\node_modules\fs-minipass\index.js:153:22)
    at ReadStream.[maybeEmitEnd] (E:\Computer-Stuff\Javascript\2018\New folder\node_modules\minipass\index.js:255:12)
(node:7996) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:7996) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
info sharp Creating E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\Release
info sharp Copying DLLs from E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\vendor\lib to E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\Release
prebuild-install info begin Prebuild-install version 4.0.0
prebuild-install info looking for cached prebuild @ C:\Users\Super\AppData\Roaming\npm-cache\_prebuilds\c4dc45-sharp-v0.20.8-node-v64-win32-x64.tar.gz
prebuild-install info found cached prebuild
prebuild-install info unpacking @ C:\Users\Super\AppData\Roaming\npm-cache\_prebuilds\c4dc45-sharp-v0.20.8-node-v64-win32-x64.tar.gz
prebuild-install info unpack resolved to E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\Release\sharp.node
prebuild-install WARN install The specified module could not be found.
prebuild-install WARN install \\?\E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\Release\sharp.node

E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp info it worked if it ends with ok
gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli   'rebuild' ]
gyp info using node-gyp@3.8.0
gyp info using node@10.11.0 | 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.7" in the PATH
gyp verb `which` failed Error: not found: python2.7
gyp verb `which` failed     at getNotFoundError (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:68:19)
gyp verb `which` failed     at E (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:80:29)
gyp verb `which` failed     at C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:89:16
gyp verb `which` failed     at C:\Program Files\nodejs\node_modules\npm\node_modules\isexe\index.js:42:5
gyp verb `which` failed     at C:\Program Files\nodejs\node_modules\npm\node_modules\isexe\windows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:154:21)
gyp verb `which` failed  python2.7 { Error: not found: python2.7
gyp verb `which` failed     at getNotFoundError (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:68:19)
gyp verb `which` failed     at E (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:80:29)
gyp verb `which` failed     at C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:89:16
gyp verb `which` failed     at C:\Program Files\nodejs\node_modules\npm\node_modules\isexe\index.js:42:5
gyp verb `which` failed     at C:\Program Files\nodejs\node_modules\npm\node_modules\isexe\windows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:154:21)
gyp verb `which` failed   stack:
gyp verb `which` failed    'Error: not found: python2.7\n    at getNotFoundError (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\which\\which.js:13:12)\n    at F (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\which\\which.js:68:19)\n    at E (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\which\\which.js:80:29)\n    at C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\which\\which.js:89:16\n    at C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\isexe\\index.js:42:5\n    at C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\isexe\\windows.js:36:5\n    at FSReqWrap.oncomplete (fs.js:154:21)',
gyp verb `which` failed   code: 'ENOENT' }
gyp verb could not find "python2.7". checking python launcher
gyp verb check python launcher python executable found: "C:\\Python27\\python.exe"
gyp verb check python version `C:\Python27\python.exe -c "import sys; print "2.7.13
gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 10.11.0
gyp verb command install [ '10.11.0' ]
gyp verb install input version string "10.11.0"
gyp verb install installing version: 10.11.0
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: 10.11.0
gyp verb build dir attempting to create "build" dir: E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build
gyp verb build dir "build" dir needed to be created? E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\config.gypi
gyp verb config.gypi checking for gypi file: E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\config.gypi
gyp verb common.gypi checking for gypi file: E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\common.gypi
gyp verb gyp gyp format was not specified; forcing "msvs"
gyp info spawn C:\Python27\python.exe
gyp info spawn args [ 'C:\\Program Files\\nodejs\\node_modules\\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=2015',
gyp info spawn args   '-I',
gyp info spawn args   'E:\\Computer-Stuff\\Javascript\\2018\\New folder\\node_modules\\sharp\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\Super\\.node-gyp\\10.11.0\\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\\Super\\.node-gyp\\10.11.0',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\Users\\Super\\.node-gyp\\10.11.0\\<(target_arch)\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=E:\\Computer-Stuff\\Javascript\\2018\\New folder\\node_modules\\sharp',
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   'E:\\Computer-Stuff\\Javascript\\2018\\New folder\\node_modules\\sharp\\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\Super\.node-gyp\10.11.0
gyp verb found first Solution file build/binding.sln
gyp verb could not find "msbuild.exe" in PATH - finding location in registry
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 9/25/2018 6:08:56 PM.
Project "E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\binding.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Release|x64".
Project "E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\binding.sln" (1) is building "E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\libvips-cpp.vcxproj" (2) on node 1 (default targets).
PrepareForBuild:
  Creating directory "Release\obj\libvips-cpp\".
  Creating directory "Release\obj\libvips-cpp\libvips-cpp.tlog\".
InitializeBuildStatus:
  Creating "Release\obj\libvips-cpp\libvips-cpp.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\CL.exe /c /I"C:\Users\Super\.node-gyp\10.11.0\include\node" /I"C:\Users\Super\.node-gyp\10.11.0\src" /I"C:\Users\Super\.node-gyp\10.11.0\deps\openssl\config" /I"C:\Users
  \Super\.node-gyp\10.11.0\deps\openssl\openssl\include" /I"C:\Users\Super\.node-gyp\10.11.0\deps\uv\include" /I"C:\Users\Super\.node-gyp\10.11.0\deps\zlib" /I"C:\Users\Super\.node-gyp\10.11.0\deps\v8\include" /I..\vendor\include /I"..\
  vendor\include\glib-2.0" /I"..\vendor\lib\glib-2.0\include" /Z7 /nologo /W3 /WX- /MP /Ox /Ob2 /Oi /Ot /Oy /GL /D "NODE_GYP_MODULE_NAME=libvips-cpp" /D USING_UV_SHARED=1 /D USING_V8_SHARED=1 /D V8_DEPRECATION_WARNINGS=1 /D WIN32 /D _CR
  T_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _HAS_EXCEPTIONS=0 /D VIPS_CPLUSPLUS_EXPORTS /D _ALLOW_KEYWORD_MACROS /D _WINDLL /GF /Gm- /EHsc /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR- /Fo"Release\obj\libv
  ips-cpp\\" /Fd"Release\obj\libvips-cpp\vc140.pdb" /Gd /TP /wd4351 /wd4355 /wd4800 /wd4251 /wd4275 /wd4244 /wd4267 /errorReport:queue ..\src\libvips\cplusplus\VError.cpp ..\src\libvips\cplusplus\VInterpolate.cpp ..\src\libvips\cplusplu
  s\VImage.cpp "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.cc"
  VError.cpp
  VInterpolate.cpp
  VImage.cpp
  win_delay_load_hook.cc
Link:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\link.exe /ERRORREPORT:QUEUE /OUT:"E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\Release\libvips-cpp.dll" /INCREMENTAL:NO /NOLOGO kernel32.lib use
  r32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib DelayImp.lib "C:\Users\Super\.node-gyp\10.11.0\x64\node.lib" ..\vendor\lib\libvips.lib "..\vendor\lib\libglib-2.0.lib" "..
  \vendor\lib\libgobject-2.0.lib" Delayimp.lib /DELAYLOAD:iojs.exe /DELAYLOAD:node.exe /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sh
  arp\build\Release\libvips-cpp.pdb" /MAP /MAPINFO:EXPORTS /OPT:REF /OPT:ICF /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\Release\libvips-cpp.lib" /MACHINE:X64 /ignore:41
  99 /LTCG:INCREMENTAL /DLL "Release\obj\libvips-cpp\VError.obj"
  "Release\obj\libvips-cpp\VInterpolate.obj"
  "Release\obj\libvips-cpp\VImage.obj"
  "Release\obj\libvips-cpp\win_delay_load_hook.obj"
     Creating library E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\Release\libvips-cpp.lib and object E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\Release\libvips-cpp.exp
  Generating code
  All 1060 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
  Finished generating code
  libvips-cpp.vcxproj -> E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\Release\\libvips-cpp.dll
  libvips-cpp.vcxproj -> E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\Release\libvips-cpp.pdb (Full PDB)
FinalizeBuildStatus:
  Deleting file "Release\obj\libvips-cpp\libvips-cpp.tlog\unsuccessfulbuild".
  Touching "Release\obj\libvips-cpp\libvips-cpp.tlog\libvips-cpp.lastbuildstate".
Done Building Project "E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\libvips-cpp.vcxproj" (default targets).

Project "E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\binding.sln" (1) is building "E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\sharp.vcxproj.metaproj" (3) on node 1 (default targets).
Project "E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\sharp.vcxproj.metaproj" (3) is building "E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\sharp.vcxproj" (4) on node 1 (default targets)
.
PrepareForBuild:
  Creating directory "Release\obj\sharp\".
  Creating directory "Release\obj\sharp\sharp.tlog\".
InitializeBuildStatus:
  Creating "Release\obj\sharp\sharp.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\CL.exe /c /I"C:\Users\Super\.node-gyp\10.11.0\include\node" /I"C:\Users\Super\.node-gyp\10.11.0\src" /I"C:\Users\Super\.node-gyp\10.11.0\deps\openssl\config" /I"C:\Users
  \Super\.node-gyp\10.11.0\deps\openssl\openssl\include" /I"C:\Users\Super\.node-gyp\10.11.0\deps\uv\include" /I"C:\Users\Super\.node-gyp\10.11.0\deps\zlib" /I"C:\Users\Super\.node-gyp\10.11.0\deps\v8\include" /I..\..\nan /I..\vendor\in
  clude /I"..\vendor\include\glib-2.0" /I"..\vendor\lib\glib-2.0\include" /Z7 /nologo /W3 /WX- /MP /Ox /Ob2 /Oi /Ot /Oy /GL /D NODE_GYP_MODULE_NAME=sharp /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_EXCEPTIONS=0 /D _ALLOW_KEYWORD_MACROS /D BUILDING_NODE_EXTENSION /D _WINDLL /GF /Gm- /EHsc /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR- /Fo"Release\obj
  \sharp\\" /Fd"Release\obj\sharp\vc140.pdb" /Gd /TP /wd4351 /wd4355 /wd4800 /wd4251 /wd4275 /wd4244 /wd4267 /errorReport:queue ..\src\common.cc ..\src\metadata.cc ..\src\stats.cc ..\src\operations.cc ..\src\pipeline.cc ..\src\sharp.cc
  ..\src\utilities.cc "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.cc"
  common.cc
  metadata.cc
  stats.cc
  operations.cc
  pipeline.cc
  sharp.cc
  utilities.cc
  win_delay_load_hook.cc
Link:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\link.exe /ERRORREPORT:QUEUE /OUT:"E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\Release\sharp.node" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.l
  ib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib DelayImp.lib "C:\Users\Super\.node-gyp\10.11.0\x64\node.lib" ..\vendor\lib\libvips.lib "..\vendor\lib\libglib-2.0.lib" "..\vend
  or\lib\libgobject-2.0.lib" Delayimp.lib /DELAYLOAD:iojs.exe /DELAYLOAD:node.exe /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\b
  uild\Release\sharp.pdb" /MAP /MAPINFO:EXPORTS /OPT:REF /OPT:ICF /TLBID:1 /DYNAMICBASE /NXCOMPAT /MACHINE:X64 /ignore:4199 /LTCG:INCREMENTAL /DLL Release\obj\sharp\common.obj
  Release\obj\sharp\metadata.obj
  Release\obj\sharp\stats.obj
  Release\obj\sharp\operations.obj
  Release\obj\sharp\pipeline.obj
  Release\obj\sharp\sharp.obj
  Release\obj\sharp\utilities.obj
  Release\obj\sharp\win_delay_load_hook.obj
  "E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\Release\libvips-cpp.lib"
     Creating library E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\Release\sharp.lib and object E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\Release\sharp.exp
  Generating code
  All 1458 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
  Finished generating code
  sharp.vcxproj -> E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\Release\\sharp.node
  sharp.vcxproj -> E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\Release\sharp.pdb (Full PDB)
FinalizeBuildStatus:
  Deleting file "Release\obj\sharp\sharp.tlog\unsuccessfulbuild".
  Touching "Release\obj\sharp\sharp.tlog\sharp.lastbuildstate".
Done Building Project "E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\sharp.vcxproj" (default targets).

Done Building Project "E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\sharp.vcxproj.metaproj" (default targets).

Done Building Project "E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\binding.sln" (default targets).

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:06.46
gyp info ok
info sharp Creating E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\Release
info sharp Copying DLLs from E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\vendor\lib to E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\Release
npm verb lifecycle sharp@0.20.8~install: unsafe-perm in lifecycle true
npm verb lifecycle sharp@0.20.8~install: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\node_modules\.bin;E:\Computer-Stuff\Javascript\2018\New folder\node_modules\.bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;c:\program files (x86)\common files\intel\shared libraries\redist\intel64\compiler;c:\programdata\oracle\java\javapath;c:\program files (x86)\intel\icls client\;c:\program files\intel\icls client\;c:\windows\system32;c:\windows;c:\windows\system32\wbem;c:\windows\system32\windowspowershell\v1.0\;c:\program files (x86)\intel\intel(r) management engine components\dal;c:\program files\intel\intel(r) management engine components\dal;c:\program files (x86)\intel\intel(r) management engine components\ipt;c:\program files\intel\intel(r) management engine components\ipt;c:\program files (x86)\quicktime\qtsystem\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Java\jdk1.8.0_171\bin;C:\Uncrustify;C:\Program Files\heroku\bin;C:\Program Files\nodejs\node_modules\npm;C:\Program Files\nodejs\node_modules;C:\Users\Super\AppData\Roaming\npm;C:\Program Files\Git\cmd;C:\Program Files (x86)\Yarn\bin\;C:\Program Files\nodejs\;C:\Users\Super\.windows-build-tools\python27;C:\Users\Super\.windows-build-tools\python27\python.exe;
npm verb lifecycle sharp@0.20.8~install: CWD: E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp
npm timing audit submit Completed in 601ms
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 601ms
npm timing audit body Completed in 1ms
npm timing action:install Completed in 8565ms
npm info lifecycle sharp@0.20.8~postinstall: sharp@0.20.8
npm timing action:postinstall Completed in 1ms
npm verb unlock done using C:\Users\Super\AppData\Roaming\npm-cache\_locks\staging-c6dbe5b120657ecc.lock for E:\Computer-Stuff\Javascript\2018\New folder\node_modules\.staging
npm timing stage:executeActions Completed in 8875ms
npm timing stage:rollbackFailedOptional Completed in 0ms
npm timing stage:runTopLevelLifecycles Completed in 9640ms
npm verb saving [ { name: 'sharp', spec: '^0.20.8', save: 'dependencies' } ]
npm verb shrinkwrap skipping write for package.json because there were no changes.
npm info lifecycle undefined~preshrinkwrap: undefined
npm info lifecycle undefined~shrinkwrap: undefined
npm verb shrinkwrap skipping write for package-lock.json because there were no changes.
npm info lifecycle undefined~postshrinkwrap: undefined
npm WARN New folder No description
npm WARN New folder No repository field.
npm WARN New folder No license field.

+ sharp@0.20.8
updated 1 package and audited 178 packages in 9.676s
found 0 vulnerabilities

npm verb exit [ 0, true ]
npm timing npm Completed in 10027ms
npm info ok
chiumax commented 6 years ago

@lovell Here are some message logs of someone trying to help me. Might be helpful. https://pastebin.com/xAqtt30n

lovell commented 6 years ago

The salient error this time is:

info sharp Using cached C:\Users\Super\AppData\Roaming\npm-cache\_libvips\libvips-8.6.1-win32-x64.tar.gz
(node:7996) UnhandledPromiseRejectionWarning: ZlibError: zlib: unexpected end of file

Remove the C:\Users\Super\AppData\Roaming\npm-cache\_libvips directory and try again.

chiumax commented 6 years ago

image It doesn't exist anymore and i reopened a new instance of powershell but I still get the same error.

PS E:\Computer-Stuff\Javascript\2018\New folder> node .\test.js
internal/modules/cjs/loader.js:718
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: The specified module could not be found.
\\?\E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\build\Release\sharp.node
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:718:18)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (E:\Computer-Stuff\Javascript\2018\New folder\node_modules\sharp\lib\constructor.js:10:15).js:10:15)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)

@lovell any clues?

chiumax commented 6 years ago

WHAT~! holy crap it works!

chiumax commented 6 years ago

I love you man! @lovell !!!!! I just had to rebuild npm.

lovell commented 6 years ago

Great, thanks for confirming.

It looks like there were (temporary) networking problems during a previous installation attempt that corrupted the cache. This situation came up a few days ago in #1382 so I'll see what can be done to improve error reporting in sharp.

rouxiaoxiao commented 5 years ago

@lovell cool!it works~thx

richardvanbergen commented 5 years ago

@lovell For me it was a case of deleting yarn.lock and just rebuilding it again. It wasn't happening on my local machine but it was on my build server. Once I had the new yarn.lock it went though OK.

its-dibo commented 2 years ago

Remove the C:\Users\Super\AppData\Roaming\npm-cache\_libvips directory and try again.

I removed %AppData%\Roaming\npm-cache\_libvips and %AppData%\local\npm-cache\_libvips. and totally deleted node_modules, purged npm cache, removed package-lock.json file

and reinstalled again, also rebuilt sharp npm rebuild --verbose sharp but the same issue still occurs on windows 8.1 (working in debian)

the output of npm rebuild --verbose sharp:

npm verb cli C:\Program Files\nodejs\node.exe C:\Users\eldeeb\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
npm info using npm@8.8.0
npm info using node@v16.15.0
npm timing npm:load:whichnode Completed in 0ms
npm timing config:load:defaults Completed in 1ms
npm timing config:load:file:C:\Users\eldeeb\AppData\Roaming\npm\node_modules\npm\npmrc Completed in 2ms
npm timing config:load:builtin Completed in 3ms
npm timing config:load:cli Completed in 3ms
npm timing config:load:env Completed in 1ms
npm timing config:load:file:D:\Downloads\pb\dev\projects\eng-dibo\dibo\.npmrc Completed in 0ms
npm timing config:load:project Completed in 2ms
npm timing config:load:file:C:\Users\eldeeb\.npmrc Completed in 1ms
npm timing config:load:user Completed in 1ms
npm timing config:load:file:C:\Users\eldeeb\AppData\Roaming\npm\etc\npmrc Completed in 1ms
npm timing config:load:global Completed in 1ms
npm timing config:load:validate Completed in 0ms
npm timing config:load:credentials Completed in 1ms
npm timing config:load:setEnvs Completed in 1ms
npm timing config:load Completed in 16ms
npm timing npm:load:configload Completed in 17ms
npm timing npm:load:mkdirpcache Completed in 1ms
npm timing npm:load:mkdirplogs Completed in 0ms
npm verb title npm rebuild sharp
npm verb argv "rebuild" "--loglevel" "verbose" "sharp"
npm timing npm:load:setTitle Completed in 2ms
npm timing config:load:flatten Completed in 6ms
npm timing npm:load:display Completed in 31ms
npm verb logfile logs-max:10 dir:C:\Users\eldeeb\AppData\Local\npm-cache\_logs
npm verb logfile C:\Users\eldeeb\AppData\Local\npm-cache\_logs\2022-06-08T13_53_31_423Z-debug-0.log
npm timing npm:load:logFile Completed in 13ms
npm timing npm:load:timers Completed in 0ms
npm timing npm:load:configScope Completed in 0ms
npm timing npm:load Completed in 70ms
npm timing arborist:ctor Completed in 1ms
npm verb shrinkwrap failed to load node_modules/.package-lock.json out of date, updated: node_modules
npm timing build:queue Completed in 1ms
npm info run sharp@0.30.6 install node_modules/sharp (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
npm info run sharp@0.30.6 install { code: 0, signal: null }
npm timing build:run:install:node_modules/sharp Completed in 604ms
npm timing build:run:install Completed in 605ms
npm timing build:deps Completed in 609ms
npm timing build Completed in 612ms
rebuilt dependencies successfully
npm timing command:rebuild Completed in 4030ms
npm verb exit 0
npm timing npm Completed in 4258ms
npm info ok
lovell commented 2 years ago

@eng-dibo Please open a new installation issue and answer all of the questions if you still require help.