Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
145
rated 0 times [  151] [ 6]  / answers: 1 / hits: 5173  / 3 Years ago, mon, may 31, 2021, 12:00:00

I am trying to install modules on Windows 10 using npm 6.14.13 When I enter npm i I get:




gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:Program Files (x86)nodejsnode_modulesnpmnode_modulesnode-gyplibconfigure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:376:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command C:\Program Files (x86)\nodejs\node.exe C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\קלמן\SellersLog\sellerslog-server\node_modules\canvas\build\Release\canvas.node --module_name=canvas --module_path=C:\Users\קלמן\SellersLog\sellerslog-server\node_modules\canvas\build\Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83
gyp ERR! cwd C:UsersקלמןSellersLogsellerslog-servernode_modulescanvas
gyp ERR! node -v v14.17.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:Program Files (x86)nodejsnode.exe C:Program Files (x86)nodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js configure --fallback-to-build --module=C:UsersקלמןSellersLogsellerslog-servernode_modulescanvasbuildReleasecanvas.node --module_name=canvas --module_path=C:UsersקלמןSellersLogsellerslog-servernode_modulescanvasbuildRelease --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:UsersקלמןSellersLogsellerslog-servernode_modulesnode-pre-gyplibutilcompile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:376:20)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1055:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
node-pre-gyp ERR! System Windows_NT 10.0.18363
node-pre-gyp ERR! command C:\Program Files (x86)\nodejs\node.exe C:\Users\קלמן\SellersLog\sellerslog-server\node_modules\node-pre-gyp\bin\node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! cwd C:UsersקלמןSellersLogsellerslog-servernode_modulescanvas
node-pre-gyp ERR! node -v v14.17.0
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok
Failed to execute 'C:Program Files (x86)nodejsnode.exe C:Program Files (x86)nodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js configure --fallback-to-build --module=C:UsersקלמןSellenode_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): EPERM: operation not permitted, scandir 'C:UsersקלמןSellersLogsellerslog-servernode_modulesneedlenode_modules'
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modulesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {os:darwin,arch:any} (current: {os:win32,arch:ia32})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.




I also get this beforehand, don't know if this is important:


node-pre-gyp WARN Using request for node-pre-gyp https download 
node-pre-gyp WARN Tried to download(404): https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.6.1/canvas-v2.6.1-node-v83-win32-unknown-ia32.tar.gz
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v83 ABI, unknown) (falling back to source compile with node-gyp)


note: already tried windows-build-tools - didn't work for me


More From » node-gyp

 Answers
1

Based on



canvas-v2.6.1-node-v83-win32-unknown-ia32.tar.gz



and



C:Program Files (x86)nodejsnode.exe



you're using a 32-bit Node.js.


Based on this list, prebuilt node-canvas binaries exist only for 64-bit Node.js binaries.


I'd recommend to uninstall your 32-bit Node.js and install a 64-bit one instead.


[#1299] Sunday, May 23, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mustafaericho

Total Points: 322
Total Questions: 103
Total Answers: 110

Location: Montenegro
Member since Thu, Jun 16, 2022
2 Years ago
mustafaericho questions
Sun, May 23, 21, 00:00, 3 Years ago
Sat, Feb 13, 21, 00:00, 3 Years ago
Sat, Jan 2, 21, 00:00, 3 Years ago
Thu, Nov 12, 20, 00:00, 4 Years ago
Tue, Apr 14, 20, 00:00, 4 Years ago
;