forked from someCatInTheWorld/snail-ide.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnvm.sh
More file actions
28 lines (19 loc) · 642 Bytes
/
nvm.sh
File metadata and controls
28 lines (19 loc) · 642 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# chatgpt generated shell files!!!!
# Download and run the NVM installation script
curl https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
# Source NVM to use it in the current shell session
. ~/.nvm/nvm.sh
# Check the version of NVM installed
nvm --version
# Install Node.js version 16
nvm install 16
# Use Node.js version 16 for the current shell session
nvm use 16
# Install pnpm globally
npm install -g pnpm
# Install project dependencies using pnpm
pnpm i --shamefully-hoist
# Install webpack-dev-server locally
pnpm add --save-dev webpack-dev-server
# Start webpack dev server
npx webpack-dev-server --open