npm install error
Closed this issue · 1 comments
While building I get the following error on Proxmox LXC with alpine:
=> ERROR [4/6] RUN npm install 8.1s
------
> [4/6] RUN npm install:
------
failed to solve: process "/bin/sh -c npm install" did not complete successfully: exit code: 137
I changed nothing in .env and docker-compose.yaml.
Is this a problem with LXC?
Hello @elec2,
To resolve this issue, you can try the following steps:
-
Check your LXC container resources: Ensure that your system has enough memory available to complete the installation process. You can check the memory usage using tools like top or
htop
in a terminal. -
Update your Node.js and npm versions: Make sure you are using the latest stable versions of Node.js and npm. Outdated versions can sometimes cause compatibility issues. You can update Node.js and npm by downloading the latest versions from their respective websites and following the installation instructions.
# Install NodeJS 18.X and npm
$ sudo apt update
$ sudo apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates
$ curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -
$ sudo apt-get install -y nodejs
$ npm install -g npm@latest
- Clear npm cache: Sometimes, issues with the npm cache can cause problems during installation. Clear the npm cache by running the following command:
npm cache clean --force
Retry the installation: Once you have completed the above steps, try running the npm install command again and see if the issue persists. If the problem still persists after following these steps, it may be helpful to provide more details about your Node.js and npm versions, and any relevant configuration or error messages you encounter.
PS: GitHub is mainly for bugs/reqs, please ask questions on the discord forum as specified in the readme.
Thank you!