mapbox / node-pre-gyp

Node.js tool for easy binary deployment of C++ addons
BSD 3-Clause "New" or "Revised" License
1.11k stars 263 forks source link

npm install error #660

Closed wylim6783 closed 2 years ago

wylim6783 commented 2 years ago

Please assist me in fixing this error shown as below. Appreciate!

Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\Pauline&Rueben\Desktop\NFT project\hashlips_art_engine-1.1.2_patch_v6> node -v v14.18.2 PS C:\Users\Pauline&Rueben\Desktop\NFT project\hashlips_art_engine-1.1.2_patch_v6> npm -v 6.14.15 PS C:\Users\Pauline&Rueben\Desktop\NFT project\hashlips_art_engine-1.1.2_patch_v6> npm install

canvas@2.8.0 install C:\Users\Pauline&Rueben\Desktop\NFT project\hashlips_art_engine-1.1.2_patch_v6\node_modules\canvas node-pre-gyp install --fallback-to-build

The system cannot find the path specified. internal/modules/cjs/loader.js:905 throw err; ^

Error: Cannot find module 'C:\Users\@mapbox\node-pre-gyp\bin\node-pre-gyp' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15) at Function.Module._load (internal/modules/cjs/loader.js:746:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) at internal/main/run_main_module.js:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } npm WARN hashlips_art_engine@1.1.1 No repository field.

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

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Pauline&Rueben\AppData\Roaming\npm-cache_logs\2022-06-20T08_38_48_656Z-debug.log