I have been using nw for a number of years. I recently updated node.js to 19.3.0 and am wanting to update nw in my projects. When I do the following: npm install [email protected] I get a number of deprecate messages and then a 404 error. After starting the command I do see the nodemodules folder being created, but it is later deleted. The first error appearing is this:
3602 verbose stack Error: command failed 3602 verbose stack at ChildProcess. (/Users/csrf/.nvm/versions/node/v19.3.0/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:53:27)
I am wondering whether I need to revert to an earlier version of node.js and nw?
Cannot reproduce. I changed my Node version to
19.3.0. Made an empty folder and ran this in it:echo > index.html && npm init -y && npm pkg set devDependencies.nw="0.72.0-sdk" && npm pkg set main="index.html" && npm pkg set scripts.start="nw ." && npm install && npm startWorked without any issues. Other than the usual audit notice:
I'm assuming you just had a bad internet connect, or the server that hosts the NW.js binaries was being flaky (I've seen reports of this before). Just delete the
node_modulesand try again.