Use pnpm as the package manager. It keeps the node_module folder clean and generally is more pleasant to work with.
sudo npm install -g pnpm@next-7
pnpm install pnpm run dev
Should work work with most package managers
Add new package pnpm add antd
Add new dev package pnpm add -D antd
- Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
- Install node 14.x
nvm install 14
- Switch to node 14.x
nvm use 14
- Install pnpm
npm install -g pnpm@next-7
- Install dependencies
cd refinedev-test && pnpm install
- Run with dev mode
pnpm run dev
Before push to repository and create PR, please check local code quality with command
pnpm run lint