-
Notifications
You must be signed in to change notification settings - Fork 10.4k
main branch build issue #2062
Comments
Hi @PP1King, thanks for sharing your query here. There seems to be some error while building WebSPA project, can you ensure you have the node and npm installed rightly? |
Are you able to resolve the issue? |
Hi, I build only the webspa and there comes a different error message: sudo docker compose build webspa
failed to solve: process "/bin/sh -c npm i npm@latest -g && npm update && npm install && npm run build:prod" did not complete successfully: exit code: 1 It look like the new npm version doesn't work with the old node version. |
You have to install the latest version of npm and node. Please ensure you have the latest or below version installed:
Install n Install a new version of Node
How to Update NPM?
I hope it helps. |
I am closing this issue. Please continue the conversation or reopen it if you want more help. |
Hi,
i downloaded the main branch and tried to build it with sudo docker compose build.
I got the following error message:
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 5.35kB 0.1s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 354B 0.0s
=> [internal] load metadata for mcr.microsoft.com/dotnet/core/sdk:3.1 0.1s
=> [internal] load metadata for mcr.microsoft.com/dotnet/core/aspnet:3.1 0.1s
=> [internal] load metadata for docker.io/library/node:10.13 1.7s
=> [build 1/42] FROM mcr.microsoft.com/dotnet/core/sdk:3.1@sha256:150d074697d1cda38a0c2185fe43895d84b5745841e9d15c5adba29604a6e4cb 0.0s
=> [base 1/2] FROM mcr.microsoft.com/dotnet/core/aspnet:3.1@sha256:e3b773f30a0a6e88d71ce52429f6847627fc9353e491346902ca345760b82bdd 0.0s
=> CACHED [final 1/2] WORKDIR /app 0.0s
=> CACHED [base 2/2] WORKDIR /app 0.0s
=> [internal] load build context 0.2s
=> => transferring context: 117.79kB 0.2s
=> [node-build 1/6] FROM docker.io/library/node:10.13@sha256:dc724f69561cc8e1437bda5ca0f1c88541ae1794dbd5a392abacf1166c4b0393 0.0s
=> CACHED [node-build 2/6] WORKDIR /web 0.0s
=> CACHED [node-build 3/6] COPY Web/WebSPA/package.json . 0.0s
=> CACHED [node-build 4/6] COPY Web/WebSPA/package-lock.json . 0.0s
=> CACHED [node-build 5/6] COPY Web/WebSPA . 0.0s
=> CANCELED [node-build 6/6] RUN npm i npm@latest -g && npm update && npm install && npm run build:prod 8.2s
failed to solve: process "/bin/sh -c dotnet publish --no-restore -c Release -o /app" did not complete successfully: exit code: 1
I am using Ubuntu 22.04.
Can someone help me?
The text was updated successfully, but these errors were encountered: