-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install node from source on OpenSuse
- Loading branch information
1 parent
c06c025
commit c308f19
Showing
1 changed file
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,13 @@ RUN zypper --gpg-auto-import-keys refresh | |
RUN zypper install -y sudo gcc-c++ make vim git subversion cmake nodejs nodejs-devel npm rpm-build unzip curl | ||
RUN zypper install -y libcurl-devel libicu-devel sqlite3-devel zlib-devel | ||
|
||
# Install node 18.18.0 | ||
RUN npm install -g n | ||
RUN n 18.18.0 | ||
RUN wget https://nodejs.org/dist/v18.18.0/node-v18.18.0.tar.gz | ||
RUN tar xvfz node-v18.18.0.tar.gz | ||
RUN cd node-v18.18.0 && ./configure && make && make install | ||
|
||
# Install node 14.17.5 | ||
#RUN npm install -g n | ||
#RUN n 14.17.5 | ||
|
||
RUN npm install -g [email protected] | ||
|
||
|