Skip to content

How to upgrade or install Node.js and npm on Ubuntu 20.04 and Grid layout CSS

#add in package.json
    "dev": "vite --open --host",
    "start": "vite --open --host",
npm --version
node --version
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash

vi ~/.bashrc 
nvm --version

source ~/.bashrc

nvm list-remote
nvm install node
node --version
npm --version

Clone the repo

Use ssh

git clone git@github.com:Leniolabs/layoutit-grid.git

Or https

git clone https://github.com/leniolabs/layoutit-grid.git

In the repo folder run

npm install
npm start

Your dev server will start and be running at

  > Local:    http://localhost:3000/

Commands

CommandDescription
npm installInstall the dependencies
npm startRun the project (in dev mode)
npm run buildBuild for deployment
Published inUncategorized

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *