You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,9 @@ If all is going in the right way, you will see `JavaScript Enhancements - instal
76
76
77
77
### Fixing node.js and npm custom path
78
78
79
-
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.
79
+
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.
80
+
81
+
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.
80
82
81
83
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 a global setting for `Linux` that uses `nvm`:
response=sublime.yes_no_cancel_dialog("Error during installation: \"node.js\" seems not installed on your system. Node.js and npm are required to be able to use JavaScript Enhancements plugin.\n\nIf you are using \"nvm\" or you have a different path for node.js and npm, please then change the path on:\n\nPreferences > Package Settings > JavaScript Enhancements > Settings\n\nand restart Sublime Text.\n\nIf this doesn't work then try also to add the path of their binaries in the PATH key-value on the same JavaScript Enhancements settings file. This variable will be used to add them in the $PATH environment variable, so put the symbol \":\" (instead \";\" for Windows) in front of your path.\n\nDo you want open the website of node.js?", "Yes, open it", "Or use nvm")
5966
+
response=sublime.yes_no_cancel_dialog("Error during installation: \"node.js\" seems not installed on your system. Node.js and npm are required to be able to use JavaScript Enhancements plugin.\n\nIf you are using \"nvm\" or you have a different path for node.js and npm, please then change the path on:\n\nPreferences > Package Settings > JavaScript Enhancements > Settings\n\nand restart Sublime Text. If you don't know the path of it, use \"which node\" (for Linux-based OS) or \"where node.exe\" (for Windows OS) to get it.\n\nIf this doesn't work then try also to add the path of their binaries in the PATH key-value on the same JavaScript Enhancements settings file. This variable will be used to add them in the $PATH environment variable, so put the symbol \":\" (instead \";\" for Windows) in front of your path.\n\nDo you want open the website of node.js?", "Yes, open it", "Or use nvm")
response=sublime.yes_no_cancel_dialog("Error during installation: \"npm\" seems not installed on your system. Node.js and npm are required to be able to use JavaScript Enhancements plugin.\n\nIf you are using \"nvm\" or you have a different path for node.js and npm, please change their custom path on:\n\nPreferences > Package Settings > JavaScript Enhancements > Settings\n\nand restart Sublime Text.\n\nIf this doesn't work then try also to add the path of their binaries in the PATH key-value on the same JavaScript Enhancements settings file. This variable will be used to add them in the $PATH environment variable, so put the symbol \":\" (instead \";\" for Windows) in front of your path.\n\nDo you want open the website of node.js?", "Yes, open it", "Or use nvm")
5978
+
response=sublime.yes_no_cancel_dialog("Error during installation: \"npm\" seems not installed on your system. Node.js and npm are required to be able to use JavaScript Enhancements plugin.\n\nIf you are using \"nvm\" or you have a different path for node.js and npm, please change their custom path on:\n\nPreferences > Package Settings > JavaScript Enhancements > Settings\n\nand restart Sublime Text. If you don't know the path of it, use \"which npm\" (for Linux-based OS) or \"where npm\" (for Windows OS) to get it.\n\nIf this doesn't work then try also to add the path of their binaries in the PATH key-value on the same JavaScript Enhancements settings file. This variable will be used to add them in the $PATH environment variable, so put the symbol \":\" (instead \";\" for Windows) in front of your path.\n\nDo you want open the website of node.js?", "Yes, open it", "Or use nvm")
If you like it, remember to star it ⭐ on GitHub: https://github.com/pichillilorenzo/JavaScriptEnhancements
19
+
20
+
** USAGE **
21
+
===========
22
+
23
+
See how it works on the Wiki: 👉👉 https://github.com/pichillilorenzo/JavaScriptEnhancements/wiki 👈👈
24
+
25
+
26
+
** WHAT IS THIS? **
27
+
===================
28
+
29
+
This plugin uses Flow (javascript static type checker from Facebook) under the hood.
30
+
31
+
It offers better javascript autocomplete and a lot of features about creating,
32
+
developing and managing javascript projects, such as:
33
+
34
+
- Cordova projects (run cordova emulate, build, compile, serve, etc. directly from Sublime Text!)
35
+
- Ionic v1 and v2 projects (same as Cordova projects!)
36
+
- Angular v1 and v2 projects
37
+
- React projects (only about the creation at this moment)
38
+
- React Native projects (only about the creation at this moment. I will add also NativeScript support)
39
+
- Express projects (only about the creation at this moment)
40
+
- Yeoman generators
41
+
- Local bookmarks project
42
+
- JavaScript real-time errors
43
+
- etc.
44
+
45
+
You could use it also in existing projects (see the Wiki - https://github.com/pichillilorenzo/JavaScriptEnhancements/wiki/Using-it-with-an-existing-project)!
46
+
47
+
It turns Sublime Text into a JavaScript IDE like!
48
+
49
+
This project is based on my other Sublime Text plugin JavaScript Completions (https://github.com/pichillilorenzo/JavaScript-Completions)
50
+
51
+
** NOTE **
52
+
If you want use this plugin, you may want uninstall/disable the JavaScript Completions plugin, if installed.
53
+
54
+
** OS SUPPORTED NOW **
55
+
======================
56
+
57
+
👉 Linux (64-bit)
58
+
👉 Mac OS X
59
+
👉 Windows (64-bit): released without the use of TerminalView plugin. For each feature (like also creating a project) will be used the cmd.exe shell (so during the creation of a project don't close it until it finishes!). Unfortunately the TerminalView plugin supports only Linux-based OS 😞. Has someone any advice or idea about that? Is there something similar to the TerminalView plugin for Windows?? Thanks!
60
+
61
+
❗❗ Dependencies ❗❗
62
+
=======================
63
+
64
+
In order to work properly, this plugin has some dependencies:
65
+
66
+
👉 Sublime Text 3 (build 3124 or newer)
67
+
👉 Node.js and npm (https://nodejs.org or nvm (https://github.com/creationix/nvm))
68
+
👉 TerminalView (only for Linux and Mac OS X) sublime text plugin (https://github.com/Wramberg/TerminalView)
69
+
70
+
Not required, but useful for typescript files (Flow wont work on this type of files):
71
+
72
+
👉 TypeScript sublime text plugin (https://github.com/Microsoft/TypeScript-Sublime-Plugin)
73
+
74
+
** Flow Requirements **
75
+
=======================
76
+
77
+
It use [Flow](https://github.com/facebook/flow) for type checking and auto-completions.
78
+
79
+
👉 Mac OS X
80
+
👉 Linux (64-bit)
81
+
👉 Windows (64-bit)
82
+
83
+
Email me for any questions or doubts about this new project on: pichillilorenzo@gmail.com
84
+
85
+
** Donation **
86
+
==============
87
+
88
+
If this project help you reduce time to develop and also you like it, please support it with a donation 😄👍. Thanks!
89
+
90
+
Open Collective: https://opencollective.com/javascriptenhancements/donate
0 commit comments