dopamine
dopamine copied to clipboard
How do I exactly build THIS version of Dopamine? (Version 3)
I have tried using npm to build but I can't. Can you help me how to build Dopamine 3? Tysm.
First Install NodeJS and NPM.
Linux Debian/Debian-Based:
- Run:
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt install -y nodejs
Windows:
- Get the .exe from NodeJS Downoads
- Open CMD Prompt and Run:
npm install --global --production windows-build-tools --vs2015
Mac:
- Get the PKG installer from NodeJS Downloads
Or use Homebrew For Mac:
-
Install XCode from App Store
-
Open Terminal and Run:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew install node
Building
- If you are on Linux, Clone Dopamine with Git Clone (See readme) or with windows and mac, download and extract the zip. Then go into the Dopamine folder and open a Terminal/CMD Prompt window there. Now run:
npm install
npm run rebuild-sqlite
npm start # Start the program
npm run electron:windows # Build for Windows
npm run electron:linux # Build for Linux
npm run electron:mac # Build for Mac
Building for Linux gives a .AppImage, .snap, .deb, and a .rpm. .AppImage, .snap, and .deb gives a blank screen tho. Didn't Try RPM.
Thanks! I'll definitely try this when I get back home.
On Sun, Sep 13, 2020, 10:48 PM dragonBall561 [email protected] wrote:
For me, Building from Linux Gets me a .AppImage, a .deb, and a .snap.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/digimezzo/dopamine/issues/22#issuecomment-691688229, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIVWPT5PVCXXMQB6WHPAIWTSFTSUHANCNFSM4K772K6A .
Trying to run the command npm run rebuild-sqlite fails on my Win10 PC.

Please help me. I followed everything else perfectly.
Trying to run npm start gives more error.

Is it because I ran npm audit fix --force ?
@Cyberdroid1 Please try without running npm audit fix --force
This command is dangerous, because it updates dependencies of dependencies. This usually causes a massive amount of problems.
But, the command npm run rebuild-sqlite always fails. What about that?
Have you installed the Windows build tools?
Yes. See the image above I have attached.
I started again from scratch.

Running npm install keeps giving vulnerability errors.
After running npm audit fix , I still get some vulnerability errors. How do I fix that?
Please do'nt try to fix these and read this pinned issue: https://github.com/digimezzo/dopamine/issues/68 The pinned issue contains an article that might clear things up: https://www.voitanos.io/blog/don-t-be-alarmed-by-vulnerabilities-after-running-npm-install/
Ok, so I tried again, without fixing anything. It gets rebuild. And it opens on npm start. When the window opens, it is all blank. Nothing in it. The Inspect menu on the right says something that sharp module is causing problem/not found. How do I fix that?
Which version of sharp is listed when you perform this command?
npm list sharp
0.25.4

It seems that the rebuild-sqlite command also rebuilt sharp. This broke the sharp module. I don't know why it breaks it though. Using native modules in Electron is quite complicated. However, it was never my intent to rebuild sharp with the rebuild-sqlite command, so I've now updated that command in package.json, so that it only builds better-sqlite3. You should be able to fix your sharp issue by doing this:
- Get the latest commit in this repository
- Delete the Sharp directory from node_modules
- Run npm install to reinstall sharp
- Run npm start again to start the application
Next time you run npm run rebuild-sqlite should not break sharp again. I'll try to further understand why rebuilding sharp breaks it though.
Why does the command npm run rebuild-sqlite looks for a specific file location? It should run in its present repository, right? I keep getting error for invalid file location. Though I can change the command for the same, but still, can this not be fixed?

Thanks, the app builds correctly now. The other problem that I face is this --

The library stays blank. The Manage collections button does not do anything. Please help me with this.
I don't yet know why the rebuild sqlite command it failing. I'll look into it. As for the collection remaining empty, and some screens not working: that is normal 🙂. Dopamine 3 is in early development and does nothing yet. Well, the settings screens are operational, and audio files are indeed and album art is downloaded from the internet. But the player does not display the collection yet, and cannot play music. That is will gradually be added in the next few weeks.
It's not possible to build version 3 following the instruction above on Windows now. (And on my openSUSE Leap 15.2 I didn't success, too)
Microsoft had shut down everything about Visual Studio 2015, including Microsoft Build Tools 2015. Installing windows-build-tools vs2015 will result in vs2017 to be installed. More info here: https://github.com/felixrieseberg/windows-build-tools/issues/249
As for @Cyberdroid1 's issue mentioned above, I found this: https://www.programmersought.com/article/19371828050/

I don't know many about Node.js, so I just try building for fun. Sorry for troubling
@TragicLifeHu I'll update the build instructions this week. I've reopened the issue to keep track of it.
@TragicLifeHu With some delay, I've updated the build instructions. I tested the instructions on 2 clean Windows 10 PC's. The trick is to install Node.js including the Tools for Native Modules.
Hello
I'm trying to build dopamine 3 for Apple Silicon on an M1 Mac mini. (The release package is for Intel Mac. It works but is not ideal.) During npm install I get
npm ERR! code 1
npm ERR! path /Users/me/dev/dopamine/node_modules/better-sqlite3
npm ERR! command failed
npm ERR! command sh -c prebuild-install || npm run build-release
npm ERR! > [email protected] build-release
npm ERR! > node-gyp rebuild --release
npm ERR!
npm ERR! TOUCH ba23eeee118cd63e16015df367567cb043fed872.intermediate
npm ERR! ACTION deps_sqlite3_gyp_locate_sqlite3_target_copy_builtin_sqlite3 ba23eeee118cd63e16015df367567cb043fed872.intermediate
npm ERR! TOUCH Release/obj.target/deps/locate_sqlite3.stamp
npm ERR! CC(target) Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o
npm ERR! LIBTOOL-STATIC Release/sqlite3.a
npm ERR! rm ba23eeee118cd63e16015df367567cb043fed872.intermediate
npm ERR! prebuild-install warn install No prebuilt binaries found (target=18.16.0 runtime=node arch=arm64 libc= platform=darwin)
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] | darwin | arm64
...
I installed node.js 18.16 LTS using the arm64 pkg installer for MacOS. During the install, there was no option to install Tools for Native Modules, only node.js and npm (I clicked Customize...). Is that why better-sqlite3 and others are missing?
Is there some way to install the tools separately? I googled but could not find it.
thanks in advance
@thataboy looks like it's attempting to manually build dependencies instead. Are you sure it's not going to work?
@thataboy looks like it's attempting to manually build dependencies instead. Are you sure it's not going to work?
Thank you, but it ended with all errors, so alas no. Here's the full output. Maybe you can spot something.
npm install
npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/topo. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: flatten is deprecated in favor of utility frameworks such as lodash.
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: postinstall-build's behavior is now built into npm! You should migrate off of postinstall-build and use the new `prepare` lifecycle script with npm 5.0.0 or greater.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.
npm WARN deprecated [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code 1
npm ERR! path /Users/me/dev/dopamine/node_modules/better-sqlite3
npm ERR! command failed
npm ERR! command sh -c prebuild-install || npm run build-release
npm ERR! > [email protected] build-release
npm ERR! > node-gyp rebuild --release
npm ERR!
npm ERR! TOUCH ba23eeee118cd63e16015df367567cb043fed872.intermediate
npm ERR! ACTION deps_sqlite3_gyp_locate_sqlite3_target_copy_builtin_sqlite3 ba23eeee118cd63e16015df367567cb043fed872.intermediate
npm ERR! TOUCH Release/obj.target/deps/locate_sqlite3.stamp
npm ERR! CC(target) Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o
npm ERR! LIBTOOL-STATIC Release/sqlite3.a
npm ERR! rm ba23eeee118cd63e16015df367567cb043fed872.intermediate
npm ERR! prebuild-install warn install No prebuilt binaries found (target=18.16.0 runtime=node arch=arm64 libc= platform=darwin)
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] | darwin | arm64
npm ERR! gyp info find Python using Python version 3.10.10 found at "/Library/Frameworks/Python.framework/Versions/3.10/bin/python3"
npm ERR! (node:20762) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)
npm ERR! gyp info spawn /Library/Frameworks/Python.framework/Versions/3.10/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/Users/me/dev/dopamine/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 '/Users/me/dev/dopamine/node_modules/better-sqlite3/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/me/dev/dopamine/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/me/Library/Caches/node-gyp/18.16.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=/Users/me/Library/Caches/node-gyp/18.16.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/Users/me/dev/dopamine/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/me/Library/Caches/node-gyp/18.16.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/me/dev/dopamine/node_modules/better-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! env: python: No such file or directory
npm ERR! make: *** [Release/sqlite3.a] Error 127
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 (/Users/me/dev/dopamine/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Darwin 22.4.0
npm ERR! gyp ERR! command "/usr/local/bin/node" "/Users/me/dev/dopamine/node_modules/.bin/node-gyp" "rebuild" "--release"
npm ERR! gyp ERR! cwd /Users/me/dev/dopamine/node_modules/better-sqlite3
npm ERR! gyp ERR! node -v v18.16.0
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in: /Users/me/.npm/_logs/2023-05-01T00_47_28_850Z-debug-0.log
npm ERR! env: python: No such file or directory
Install brew, run brew install python, then try again.
@overestimate I do have python installed. See
npm ERR! gyp info find Python using Python version 3.10.10 found at "/Library/Frameworks/Python.framework/Versions/3.10/bin/python3"
python is in my path
python --version
Python 3.10.10
python3 --version
Python 3.10.10
Node 18 is not supported yet. I need to have a look at that. Until then, only the previous LTS of Node is supported (v16.20.0). I'm planning to fix this for the next preview.
@digimezzo thank you for replying. I nuked all the nodejs stuff I could find and installed nodejs 16.20 LTS. rm -rf dopamine and re cloned from git. I still got exact same errors on npm install
npm install
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/topo. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: flatten is deprecated in favor of utility frameworks such as lodash.
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: postinstall-build's behavior is now built into npm! You should migrate off of postinstall-build and use the new `prepare` lifecycle script with npm 5.0.0 or greater.
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated [email protected]: Use your platform's native performance.now() and performance.timeOrigin.
npm WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
npm WARN deprecated [email protected]: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2
npm WARN deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: Please use @electron/rebuild moving forward. There is no API change, just a package name change
npm WARN deprecated [email protected]: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.
npm WARN deprecated [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code 1
npm ERR! path /Users/me/dev/dopamine/node_modules/better-sqlite3
npm ERR! command failed
npm ERR! command sh -c -- prebuild-install || npm run build-release
npm ERR! > [email protected] build-release
npm ERR! > node-gyp rebuild --release
npm ERR!
npm ERR! TOUCH ba23eeee118cd63e16015df367567cb043fed872.intermediate
npm ERR! ACTION deps_sqlite3_gyp_locate_sqlite3_target_copy_builtin_sqlite3 ba23eeee118cd63e16015df367567cb043fed872.intermediate
npm ERR! TOUCH Release/obj.target/deps/locate_sqlite3.stamp
npm ERR! CC(target) Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o
npm ERR! LIBTOOL-STATIC Release/sqlite3.a
npm ERR! rm ba23eeee118cd63e16015df367567cb043fed872.intermediate
npm ERR! prebuild-install warn install No prebuilt binaries found (target=16.20.0 runtime=node arch=arm64 libc= platform=darwin)
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] | darwin | arm64
npm ERR! gyp info find Python using Python version 3.10.10 found at "/Library/Frameworks/Python.framework/Versions/3.10/bin/python3"
npm ERR! (node:69108) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)
npm ERR! gyp info spawn /Library/Frameworks/Python.framework/Versions/3.10/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/Users/me/dev/dopamine/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 '/Users/me/dev/dopamine/node_modules/better-sqlite3/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/me/dev/dopamine/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/me/Library/Caches/node-gyp/16.20.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=/Users/me/Library/Caches/node-gyp/16.20.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/Users/me/dev/dopamine/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/me/Library/Caches/node-gyp/16.20.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/me/dev/dopamine/node_modules/better-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! env: python: No such file or directory
npm ERR! make: *** [Release/sqlite3.a] Error 127
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 (/Users/me/dev/dopamine/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System Darwin 22.4.0
npm ERR! gyp ERR! command "/usr/local/bin/node" "/Users/me/dev/dopamine/node_modules/.bin/node-gyp" "rebuild" "--release"
npm ERR! gyp ERR! cwd /Users/me/dev/dopamine/node_modules/better-sqlite3
npm ERR! gyp ERR! node -v v16.20.0
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/me/.npm/_logs/2023-05-08T15_25_40_600Z-debug-0.log
@thataboy I saw that version 7.6.2 of better-sqlite3 has no prebuilt binaries for darwin-arm64. So I've updated better-sqlite3 to version 8.3.0 which does have prebuilt binaries for darwin-arm64. Crossing fingers that it works. Could you pull from this repo again to get the updated package.json and try npm install again?
@digimezzo Thank you for your patience. It still fails with no prebuilt binaries. I checked package.json after pulling from repo and it does have dependencies > better-sqlite3 set to 8.3.0
npm ERR! code 1
npm ERR! path /Users/me/dev/dopamine/node_modules/better-sqlite3
npm ERR! command failed
npm ERR! command sh -c -- prebuild-install || node-gyp rebuild --release
npm ERR! TOUCH ba23eeee118cd63e16015df367567cb043fed872.intermediate
npm ERR! ACTION deps_sqlite3_gyp_locate_sqlite3_target_copy_builtin_sqlite3 ba23eeee118cd63e16015df367567cb043fed872.intermediate
npm ERR! TOUCH Release/obj.target/deps/locate_sqlite3.stamp
npm ERR! CC(target) Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o
npm ERR! LIBTOOL-STATIC Release/sqlite3.a
npm ERR! rm ba23eeee118cd63e16015df367567cb043fed872.intermediate
npm ERR! prebuild-install warn install No prebuilt binaries found (target=16.20.0 runtime=node arch=arm64 libc= platform=darwin)
how do you tell which version of a package has prebuilt binaries for which node version and arch?