Replies: 3 comments 1 reply
-
|
any answer? |
Beta Was this translation helpful? Give feedback.
-
|
I have found the simplest solution to be to use It's not beautiful, but that way you guarantee that the arguments are passed to the build script directly when running |
Beta Was this translation helpful? Give feedback.
-
|
Since this discussion is one of the top Google results when searching for installing packages from source using I had a problem with installing In the end my solution was to install a tagged version from GitHub (https://pnpm.io/cli/add) This forces a build from source because you are adding a source dependency. You will likely be prompted to approve a build from source which you can follow and do which will then prompt you with now works. This of course means you can't use nicer features like upgrading packages, you would have to manually check and modify the github deps. In my case that is perfectly acceptable, but understandable if that isn't for others. I do not have any recent experience working with electron, and certainly none attempting to use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How use npm install --build-from-source in pnpm?
I need use sqlite3 in Electron,like this:
npm install sqlite3 --build-from-source --runtime=electron --target=18.2.1 --dist-url=https://electronjs.org/headersbut
pnpm install sqlite3 -- --build-from-source --runtime=electron --target=18.2.1 --dist-url=https://electronjs.org/headersis not workBeta Was this translation helpful? Give feedback.
All reactions