node-webkit-screenshot icon indicating copy to clipboard operation
node-webkit-screenshot copied to clipboard

installation error on windows

Open the-simian opened this issue 9 years ago • 3 comments

a bunch of postinstall scripts seem to currently fail for me, using node v 5.5.0 and npm v 3.3.12 on Windows.

npm ERR! node v5.5.0
npm ERR! npm  v3.3.12
npm ERR! code ELIFECYCLE

npm ERR! [email protected] postinstall: `npm install --prefix ./nw-screenshot`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'npm install --prefix ./nw-screenshot'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-webkit-screenshot package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm install --prefix ./nw-screenshot
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-webkit-screenshot
npm ERR! There is likely additional logging output above.
npm ERR! node v5.5.0
npm ERR! npm  v3.3.12

npm ERR! Callback called more than once.
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

I will add that the first error occurs multiple times, and the module appears to be attempting to install http://dl.node-webkit.org/v0.11.6/node-webkit-v0.11.6-win-x64.zip repeatedly. I saw it attempt install 4 times before exiting with status -4058 if this is probably on my end, lmk. Thanks for this module!

the-simian avatar Jan 29 '16 19:01 the-simian

it appears that the "postinstall": "npm install --prefix ./nw-screenshot", is getting heavily tripped up by the latest npm version. This might be related to npm3's nodeterministic approach to install that is a change from npm 2.

the script does not see a node modules where it is expected and keeps traveling up the folders and reinstalling over and over. That's how it looks at least.

the-simian avatar Jan 29 '16 20:01 the-simian

To be clear... The script will install, recursively forever and ever. take a look: overandover he

the-simian avatar Jan 29 '16 20:01 the-simian

I am experiencing a similar issue in another module that is similar to yours, FYI: https://github.com/davidmarkclements/nw-shot/issues/3

the-simian avatar Jan 29 '16 20:01 the-simian