svandragt / psh

PHP Virtual Environment Shell
MIT License
0 stars 0 forks source link

Unsupported Engine (node) #11

Open svandragt opened 3 years ago

svandragt commented 3 years ago

NPM is misdetecting the active node. Might be a problem on psh side.

bash-5.1$ git restore pshrc
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'xxxxxxxx@0.1.0',
npm WARN EBADENGINE   required: { node: '>=14.17.0', npm: '>=7.18.0' },
npm WARN EBADENGINE   current: { node: 'v12.21.0', npm: '7.19.1' }
npm WARN EBADENGINE }
bash-5.1$ cat pshrc
node=14

Using Node    : /Users/sander/.nvm/versions/node/v14.16.1/bin/node

$ npm --version
7.19.1
bash-5.1$ node --version
v14.16.1
svandragt commented 3 years ago

https://github.com/npm/cli/issues/2728