-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
error /node_modules/better-sqlite3: Command failed. #5520
Comments
It looks like we're trying to extract Also: this appears to be an issue for you when you try to develop Signal Desktop, not when you try to use it. If that's wrong, let me know. |
This is probably git lfs: https://git-lfs.github.com/ But we shouldn't be talking about this kind of stuff here. Please use the forums: https://community.signalusers.org/ |
Where is the solution? How to solve this error? |
Please use the forums: https://community.signalusers.org/ |
This fixed it for me: #5220 (comment) |
yarn install v1.22.11
[1/6] Validating package.json...
[2/6] Resolving packages...
[3/6] Fetching packages...
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
info dmg-license@1.0.9: The platform "linux" is incompatible with this module.
info "dmg-license@1.0.9" is an optional dependency and failed compatibility check. Excluding it from installation.
info iconv-corefoundation@1.1.6: The platform "linux" is incompatible with this module.
info "iconv-corefoundation@1.1.6" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/6] Linking dependencies...
warning " > react-contextmenu@2.11.0" has unmet peer dependency "prop-types@^15.0.0".
warning " > react-sortable-hoc@1.9.1" has unmet peer dependency "prop-types@^15.5.7".
warning " > css-loader@3.2.0" has incorrect peer dependency "webpack@^4.0.0".
warning " > eslint-config-airbnb-typescript-prettier@3.1.0" has incorrect peer dependency "typescript@>=3.3.1 <3.10.0".
warning " > file-loader@4.2.0" has incorrect peer dependency "webpack@^4.0.0".
warning " > grunt-gitinfo@0.1.7" has incorrect peer dependency "grunt@~0.4.5".
warning " > sass-loader@7.2.0" has incorrect peer dependency "webpack@^3.0.0 || ^4.0.0".
warning " > style-loader@1.0.0" has incorrect peer dependency "webpack@^4.0.0".
[5/6] Rebuilding all packages...
[9/37] ⠄ ffi-napi
[2/37] ⠄ better-sqlite3
[3/37] ⠄ mac-screen-capture-permissions
[6/37] ⠄ sharp
error /home/pcname/Desktop/Signal-Desktop/node_modules/better-sqlite3: Command failed.
Exit code: 1
Command: npm run build-release
Arguments:
Directory: /home/pcname/Desktop/Signal-Desktop/node_modules/better-sqlite3
Output:
npm WARN lifecycle The node binary used for scripts is /tmp/yarn--1631961976391-0.3592314451352474/node but npm is using /home/pcname/.nvm/versions/node/v14.16.0/bin/node itself. Use the
--scripts-prepend-node-path
option to include the path for the node binary npm was executed with.make: Entering directory '/home/pcname/Desktop/Signal-Desktop/node_modules/better-sqlite3/build'
TOUCH b857c92884e9598d609f6be182a2595df7a8e00f.intermediate
ACTION deps_sqlite3_gyp_locate_sqlite3_target_extract_sqlite3 b857c92884e9598d609f6be182a2595df7a8e00f.intermediate
/home/pcname/Desktop/Signal-Desktop/node_modules/better-sqlite3/deps/extract.js:8
process.on('unhandledRejection', (err) => { throw err; });
^
Error: TAR_BAD_ARCHIVE: Unrecognized archive format
at Unpack.warn (/home/pcname/Desktop/Signal-Desktop/node_modules/better-sqlite3/node_modules/tar/lib/warn-mixin.js:19:40)
at Unpack.warn (/home/pcname/Desktop/Signal-Desktop/node_modules/better-sqlite3/node_modules/tar/lib/unpack.js:189:18)
at Unpack. (/home/pcname/Desktop/Signal-Desktop/node_modules/better-sqlite3/node_modules/tar/lib/parse.js:81:14)
at Unpack.emit (events.js:327:22)
at Unpack.[emit] (/home/pcname/Desktop/Signal-Desktop/node_modules/better-sqlite3/node_modules/tar/lib/parse.js:285:12)
at Unpack.[maybeEnd] (/home/pcname/Desktop/Signal-Desktop/node_modules/better-sqlite3/node_modules/tar/lib/parse.js:401:17)
at Unpack.[consumeChunk] (/home/pcname/Desktop/Signal-Desktop/node_modules/better-sqlite3/node_modules/tar/lib/parse.js:432:21)
at Unpack.write (/home/pcname/Desktop/Signal-Desktop/node_modules/better-sqlite3/node_modules/tar/lib/parse.js:364:25)
at Unpack.end (/home/pcname/Desktop/Signal-Desktop/node_modules/better-sqlite3/node_modules/tar/lib/parse.js:477:14)
at Yallist. (/home/pcname/Desktop/Signal-Desktop/node_modules/better-sqlite3/node_modules/minipass/index.js:396:18) {
recoverable: false,
file: '/home/pcname/Desktop/Signal-Desktop/node_modules/better-sqlite3/deps/sqlite3.tar.gz',
cwd: '/home/pcname/Desktop/Signal-Desktop/node_modules/better-sqlite3/build/Release/obj/gen/sqlite3',
code: 'TAR_BAD_ARCHIVE',
tarCode: 'TAR_BAD_ARCHIVE'
}
deps/locate_sqlite3.target.mk:16: recipe for target 'b857c92884e9598d609f6be182a2595df7a8e00f.intermediate' failed
rm b857c92884e9598d609f6be182a2595df7a8e00f.intermediate
make: Leaving directory '/home/pcname/Desktop/Signal-Desktop/node_modules/better-sqlite3/build'
make: *** [b857c92884e9598d609f6be182a2595df7a8e00f.intermediate] Error 1
gyp ERR! build error
gyp ERR! stack Error:
make
failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/home/pcname/.nvm/versions/node/v14.16.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Linux 5.4.0-84-generic
gyp ERR! command "/home/pcname/.nvm/versions/node/v14.16.0/bin/node" "/home/pcname/.nvm/versions/node/v14.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
gyp ERR! cwd /home/pcname/Desktop/Signal-Desktop/node_modules/better-sqlite3
gyp ERR! node -v v14.16.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! better-sqlite3@7.1.4 build-release:
node-gyp rebuild --release
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the better-sqlite3@7.1.4 build-release script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
The text was updated successfully, but these errors were encountered: