unjs / nypm

🌈 Unified Package Manager for Node.js and Bun
MIT License
439 stars 13 forks source link

The engine "node" is incompatible with this module. #71

Closed freakkiller closed 1 year ago

freakkiller commented 1 year ago

Environment

{ "name": "xxx", "private": true, "scripts": { "dev": "nuxt dev", "build": "nuxt build", "generate": "nuxt generate", "preview": "nuxt preview", "start": "node .output/server/index.mjs" }, "devDependencies": { "nuxt": "^3.4.3", "primeicons": "^6.0.1", "primevue": "^3.28.0" }, "dependencies": { "@pinia/nuxt": "^0.4.10", "@vuelidate/core": "^2.0.2", "@vuelidate/validators": "^2.0.2", "axios": "^1.4.0", "swiper": "^9.3.0", "pinia": "^2.0.36", "sass": "^1.62.1" } }

Reproduction

Upgrade to node version 20.2.0 and try to run yarn install

Describe the bug

error nypm@0.2.0: The engine "node" is incompatible with this module. Expected version "^14.16.0 || ^16.10.0 || ^17.0.0 || ^18.0.0 || ^19.0.0". Got "20.2.0" error Found incompatible module.

Additional context

No response

Logs

No response

danielroe commented 1 year ago

the fix has been merged but needs to be released: https://github.com/unjs/nypm/pull/67 and https://github.com/unjs/nypm/pull/70.

cc: @pi0

pi0 commented 1 year ago

Should be fixed in latest release