File tree 1 file changed +10
-6
lines changed
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,16 @@ Install UglifyJS
21
21
UglifyJS is available as a `Node.js `_ module. First, you need to `install Node.js `_
22
22
and then, decide the installation method: global or local.
23
23
24
+ .. caution ::
25
+
26
+ Some Linux distributions rename the Node.js binary from ``node `` to ``nodejs ``.
27
+ This may result in errors like *"/usr/bin/env: node: No such file or
28
+ directory"*``. You can solve this problem with a symlink:
29
+
30
+ .. code-block :: terminal
31
+
32
+ $ ln -s /usr/bin/nodejs /usr/bin/node
33
+
24
34
Global Installation
25
35
~~~~~~~~~~~~~~~~~~~
26
36
@@ -38,12 +48,6 @@ Now you can execute the global ``uglifyjs`` command anywhere on your system:
38
48
39
49
$ uglifyjs --help
40
50
41
- If you get the message ``/usr/bin/env: node: No such file or directory ``, you just need to symlink it like so
42
-
43
- .. code-block :: terminal
44
-
45
- $ ln -s /usr/bin/nodejs /usr/bin/node
46
-
47
51
Local Installation
48
52
~~~~~~~~~~~~~~~~~~
49
53
You can’t perform that action at this time.
0 commit comments