-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3c925d5
commit 7a3ecb6
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Linux-specific considerations | ||
|
||
|
||
|
||
## Global NPM vs Userspace NPM via Node Version Manager | ||
|
||
|
||
As Linux has a stricter access policy you may want to install NPM in the userspace so you can still install global packages (e.g. html-validate) without sudoing. The easiest way to do this is via NVM. If you don't have NVM yet, [follow the guide here](https://github.com/Lombiq/NPM-Targets/tree/dev#global-npm-vs-userspace-npm-via-node-version-manager-on-linux). | ||
|
||
As of writing this document, [Atata doesn't run bash as login shell](https://github.com/atata-framework/atata-cli/issues/1) so NVM wouldn't be loaded and the executables of globally installed packages' CLI executables won't be available. There are two workarounds for this: | ||
* Run your dev environment inside an NVM scope. For example: `nvm exec default rider`, `nvm exec default code`, etc. | ||
* Create a proxy command for each using the function from the NVM setup guide above, e.g.: `proxy-nvm-command html-validate`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters