Skip to content

Commit 3ba5154

Browse files
authored
Merge 5b6db90 into 1d8806f
2 parents 1d8806f + 5b6db90 commit 3ba5154

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/npm.md

+13
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- [Installing](#installing)
1313
- [Troubleshooting](#troubleshooting)
1414
- [Issues with Node.js after version upgrades](#issues-with-nodejs-after-version-upgrades)
15+
- [Debugging install issues with npm](#debugging-install-issues-with-npm)
1516

1617
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
1718

@@ -132,3 +133,15 @@ A step-by-step example of how you might do this is:
132133
2. Navigate into the directory: `cd /usr/local/Cellar/code-server/<version>/libexec/lib/vscode/`
133134
3. Recompile the native modules: `npm rebuild`
134135
4. Restart code-server
136+
137+
### Debugging install issues with npm
138+
139+
Unfortunately, `yarn` swallows all logs on `yarn global add` so instead you can install with `npm` and see the logs:
140+
141+
```shell
142+
# Uninstall
143+
npm uninstall -g --unsafe-perm code-server > /dev/null 2>&1
144+
145+
# Install with logging
146+
npm install --loglevel verbose -g --unsafe-perm code-server
147+
```

0 commit comments

Comments
 (0)