Closed thisjt closed 2 months ago
This is because you are installing it as a devDependency, and devDependencies do not install their devDependency, so it is trying to run a post-install script referencing a node module that was skipped.
I designed base-volta-off-of-nwjs
to be ran via npx
, so this kind of thing wouldn't happen, but also, I hadn't considered its use with a library, rather than a desktop app.
Perhaps changing to a different npm hook would work better. I don't know which one (if any) is better though:
@ayushmanchhabra You'd want something that runs locally for development, but isn't ran when installed as a dependency when published.
This repo could create a postinstall.js
script that checks if node_modules/.bin/base-volta-off-of-nwjs
exists, and if so, runs it. Then change the package.json
to "postinstall": "node ./scripts/postinstall.js"
. That's the only solution I can think of to work around this.
Confirmed fixed in 4.7.7. Thanks!
Issue Type
Current/Missing Behaviour
I am getting this error when I attempt to update to 4.7.6.
Expected/Proposed Behaviour
postinstall script will run without issues after updating
Additional Info
pnpm i -D nw-builder@latest