Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] npminstall<latest> cannot be used with 14.17.3 node #468

Open
fengyon opened this issue Nov 9, 2023 · 3 comments
Open

[Bug] npminstall<latest> cannot be used with 14.17.3 node #468

fengyon opened this issue Nov 9, 2023 · 3 comments

Comments

@fengyon
Copy link

fengyon commented Nov 9, 2023

npminstall cannot be used with 14.17.3 node, but the lowest version of node is 14.x as the readme.md tell me

node version

nvm use 14.17.3
npm install npminstall -g
npminstall -v

the error message is

internal/modules/cjs/loader.js:905
  throw err;
  ^

Error: Cannot find module 'node:util'
Require stack:
- C:\Users\xxx\AppData\Roaming\npm\node_modules\npminstall\bin\install.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
    at Function.Module._load (internal/modules/cjs/loader.js:746:27)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:92:18)
    at Object.<anonymous> (C:\Users\xxx\AppData\Roaming\npm\node_modules\npminstall\bin\install.js:3:15)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\Users\\xxx\\AppData\\Roaming\\npm\\node_modules\\npminstall\\bin\\install.js'
  ]
}

@fengmk2
Copy link
Member

fengmk2 commented Nov 9, 2023

require node >= 14.18.0

https://github.com/cnpm/npminstall/blob/master/package.json

@fengyon
Copy link
Author

fengyon commented Nov 10, 2023

but some dependencies of npminstall is not supported by 14.8.0 node from the message of installation of npminstall

that is:

npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '>= 14.19.3' },
npm WARN EBADENGINE   current: { node: 'v14.17.3', npm: '8.19.4' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '>=16' },
npm WARN EBADENGINE   current: { node: 'v14.17.3', npm: '8.19.4' }
npm WARN EBADENGINE }

@fengmk2
Copy link
Member

fengmk2 commented Nov 10, 2023

you should use the latest v14 version
maybe use the v18 is better, Node.js has no more maintainer Node.js < 18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants