| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
With Package Control:
Manually:
If all is going in the right way, you will see JavaScript Enhancements - installing npm dependencies... and, after a while, JavaScript Enhancements - npm dependencies installed correctly. messages in the status bar of Sublime Text 3. Now the plugin is ready!
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), then you could try to set your custom path in the Global settings of the plugin and then restart Sublime Text.
If you don't know the path of them, use which node/which npm (for Linux-based OS) or where node.exe/where npm (for Windows OS) to get it.
If this doesn't work 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 appended to the $PATH environment variable, so you could use the same syntax in it. After this you need to restart Sublime Text.
Example of global settings for Linux that uses nvm:
{
// ...
"PATH": ":/home/lorenzo/.nvm/versions/node/v9.2.0/bin",
"node_js_custom_path": "node",
"npm_custom_path": "npm",
// ...
}
For Linux-based OS REMEMBER to add : (for Windows OS REMEMBER to add ;) at the begin of the PATH value!! Like I already said, it uses the same syntax for the $PATH environment variable.
Example of global settings for Mac OS X that uses nvm (in my case the PATH variable is not setted and it works fine):
{
// ...
"PATH": "",
"node_js_custom_path": "/Users/lorenzo/.nvm/versions/node/v8.8.1/bin/node",
"npm_custom_path": "/Users/lorenzo/.nvm/versions/node/v8.8.1/bin/npm",
// ...
}
| Back | FazBrowse Home | New Git URL |