-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
42 additions
and
140 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
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 |
---|---|---|
@@ -1,24 +1,17 @@ | ||
set -x | ||
|
||
# Add NodeJS to sources list | ||
# curl -sL https://deb.nodesource.com/setup_$NODE_MAJOR.x | bash - | ||
# curl -sL https://deb.nodesource.com/setup_18.x | bash - | ||
curl -sL https://deb.nodesource.com/setup_$NODE_MAJOR.x | bash - | ||
|
||
curl -fsSL https://deb.nodesource.com/setup_stable.x | bash - &&\ | ||
apt-get install -y nodejs | ||
# Add Yarn to the sources list | ||
#curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ | ||
# && echo 'deb http://dl.yarnpkg.com/debian/ stable main' > /etc/apt/sources.list.d/yarn.list | ||
|
||
# apt-get install -y nodejs #to install Node.js 18.x and npm | ||
# Install NodeJS, Yarn | ||
apt-get update -qq && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -yq nodejs | ||
# yarn=$YARN_VERSION-1 | ||
|
||
#17 10.80 ## You may also need development tools to build native addons: | ||
#apt-get install gcc g++ make | ||
#17 10.80 ## To install the Yarn package manager, run: | ||
#curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null | ||
#echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | ||
#apt-get update && apt-get install yarn | ||
|
||
#npm install --global yarn | ||
|
||
#corepack enable | ||
#echo yarn -v | ||
|
||
# yarn install | ||
corepack enable | ||
corepack prepare yarn@stable --activate |
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
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
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