Skip to content

Commit e5d0084

Browse files
updated README.md
1 parent 960422c commit e5d0084

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,26 @@ Manually:
6464

6565
- Download [latest release](https://github.com/pichillilorenzo/JavaScriptEnhancements/releases) and unzip it into your **Packages folder** (go to `Preferences > Browse Packages...` menu item to open this folder)
6666

67+
## Fixing node.js and npm custom path
68+
69+
If the plugin gives to you message errors like `Error during installation: "node.js" seems not installed on your system...` but instead you have installed node.js and npm (for example using [nvm](https://github.com/creationix/nvm)), then you could try to set your custom path in the [Global settings](https://github.com/pichillilorenzo/JavaScriptEnhancements/wiki/Global-settings) of the plugin and then restart Sublime Text.
70+
71+
If this not works too, then you could try to add the custom path that contains binaries of node.js and npm in the **`PATH`** key-value on the same JavaScript Enhancements settings file. This variable will be **concatenated** to the **$PATH** environment variable, so you could use the same syntax in it. After that you need to restart Sublime Text. Example of a global setting for `Linux` that uses `nvm`:
72+
73+
```
74+
{
75+
// ...
76+
77+
"PATH": ":/home/lorenzo/.nvm/versions/node/v9.2.0/bin",
78+
"node_js_custom_path": "node",
79+
"npm_custom_path": "npm",
80+
81+
// ...
82+
}
83+
```
84+
85+
**REMEMBER** to add `:` at the begin of the `PATH` value!! Like I already said, it uses the same syntax for the $PATH environment variable.
86+
6787
## Usage
6888

6989
[See the Wiki](https://github.com/pichillilorenzo/JavaScriptEnhancements/wiki).

0 commit comments

Comments
 (0)