jer-tan
HOBBYOP
a year ago
I got this error message:
#10 0.346 npm
WARN config production Use `--omit=dev` instead.
#10 8.299 npm WARN ERESOLVE overriding peer dependency
#10 8.300 npm WARN While resolving: db0@0.1.4
#10 8.300 npm WARN Found: drizzle-orm@0.33.0
#10 8.300 npm WARN node_modules/drizzle-orm
#10 8.300 npm WARN drizzle-orm@"^0.33.0" from the root project
#10 8.300 npm WARN
#10 8.300 npm WARN Could not resolve dependency:
#10 8.300 npm WARN peerOptional drizzle-orm@"^0.29.4" from db0@0.1.4
#10 8.300 npm WARN node_modules/db0
#10 8.300 npm WARN db0@"^0.1.4" from nitropack@2.9.7
#10 8.300 npm WARN node_modules/nitropack
#10 8.300 npm WARN
#10 8.300 npm WARN Conflicting peer dependency: drizzle-orm@0.29.5
#10 8.300 npm WARN node_modules/drizzle-orm
#10 8.300 npm WARN peerOptional drizzle-orm@"^0.29.4" from db0@0.1.4
#10 8.300 npm WARN node_modules/db0
#10 8.300 npm WARN db0@"^0.1.4" from nitropack@2.9.7
#10 8.300 npm WARN node_modules/nitropack
#10 8.303 npm WARN EBADENGINE Unsupported engine {
#10 8.303 npm WARN EBADENGINE package: '@nuxt/kit@3.15.0',
#10 8.303 npm WARN EBADENGINE required: { node: '>=18.20.5' },
#10 8.303 npm WARN EBADENGINE current: { node: 'v18.20.2', npm: '10.5.0' }
#10 8.303 npm WARN EBADENGINE }0 Replies
dev
MODERATOR
a year ago
Easiest way to run a specific node version would to just use a Dockerfile
The project complexity grows a bit and I am not entirely sure how to write a good docker file so I didn't proceed that way, is there any way I can tweak without using Dockerfile?
dev
MODERATOR
a year ago
Not that I know of
uxuz
MODERATOR
a year ago

uxuz
MODERATOR
a year ago
The easiest way, without modifying your code, is to set the NIXPACKS_NODE_VERSION environment variable.
dev
MODERATOR
a year ago
that only sets the major version, you can't tweak minor versions through that means
uxuz
MODERATOR
a year ago
That's indeed true, however couldn't they specify a higher major version such as 20?
dev
MODERATOR
a year ago
yea true
dev
MODERATOR
a year ago
!s
Status changed to Solved dev • 11 months ago