Skip to content

Commit d3f17d0

Browse files
committed
feat: install npm/pip deps systemwide
1 parent 63c52db commit d3f17d0

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Global Package Installation Rule
2+
3+
When installing packages using package managers like npm, yarn, pip, etc., always use global installation mode.
4+
5+
## Required Installation Flags
6+
7+
### Node.js Package Managers
8+
- `npm install -g <package>` - use `-g` flag for global installation
9+
- `yarn global add <package>` - use `global add` for global installation
10+
- `pnpm add -g <package>` - use `-g` flag for global installation
11+
12+
### Python Package Managers
13+
- `pip install --break-system-packages <package>` - use `--break-system-packages` flag
14+
- `pip3 install --break-system-packages <package>` - use `--break-system-packages` flag
15+
16+
## Rationale
17+
18+
This ensures packages are installed in a consistent global location and avoids permission issues with local installations in restricted environments.

0 commit comments

Comments
 (0)