forked from ngrok/ngrok-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
d948170
commit af11650
Showing
6 changed files
with
7,528 additions
and
5,184 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 |
---|---|---|
@@ -1 +1,26 @@ | ||
use flake | ||
# Check if nvm is installed, install if not | ||
if [ ! -d "$NVM_DIR" ] || [ ! -s "$NVM_DIR/nvm.sh" ]; then | ||
echo "nvm is not installed. Installing nvm..." | ||
|
||
# Install nvm | ||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash | ||
fi | ||
|
||
# ensure nvm is in the path | ||
export NVM_DIR="$HOME/.nvm" | ||
export PATH="$NVM_DIR:$PATH" | ||
|
||
# load nvm | ||
\. $NVM_DIR/nvm.sh | ||
|
||
# install node version from .nvmrc | ||
nvm install | ||
|
||
# enable pnpm in corepack | ||
corepack enable pnpm | ||
|
||
# install package manager with corepack (from package.json#packageManager) | ||
corepack install | ||
|
||
# install dependencies | ||
pnpm install |
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.