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
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ Manually:
69
69
70
70
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.
71
71
72
-
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 **appended** 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
+
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`:
sublime.error_message("Error during installation: can't install npm dependencies for JavaScript Enhancements plugin.\n\nThe error COULD be caused by the npm permission access (EACCES error), so in this case you need to repair/install node.js and npm in way that doesn't require \"sudo\" command.\n\nFor example you could use a Node Version Manager, such as \"nvm\" or \"nodenv\".\n\nTry to run \"npm install\" inside the package of this plugin to see what you get.")
1257
+
sublime.error_message("Error during installation: can't install npm dependencies for JavaScript Enhancements plugin.\n\nThe error COULD be caused by the npm permission access (EACCES error), so in this case you need to repair/install node.js and npm in a way that doesn't require \"sudo\" command.\n\nFor example you could use a Node Version Manager, such as \"nvm\" or \"nodenv\".\n\nTry to run \"npm install\" inside the package of this plugin to see what you get.")
1237
1258
# else:
1238
1259
# result = npm.update_all()
1239
1260
# if not result[0]:
@@ -4867,10 +4888,12 @@ def start():
4867
4888
globalmainPlugin
4868
4889
4869
4890
ifsublime.platform() =='windows':
4891
+
print(sublime.platform())
4870
4892
sublime.error_message("Windows is not supported by this plugin for now.")
4871
4893
return
4872
4894
4873
4895
ifplatform.architecture()[0] !="64bit":
4896
+
print(platform.architecture())
4874
4897
sublime.error_message("Your architecture is not supported by this plugin. This plugin supports only 64bit architectures.")
If you like it, remember to star it ⭐ on GitHub: https://github.com/pichillilorenzo/JavaScriptEnhancements
13
+
14
+
** USAGE **
15
+
===========
16
+
17
+
See how it works on the Wiki: 👉👉 https://github.com/pichillilorenzo/JavaScriptEnhancements/wiki 👈👈
18
+
19
+
20
+
** WHAT IS THIS? **
21
+
===================
22
+
23
+
This plugin uses Flow (javascript static type checker from Facebook) under the hood.
24
+
25
+
It offers better javascript autocomplete and a lot of features about creating,
26
+
developing and managing javascript projects, such as:
27
+
28
+
- Cordova projects (run cordova emulate, build, compile, serve, etc. directly from Sublime Text!)
29
+
- Ionic v1 and v2 projects (same as Cordova projects!)
30
+
- Angular v1 and v2 projects
31
+
- React projects
32
+
- Express projects
33
+
- Yeoman generators
34
+
- Local bookmarks project
35
+
- JavaScript real-time errors
36
+
- etc.
37
+
38
+
You could use it also in existing projects (see the Wiki - https://github.com/pichillilorenzo/JavaScriptEnhancements/wiki/Using-it-with-an-existing-project)!
39
+
40
+
It turns Sublime Text into a JavaScript IDE like!
41
+
42
+
This project is based on my other Sublime Text plugin JavaScript Completions (https://github.com/pichillilorenzo/JavaScript-Completions)
43
+
44
+
** NOTE **
45
+
If you want use this plugin, you may want uninstall/disable the JavaScript Completions plugin, if installed.
46
+
47
+
** OS SUPPORTED NOW **
48
+
======================
49
+
50
+
👉 Linux (64-bit)
51
+
👉 Mac OS X
52
+
53
+
❗❗ Dependencies ❗❗
54
+
=======================
55
+
56
+
In order to work properly, this plugin has some dependencies:
57
+
58
+
👉 Sublime Text 3 (build 3124 or newer)
59
+
👉 Node.js and npm (https://nodejs.org or nvm (https://github.com/creationix/nvm))
60
+
👉 TerminalView sublime text plugin (https://github.com/Wramberg/TerminalView)
61
+
62
+
Not required, but useful for typescript files (Flow wont work on this type of files):
63
+
64
+
👉 TypeScript sublime text plugin (https://github.com/Microsoft/TypeScript-Sublime-Plugin)
65
+
66
+
** Flow Requirements **
67
+
=======================
68
+
69
+
It use [Flow](https://github.com/facebook/flow) for type checking and auto-completions.
70
+
71
+
👉 Mac OS X
72
+
👉 Linux (64-bit)
73
+
👉 Windows (64-bit)
74
+
75
+
Email me for any questions or doubts about this new project on: [email protected]
sublime.error_message("Error during installation: can't install npm dependencies for JavaScript Enhancements plugin.\n\nThe error COULD be caused by the npm permission access (EACCES error), so in this case you need to repair/install node.js and npm in way that doesn't require \"sudo\" command.\n\nFor example you could use a Node Version Manager, such as \"nvm\" or \"nodenv\".\n\nTry to run \"npm install\" inside the package of this plugin to see what you get.")
82
+
sublime.error_message("Error during installation: can't install npm dependencies for JavaScript Enhancements plugin.\n\nThe error COULD be caused by the npm permission access (EACCES error), so in this case you need to repair/install node.js and npm in a way that doesn't require \"sudo\" command.\n\nFor example you could use a Node Version Manager, such as \"nvm\" or \"nodenv\".\n\nTry to run \"npm install\" inside the package of this plugin to see what you get.")
82
83
# else:
83
84
# result = npm.update_all()
84
85
# if not result[0]:
@@ -104,10 +105,12 @@ def start():
104
105
globalmainPlugin
105
106
106
107
ifsublime.platform() =='windows':
108
+
print(sublime.platform())
107
109
sublime.error_message("Windows is not supported by this plugin for now.")
108
110
return
109
111
110
112
ifplatform.architecture()[0] !="64bit":
113
+
print(platform.architecture())
111
114
sublime.error_message("Your architecture is not supported by this plugin. This plugin supports only 64bit architectures.")
0 commit comments