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

Installing sqlite3: @npmcli/move-file is deprecated, use @npmcli/fs instead #2854

Closed
kdhanashri31 opened this issue May 22, 2023 · 22 comments
Closed
Labels
node-pre-gyp < v2 mapbox/node-pre-gyp#657 Windows

Comments

@kdhanashri31
Copy link

kdhanashri31 commented May 22, 2023

npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup   [
npm WARN cleanup     'C:\\Users\\ext-kastured\\Desktop\\DhanashriNK\\Angular\\CopyAMS\\AMS\\ams\\node_modules\\sqlite3\\node_modules',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\ext-kastured\Desktop\DhanashriNK\Angular\CopyAMS\AMS\ams\node_modules\sqlite3\node_modules\node-gyp\test\fixtures\nodedir\include\node'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'C:\\Users\\ext-kastured\\Desktop\\DhanashriNK\\Angular\\CopyAMS\\AMS\\ams\\node_modules\\sqlite3\\node_modules\\node-gyp\\test\\fixtures\\nodedir\\include\\node'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     'C:\\Users\\ext-kastured\\Desktop\\DhanashriNK\\Angular\\CopyAMS\\AMS\\ams\\node_modules\\sqlite3',npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\ext-kastured\Desktop\DhanashriNK\Angular\CopyAMS\AMS\ams\node_modules\sqlite3\node_modules\node-gyp\test\fixtures\nodedir\include'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'C:\\Users\\ext-kastured\\Desktop\\DhanashriNK\\Angular\\CopyAMS\\AMS\\ams\\node_modules\\sqlite3\\node_modules\\node-gyp\\test\\fixtures\\nodedir\\include'
npm WARN cleanup     }
npm WARN cleanup   ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path C:\Users\ext-kastured\Desktop\DhanashriNK\Angular\CopyAMS\AMS\ams\node_modules\sqlite3
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build
npm ERR! Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\ext-kastured\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\ext-kastured\Desktop\DhanashriNK\Angular\CopyAMS\AMS\ams\node_modules\sqlite3\lib\binding\napi-v6-win32-unknown-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\ext-kastured\Desktop\DhanashriNK\Angular\CopyAMS\AMS\ams\node_modules\sqlite3\lib\binding\napi-v6-win32-unknown-x64 --napi_version=8 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6' (1)   
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using [email protected]
npm ERR! node-pre-gyp info using [email protected] | win32 | x64
npm ERR! node-pre-gyp WARN Using needle for node-pre-gyp https download
npm ERR! node-pre-gyp info check checked for "C:\Users\ext-kastured\Desktop\DhanashriNK\Angular\CopyAMS\AMS\ams\node_modules\sqlite3\lib\binding\napi-v6-win32-unknown-x64\node_sqlite3.node" (not found)
npm ERR! node-pre-gyp http GET https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.6/napi-v6-win32-unknown-x64.tar.gz
npm ERR! node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v108 ABI, unknown) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp WARN Hit error ENOENT: no such file or directory, open 'C:\KBData\DigiCertHighAssuranceEVRootCA' 
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info find Python using Python version 3.7.8 found at "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\python.exe"
npm ERR! gyp http GET https://nodejs.org/download/release/v18.14.2/node-v18.14.2-headers.tar.gz
npm ERR! gyp WARN install got an error, rolling back install
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: ENOENT: no such file or directory, open 'C:\KBData\DigiCertHighAssuranceEVRootCA'        
npm ERR! gyp ERR! System Windows_NT 10.0.19044
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\ext-kastured\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\ext-kasturee_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\\Users\\ext-kastured\\Desktop\\DhanashriNK\\Angular\\CopyAMS\\AMS\\ams\\node_modules\\sqlite3\\lib\\binding\\napi-v6-win32-unknown-x64" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=6" "--node_napi_label=napi-v6"
npm ERR! gyp ERR! cwd C:\Users\ext-kastured\Desktop\DhanashriNK\Angular\CopyAMS\AMS\ams\node_modules\sqlite3
npm ERR! gyp ERR! node -v v18.14.2
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
npm ERR! node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\ext-kastured\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\ext-kastured\Desktop\DhanashriNK\Angular\CopyAMS\AMS\ams\node_modules\sqlite3\lib\binding\napi-v6-win32-unknown-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\ext-kastured\Desktop\DhanashriNK\Angular\CopyAMS\AMS\ams\node_modules\sqlite3\lib\binding\napi-v6-win32-unknown-x64 --napi_version=8 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6' (1)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\ext-kastured\Desktop\DhanashriNK\Angular\CopyAMS\AMS\ams\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
npm ERR! node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1091:16)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:302:5)
npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.19044
npm ERR! node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\ext-kastured\\Desktop\\DhanashriNK\\Angular\\CopyAMS\\AMS\\ams\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd C:\Users\ext-kastured\Desktop\DhanashriNK\Angular\CopyAMS\AMS\ams\node_modules\sqlite3   
npm ERR! node-pre-gyp ERR! node -v v18.14.2
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.17.0
npm ERR! node-pre-gyp ERR! not ok

The dependencies are

"dependencies": {
    "@angular/animations": "^15.2.0",
    "@angular/cdk": "^15.2.3",
    "@angular/common": "^15.2.0",
    "@angular/compiler": "^15.2.0",
    "@angular/core": "^15.2.0",
    "@angular/forms": "^15.2.0",
    "@angular/material": "^15.2.3",
    "@angular/platform-browser": "^15.2.0",
    "@angular/platform-browser-dynamic": "^15.2.0",
    "@angular/router": "^15.2.0",
    "@mapbox/node-pre-gyp": "^1.0.10",
    "bootstrap": "^5.2.3",
    "jquery": "^3.6.3",
    "ngx-owl-carousel-o": "^15.0.1",
    "node-gyp": "^9.3.1",
    "node-pre-gyp": "^0.17.0",
    "rxjs": "~7.8.0",
    "sass": "^1.62.1",
    "sqlite": "^4.2.0",
    "sweetalert2": "^11.7.3",
    "swiper": "^9.1.0",
    "tslib": "^2.5.0",
    "zone.js": "~0.12.0"
  }
@cclauss
Copy link
Contributor

cclauss commented May 22, 2023

Please run npm doctor

Also:

npm uninstall node-pre-gyp --save
npm install @mapbox/node-pre-gyp --save

@kdhanashri31
Copy link
Author

While installing doctor I am facing following error

Check Value Recommendation/Notes
npm ping ok
npm -v ok current: v9.6.7, latest: v9.6.7
node -v not ok Use node v18.16.0 (current: v18.14.2)
npm config get registry ok using default registry (https://registry.npmjs.org/)
npm WARN Error: not found: git
git executable in PATH not ok Error: Install git and ensure it's in your PATH.
global bin folder in PATH ok C:\Users\ext-kastured\AppData\Roaming\npm
npm ERR! Some problems found. See above for recommendations.

@cclauss
Copy link
Contributor

cclauss commented May 23, 2023

npm uninstall node-pre-gyp move-file --save
npm install --global @mapbox/node-pre-gyp @npmcli/fs --save

@kdhanashri31
Copy link
Author

After running that two commands, the error is still same for
npm install sqlite3

@cclauss
Copy link
Contributor

cclauss commented May 23, 2023

Does your error start with:

npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs

@kdhanashri31
Copy link
Author

npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs

yes, my error starts with this line.

@cclauss
Copy link
Contributor

cclauss commented May 23, 2023

npm uninstall @npmcli/move-file --save
npm list | grep move-file

@kdhanashri31
Copy link
Author

while running second command I get the error

grep : The term 'grep' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:12

  • npm list | grep move-file
  •        ~~~~
    
    • CategoryInfo : ObjectNotFound: (grep:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

@cclauss
Copy link
Contributor

cclauss commented May 23, 2023

Just do npm list and see if move-file is still on the list.

@kdhanashri31
Copy link
Author

├── @mapbox/[email protected]
├── [email protected]
└── [email protected]

@NarangSwati
Copy link

I am facing the same issue installing sqlite3 with [email protected].

@iamtonmoy0
Copy link

iamtonmoy0 commented Feb 16, 2024

i am facing the same issue

@cclauss cclauss changed the title I am installing sqlite3 on my VS code but I am facing the following error Installing sqlite3 — @npmcli/move-file is deprecated, use @npmcli/fs instead Feb 16, 2024
@cclauss cclauss changed the title Installing sqlite3 — @npmcli/move-file is deprecated, use @npmcli/fs instead Installing sqlite3: @npmcli/move-file is deprecated, use @npmcli/fs instead Feb 16, 2024
@cclauss
Copy link
Contributor

cclauss commented Feb 16, 2024

npm uninstall @npmcli/move-file --save
npm install @npmcli/fs --save

@iamtonmoy0
Copy link

npm uninstall @npmcli/move-file --save
npm install @npmcli/fs --save

i am getting this error:
└──╼ $npm i sqlite3
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm ERR! code 1
npm ERR! path /home/jarvis/Desktop/Code/Node Js/node-express-sqlite-rest-api/node_modules/sqlite3
npm ERR! command failed
npm ERR! command sh -c prebuild-install -r napi || node-gyp rebuild
npm ERR! make: Entering directory '/home/jarvis/Desktop/Code/Node Js/node-express-sqlite-rest-api/node_modules/sqlite3/build'
npm ERR! CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o
npm ERR! AR(target) Release/obj.target/../node-addon-api/nothing.a
npm ERR! COPY Release/nothing.a
npm ERR! ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c
npm ERR! TOUCH Release/obj.target/deps/action_before_build.stamp
npm ERR! CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3440200/sqlite3.o
npm ERR! AR(target) Release/obj.target/deps/sqlite3.a
npm ERR! COPY Release/sqlite3.a
npm ERR! CXX(target) Release/obj.target/node_sqlite3/src/backup.o
npm ERR! make: Leaving directory '/home/jarvis/Desktop/Code/Node Js/node-express-sqlite-rest-api/node_modules/sqlite3/build'
npm ERR! prebuild-install warn install Request timed out
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | linux | x64
npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/home/jarvis/Desktop/Code/Node Js/node-express-sqlite-rest-api/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/jarvis/Desktop/Code/Node Js/node-express-sqlite-rest-api/node_modules/sqlite3/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/jarvis/Desktop/Code/Node Js/node-express-sqlite-rest-api/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/jarvis/.cache/node-gyp/20.11.0/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/home/jarvis/.cache/node-gyp/20.11.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/home/jarvis/Desktop/Code/Node Js/node-express-sqlite-rest-api/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/home/jarvis/.cache/node-gyp/20.11.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/jarvis/Desktop/Code/Node Js/node-express-sqlite-rest-api/node_modules/sqlite3',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! /bin/sh: 1: Js/node-express-sqlite-rest-api/node_modules/sqlite3/build/Release/lib.host:/home/jarvis/Desktop/Code/Node: not found
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c: In function ‘sqlite3VdbeExec’:
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:95855:50: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 95855 | zPayload[6] = (u8)(v&0xff); v >>= 8;
npm ERR! | ~~^~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:95856:11: note: here
npm ERR! 95856 | case 6: zPayload[5] = (u8)(v&0xff); v >>= 8;
npm ERR! | ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:95857:50: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 95857 | zPayload[4] = (u8)(v&0xff); v >>= 8;
npm ERR! | ~~^~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:95858:11: note: here
npm ERR! 95858 | case 4: zPayload[3] = (u8)(v&0xff); v >>= 8;
npm ERR! | ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:95858:50: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 95858 | case 4: zPayload[3] = (u8)(v&0xff); v >>= 8;
npm ERR! | ~~^~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:95859:11: note: here
npm ERR! 95859 | case 3: zPayload[2] = (u8)(v&0xff); v >>= 8;
npm ERR! | ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:95859:50: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 95859 | case 3: zPayload[2] = (u8)(v&0xff); v >>= 8;
npm ERR! | ~~^~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:95860:11: note: here
npm ERR! 95860 | case 2: zPayload[1] = (u8)(v&0xff); v >>= 8;
npm ERR! | ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:95860:50: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 95860 | case 2: zPayload[1] = (u8)(v&0xff); v >>= 8;
npm ERR! | ~~^~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:95861:11: note: here
npm ERR! 95861 | case 1: zPayload[0] = (u8)(v&0xff);
npm ERR! | ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c: In function ‘jsonParseValue’:
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:204385:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 204385 | if( strncmp(z+i,"null",4)==0 && !sqlite3Isalnum(z[i+4]) ){
npm ERR! | ^
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:204391:3: note: here
npm ERR! 204391 | default: {
npm ERR! | ^~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c: In function ‘cellArea’:
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:208625:22: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 208625 | case 5: area = p->aCoord[9].f - p->aCoord[8].f;
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:208626:7: note: here
npm ERR! 208626 | case 4: area *= p->aCoord[7].f - p->aCoord[6].f;
npm ERR! | ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:208626:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 208626 | case 4: area *= p->aCoord[7].f - p->aCoord[6].f;
npm ERR! | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:208627:7: note: here
npm ERR! 208627 | case 3: area *= p->aCoord[5].f - p->aCoord[4].f;
npm ERR! | ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:208627:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 208627 | case 3: area *= p->aCoord[5].f - p->aCoord[4].f;
npm ERR! | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:208628:7: note: here
npm ERR! 208628 | case 2: area *= p->aCoord[3].f - p->aCoord[2].f;
npm ERR! | ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:208628:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 208628 | case 2: area *= p->aCoord[3].f - p->aCoord[2].f;
npm ERR! | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:208629:7: note: here
npm ERR! 208629 | default: area *= p->aCoord[1].f - p->aCoord[0].f;
npm ERR! | ^~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:208635:22: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 208635 | case 5: area = (i64)p->aCoord[9].i - (i64)p->aCoord[8].i;
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:208636:7: note: here
npm ERR! 208636 | case 4: area *= (i64)p->aCoord[7].i - (i64)p->aCoord[6].i;
npm ERR! | ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:208636:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 208636 | case 4: area *= (i64)p->aCoord[7].i - (i64)p->aCoord[6].i;
npm ERR! | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:208637:7: note: here
npm ERR! 208637 | case 3: area *= (i64)p->aCoord[5].i - (i64)p->aCoord[4].i;
npm ERR! | ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:208637:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 208637 | case 3: area *= (i64)p->aCoord[5].i - (i64)p->aCoord[4].i;
npm ERR! | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:208638:7: note: here
npm ERR! 208638 | case 2: area *= (i64)p->aCoord[3].i - (i64)p->aCoord[2].i;
npm ERR! | ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:208638:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 208638 | case 2: area *= (i64)p->aCoord[3].i - (i64)p->aCoord[2].i;
npm ERR! | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:208639:7: note: here
npm ERR! 208639 | default: area *= (i64)p->aCoord[1].i - (i64)p->aCoord[0].i;
npm ERR! | ^~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c: In function ‘rtreeCallbackConstraint’:
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:207746:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 207746 | readCoord(pCellData+32, &c); aCoord[8] = c.f;
npm ERR! | ~~~~~~~~~~^~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:207747:7: note: here
npm ERR! 207747 | case 8: readCoord(pCellData+28, &c); aCoord[7] = c.f;
npm ERR! | ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:207748:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 207748 | readCoord(pCellData+24, &c); aCoord[6] = c.f;
npm ERR! | ~~~~~~~~~~^~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:207749:7: note: here
npm ERR! 207749 | case 6: readCoord(pCellData+20, &c); aCoord[5] = c.f;
npm ERR! | ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:207750:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 207750 | readCoord(pCellData+16, &c); aCoord[4] = c.f;
npm ERR! | ~~~~~~~~~~^~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:207751:7: note: here
npm ERR! 207751 | case 4: readCoord(pCellData+12, &c); aCoord[3] = c.f;
npm ERR! | ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:207752:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 207752 | readCoord(pCellData+8, &c); aCoord[2] = c.f;
npm ERR! | ~~~~~~~~~~^~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:207753:7: note: here
npm ERR! 207753 | default: readCoord(pCellData+4, &c); aCoord[1] = c.f;
npm ERR! | ^~~~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:207761:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 207761 | readCoord(pCellData+32, &c); aCoord[8] = c.i;
npm ERR! | ~~~~~~~~~~^~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:207762:7: note: here
npm ERR! 207762 | case 8: readCoord(pCellData+28, &c); aCoord[7] = c.i;
npm ERR! | ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:207763:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 207763 | readCoord(pCellData+24, &c); aCoord[6] = c.i;
npm ERR! | ~~~~~~~~~~^~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:207764:7: note: here
npm ERR! 207764 | case 6: readCoord(pCellData+20, &c); aCoord[5] = c.i;
npm ERR! | ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:207765:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 207765 | readCoord(pCellData+16, &c); aCoord[4] = c.i;
npm ERR! | ~~~~~~~~~~^~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:207766:7: note: here
npm ERR! 207766 | case 4: readCoord(pCellData+12, &c); aCoord[3] = c.i;
npm ERR! | ^~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:207767:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 207767 | readCoord(pCellData+8, &c); aCoord[2] = c.i;
npm ERR! | ~~~~~~~~~~^~~~~
npm ERR! Release/obj/gen/sqlite-autoconf-3440200/sqlite3.c:207768:7: note: here
npm ERR! 207768 | default: readCoord(pCellData+4, &c); aCoord[1] = c.i;
npm ERR! | ^~~~~~~
npm ERR! g++: error: Js/node-express-sqlite-rest-api/node_modules/node-addon-api: No such file or directory
npm ERR! make: *** [node_sqlite3.target.mk:135: Release/obj.target/node_sqlite3/src/backup.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: make failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/home/jarvis/Desktop/Code/Node Js/node-express-sqlite-rest-api/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:518:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
npm ERR! gyp ERR! System Linux 6.1.0-1parrot1-amd64
npm ERR! gyp ERR! command "/home/jarvis/.nvm/versions/node/v20.11.0/bin/node" "/home/jarvis/Desktop/Code/Node Js/node-express-sqlite-rest-api/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /home/jarvis/Desktop/Code/Node Js/node-express-sqlite-rest-api/node_modules/sqlite3
npm ERR! gyp ERR! node -v v20.11.0
npm ERR! gyp ERR! node-gyp -v v8.4.1
npm ERR! gyp ERR! not ok

@cclauss
Copy link
Contributor

cclauss commented Feb 16, 2024

npm install sqlite3@latest --save

npm ERR! gyp ERR! node-gyp -v v8.4.1

Please use the current version of this software:

@iamtonmoy0
Copy link

npm install sqlite3@latest --save

I have tried this but doesn't work

@cclauss
Copy link
Contributor

cclauss commented Feb 17, 2024

@cclauss
Copy link
Contributor

cclauss commented Feb 18, 2024

@azerum
Copy link

azerum commented Feb 18, 2024

The error on macOS is a bit cleaner:

npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm ERR! code 1
npm ERR! path /path/to/project/node_modules/sqlite3
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build
npm ERR! Unknown command: "/path/to/project/node_modules/.bin/node-pre-gyp"
npm ERR! 
npm ERR! To see a list of supported npm commands, run:
npm ERR!   npm help

From my testing, the error does not happen with [email protected], and happens with [email protected] (and probably later versions, I got the same error on 10.4.0)

Might be related to npm/cli#4308

I don't think it is a bug of node-gyp, just leaving this info for future visitors. Looks like an NPM bug

@cclauss
Copy link
Contributor

cclauss commented Feb 18, 2024

/path/to/project/

That needs to be modified that be the actual path to your project!

@azerum
Copy link

azerum commented Feb 18, 2024

I've replaced the actual path with a placeholder to avoid revealing any extra information

@cclauss cclauss added the node-pre-gyp < v2 mapbox/node-pre-gyp#657 label Apr 11, 2024
@cclauss
Copy link
Contributor

cclauss commented Jan 27, 2025

Please retry with the new node-pre-gyp v2. If this fails with v2, please provide a full error log, and I will reopen this issue.

@cclauss cclauss closed this as completed Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
node-pre-gyp < v2 mapbox/node-pre-gyp#657 Windows
Projects
None yet
Development

No branches or pull requests

5 participants