This repository serves as a template for quickly setting up a portable Node.js development environment. Whether you're starting a new project or need a clean, consistent development environment across multiple machines, this template will help you get up and running in no time.
- Pre-configured Node.js environment
- Portable setup for use on windows machines
- Easy-to-follow setup instructions
- Other workspace settings:
- PHP server
- PHP
- prettier
- cSpell checker
- liveserver
- live sass compiler
ON 15/10/2023...
Follow these steps to set up your portable Node.js development environment using this template repository:
-
Git: Install
Giton your system if it's not already installed. You can download Git from git-scm.com. -
Visual Studio Code: Install
Visual Studio Codeon your system if it's not already installed. You can download it from code.visualstudio.com.
Important
This portable workspace works on vs code only.
Clone this repository to your local machine:
git clone git@github.com:siMobin/Portable-NodeJS-Workspace.git
git lfs install
git lfs pullWarning
You may need a ssh key for that. You can try HTTPS then.
Important
Delete .git folder before create a new repository using this template.
check portable environment variable for Node js in .vscode\settings.json
"terminal.integrated.env.windows": {
"PATH": "${env:PATH};${workspaceFolder}\\node"
},-
Change the working directory to your project folder:
-
Install project dependencies:
npm init
npm install `xxx` -save-devImportant
Before start your project check/setup .gitignore file.
update node
nvm install x.x.xupdate npm
npm update -gOR
npm install npm@latest -gClear npm cache
npm cache clean --force