galenframework-cli icon indicating copy to clipboard operation
galenframework-cli copied to clipboard

[email protected] postinstall: `node postinstall.js`

Open ywcullen opened this issue 6 years ago • 15 comments

What did you do?

npm i -g galenframework-cli

What did you expect to happen?

ℹSuccessfully install and link gallenframework-cli

What happened instead?

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] postinstall: node postinstall.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users<username>\AppData\Roaming\npm-cache_logs\2019-01-02T11_17_57_295Z-debug.log

Your Environment

Node v10.13.0 npm 6.4.1 Windows 10 Pro

ywcullen avatar Jan 02 '19 11:01 ywcullen

can you post the contents of C:\Users\AppData\Roaming\npm-cache_logs\2019-01-02T11_17_57_295Z-debug.log?

hypery2k avatar Jan 02 '19 11:01 hypery2k

could you past the last 200-300 lines, otherwise attach the file here via drag and drop

hypery2k avatar Jan 02 '19 15:01 hypery2k

strange, on the ci windows build it's working, can you try the following:

  1. Install via admin shell
  2. if also not working please run npm install -g galenframework-cli --verbose

BTW: Are you using power shell or command prompt to instal?

hypery2k avatar Jan 02 '19 15:01 hypery2k

strange, on the ci windows build it's working, can you try the following:

  1. Install via admin shell
  2. if also not working please run npm install -g galenframework-cli --verbose

BTW: Are you using power shell or command prompt to instal?

2019-01-02T15_41_05_804Z-debug.log

I was installing this as admin - above is the log with --verbose

ywcullen avatar Jan 02 '19 15:01 ywcullen

could you try using node 8? node 6 is out of support and will reach end of life in the next months:

https://nodejs.org/en/about/releases/

hypery2k avatar Jan 09 '19 05:01 hypery2k

From my log I believe I am using node v10.13.0?

ywcullen avatar Jan 10 '19 21:01 ywcullen

you're right. I mixed npm and nodejs. Sorry,

What is the output if you run the following?

cd C:\Users\Mark Cullen\AppData\Roaming\npm\node_modules\galenframework-cli
node postinstall.js

hypery2k avatar Jan 11 '19 03:01 hypery2k

I cannot run this as it cleans up the galenframework-cli directory when the install fails. I did however copy the postinstall.js file out of the folder during the installation and tried opening it but it won't open.

ywcullen avatar Jan 11 '19 09:01 ywcullen

can you try version 2.4.2?

hypery2k avatar Jan 31 '19 05:01 hypery2k

Same result I'm afraid :-(

ywcullen avatar Jan 31 '19 10:01 ywcullen

also with 2.4.4?

hypery2k avatar Oct 24 '19 05:10 hypery2k

Facing same issue with 2.4.4.

info007 avatar Jan 08 '20 20:01 info007

@info007 I am also facing same issue with 2.4.4. Have you been able to solve it?

denniske avatar Feb 03 '21 18:02 denniske

Works for me now with npm i -g galenframework-cli. I was using yarn add galenframework-cli before which did not work somehow.

denniske avatar Feb 03 '21 20:02 denniske