Skip to content

Commit

Permalink
🪛 Fixed a problem with the Node.js setup script.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maseshi committed May 25, 2024
1 parent 214333b commit d05140b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions start.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ echo ┃ and install all necessary components. If you ┃
echo ┃ don't want to continue, you can Ctrl + C ┃
echo ┃ or ^^C. ┃
echo ┃ ┃
echo ┃ Will install: winget, Schniz.fnm, Git, ┃
echo ┃ Will install: winget, Git,
echo ┃ Java(TM).SE.Development.Kit, Python.3.12, ┃
echo ┃ FFmpeg and Visual.Studio.BuildTools.2022 ┃
echo ┃ FFmpeg, Visual.Studio.BuildTools.2022 and ┃
echo ┃ Node.js.LTS ┃
echo ┃ ┃
echo ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
echo.
Expand All @@ -39,8 +40,7 @@ if %errorlevel% neq 0 (
echo.

echo Updating and installing required components...
call winget install Schniz.fnm Git Java(TM).SE.Development.Kit Python.3.12 FFmpeg Visual.Studio.BuildTools.2022
call fnm use --install-if-missing 20
call winget install Git Java(TM).SE.Development.Kit Python.3.12 FFmpeg Visual.Studio.BuildTools.2022 Node.js.LTS
echo.

echo Updating NPM to the latest version...
Expand Down
14 changes: 7 additions & 7 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ cat << "EOF"
┃ don't want to continue, you can Ctrl + C ┃
┃ or ^C. ┃
┃ ┃
┃ Will install: curl, fnm, git, default-jre,
python3, ffmpeg, build-essential,
libcairo2-dev, libpango1.0-dev, libjpeg-dev ┃
libgif-dev and librsvg2-dev
┃ Will install: curl, git, default-jre, python3,
┃ ffmpeg, build-essential, libcairo2-dev,
┃ libpango1.0-dev, libjpeg-dev, libgif-dev,
librsvg2-dev and nodejs
┃ ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
EOF
echo

echo Updating system packages and installing required packages...
sudo apt-get update && sudo apt-get install curl git default-jre python3 ffmpeg build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev -y
curl -fsSL https://fnm.vercel.app/install | bash
fnm use --install-if-missing 20
sudo apt-get update && sudo apt-get install -y curl git default-jre python3 ffmpeg build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs
echo

echo Updating NPM to the latest version...
Expand Down

0 comments on commit d05140b

Please sign in to comment.