RUN sed -i '/deb http:///debian jessie-updates main/d' /etc/apt/sources. # RUN echo "deb jessie main" > /etc/apt//jessie.list Execute the following command: sudo apt install nodejs npm -y. Debian 10 Buster includes quite a few different applications in its official repositories. Use apt install to install Node.js and NPM, the default package manager for Node.js. # As suggested by a user, for some people this line works instead of the first one. Once the repository has been updated, proceed with the installation. To resolve the issue I updated my Dockerfile with following: RUN echo "deb jessie-backports main" > /etc/apt//jessie-backports.list Node.js is bundled with several useful libraries. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices. NVM is a bash script that alows you to choose your preffered Node.js version to install. ![]() ![]() ![]() Their suggestions were useful but didn't give an exact steps to get rid of problem because the trouble that I was having was due to an image of Node 6.10, which comes with Debian Jessie. Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Method 2 : Install Node.js 18 on Debian 11 / Debian 10 using NVM package manager Alternatively, you can use the Node Version Manager (NVM) to install Node.js 18 on your Debian system. Thanks to for the useful answer and other people who commented.
0 Comments
Leave a Reply. |