@devcortex/cli 1.3.1 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,6 +29,32 @@ npm install -g @devcortex/cli
|
|
|
29
29
|
|
|
30
30
|
Requires **Node.js 18 or higher**.
|
|
31
31
|
|
|
32
|
+
> **Permission error?** If you see `EACCES: permission denied`, either:
|
|
33
|
+
>
|
|
34
|
+
> **Option 1 — use sudo (simplest):**
|
|
35
|
+
> ```bash
|
|
36
|
+
> sudo npm install -g @devcortex/cli
|
|
37
|
+
> ```
|
|
38
|
+
>
|
|
39
|
+
> **Option 2 — use pnpm (recommended):**
|
|
40
|
+
> ```bash
|
|
41
|
+
> npm install -g pnpm
|
|
42
|
+
> pnpm install -g @devcortex/cli
|
|
43
|
+
> ```
|
|
44
|
+
>
|
|
45
|
+
> **Option 3 — configure npm user directory:**
|
|
46
|
+
> ```bash
|
|
47
|
+
> mkdir -p ~/.npm-global
|
|
48
|
+
> npm config set prefix '~/.npm-global'
|
|
49
|
+
> echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
|
|
50
|
+
> source ~/.bashrc
|
|
51
|
+
> npm install -g @devcortex/cli
|
|
52
|
+
> ```
|
|
53
|
+
> Note: on some Linux systems the npm global symlink may not execute correctly.
|
|
54
|
+
> If `dcx` produces no output after install, use pnpm or sudo instead.
|
|
55
|
+
>
|
|
56
|
+
> See [npm docs on fixing permissions](https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally) for more options.
|
|
57
|
+
|
|
32
58
|
Verify:
|
|
33
59
|
|
|
34
60
|
```bash
|