mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
chore(kb/npm): add example for clean install
This commit is contained in:
@@ -7,19 +7,28 @@
|
||||
|
||||
## TL;DR
|
||||
|
||||
```sh
|
||||
# Install packages.
|
||||
# Use existing cache.
|
||||
npm install '@pnp/cli-microsoft365'
|
||||
npm i -g '@pnp/cli-microsoft365@latest'
|
||||
|
||||
# Install packages invalidating the current cache.
|
||||
# Removes any existing 'node_modules'.
|
||||
# Good for CI.
|
||||
npm clean-install '@pnp/cli-microsoft365'
|
||||
npm ci -g '@pnp/cli-microsoft365@latest'
|
||||
|
||||
# Remove packages.
|
||||
npm uninstall '@pnp/cli-microsoft365'
|
||||
```
|
||||
|
||||
```sh
|
||||
# Disable SSL verification.
|
||||
npm config set 'strict-ssl'='false'
|
||||
|
||||
# Use a custom CA certificate.
|
||||
npm config set 'cafile'='path/to/ca/cert.pem'
|
||||
|
||||
# Install packages.
|
||||
npm install '@pnp/cli-microsoft365'
|
||||
npm install -g '@pnp/cli-microsoft365@latest'
|
||||
|
||||
# Remove packages.
|
||||
npm uninstall '@pnp/cli-microsoft365'
|
||||
```
|
||||
|
||||
## Further readings
|
||||
|
||||
Reference in New Issue
Block a user