Skip to content
New issue

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

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

Already on GitHub? # to your account

Fail on prisma installation #2

Open
ChenShifu0308 opened this issue Aug 23, 2023 · 2 comments
Open

Fail on prisma installation #2

ChenShifu0308 opened this issue Aug 23, 2023 · 2 comments

Comments

@ChenShifu0308
Copy link

Got the error below when compose up the docker.
Changing the node version to 18 resolved the issue on my end.
FROM node:18.

> [nxtjs-frontend 4/6] RUN npm install     npm install prisma:                                                                                                  
9.298 npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!                                                                                                                                               
111.4                                                                                                                                                            
111.4 > prisma@5.2.0 preinstall /usr/src/app/node_modules/prisma                                                                                                 
111.4 > node scripts/preinstall-entry.js
111.4 
111.4 ┌──────────────────────────────────────────────┐
111.4 │    Prisma only supports Node.js >= 16.13.    │
111.4 │    Please upgrade your Node.js version.      │
111.4 └──────────────────────────────────────────────┘
111.6 npm WARN notsup Unsupported engine for prisma@5.2.0: wanted: {"node":">=16.13"} (current: {"node":"14.21.3","npm":"6.14.18"})
111.6 npm WARN notsup Not compatible with your version of node/npm: prisma@5.2.0
111.6 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-android-arm64@13.2.1 (node_modules/@next/swc-android-arm64):
111.6 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-android-arm64@13.2.1: wanted {"os":"android","arch":"arm64"} (current: {"os":"linux","arch":"arm64"})
111.6 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-android-arm-eabi@13.2.1 (node_modules/@next/swc-android-arm-eabi):
111.6 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-android-arm-eabi@13.2.1: wanted {"os":"android","arch":"arm"} (current: {"os":"linux","arch":"arm64"})
111.6 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-darwin-arm64@13.2.1 (node_modules/@next/swc-darwin-arm64):
111.6 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-darwin-arm64@13.2.1: wanted {"os":"darwin","arch":"arm64"} (current: {"os":"linux","arch":"arm64"})
111.6 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-linux-arm-gnueabihf@13.2.1 (node_modules/@next/swc-linux-arm-gnueabihf):
111.6 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-linux-arm-gnueabihf@13.2.1: wanted {"os":"linux","arch":"arm"} (current: {"os":"linux","arch":"arm64"})
111.7 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-darwin-x64@13.2.1 (node_modules/@next/swc-darwin-x64):
111.7 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-darwin-x64@13.2.1: wanted {"os":"darwin","arch":"x64"} (current: {"os":"linux","arch":"arm64"})
111.7 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-freebsd-x64@13.2.1 (node_modules/@next/swc-freebsd-x64):
111.7 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-freebsd-x64@13.2.1: wanted {"os":"freebsd","arch":"x64"} (current: {"os":"linux","arch":"arm64"})
111.7 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-linux-x64-gnu@13.2.1 (node_modules/@next/swc-linux-x64-gnu):
111.7 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-linux-x64-gnu@13.2.1: wanted {"os":"linux","arch":"x64"} (current: {"os":"linux","arch":"arm64"})
111.7 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-linux-x64-musl@13.2.1 (node_modules/@next/swc-linux-x64-musl):
111.7 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-linux-x64-musl@13.2.1: wanted {"os":"linux","arch":"x64"} (current: {"os":"linux","arch":"arm64"})
111.7 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-win32-ia32-msvc@13.2.1 (node_modules/@next/swc-win32-ia32-msvc):
111.7 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-win32-ia32-msvc@13.2.1: wanted {"os":"win32","arch":"ia32"} (current: {"os":"linux","arch":"arm64"})
111.7 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-win32-arm64-msvc@13.2.1 (node_modules/@next/swc-win32-arm64-msvc):
111.7 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-win32-arm64-msvc@13.2.1: wanted {"os":"win32","arch":"arm64"} (current: {"os":"linux","arch":"arm64"})
111.7 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-win32-x64-msvc@13.2.1 (node_modules/@next/swc-win32-x64-msvc):
111.7 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-win32-x64-msvc@13.2.1: wanted {"os":"win32","arch":"x64"} (current: {"os":"linux","arch":"arm64"})
111.7 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
111.7 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm64"})
111.7 
111.7 npm ERR! code ELIFECYCLE
111.7 npm ERR! errno 1
111.7 npm ERR! prisma@5.2.0 preinstall: `node scripts/preinstall-entry.js`
111.7 npm ERR! Exit status 1
111.7 npm ERR! 
111.7 npm ERR! Failed at the prisma@5.2.0 preinstall script.
111.7 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
111.7 
111.7 npm ERR! A complete log of this run can be found in:
111.7 npm ERR!     /root/.npm/_logs/2023-08-23T06_51_49_367Z-debug.log
@amiqagroup
Copy link

Docker file is updated, you can delete previous files and git clone the repository again it will work fine

@ukparis1
Copy link

Update your Dockerfile to use a newer version of Node.js. You can change the FROM line to use a more recent version. For example:

Dockerfile

FROM node:16

After making this change, rebuild your Docker image using:

bash

docker-compose up --build

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

No branches or pull requests

3 participants