File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,16 @@ Install UglifyJS
2121UglifyJS is available as a `Node.js `_ module. First, you need to `install Node.js `_
2222and then, decide the installation method: global or local.
2323
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+
2434 Global Installation
2535~~~~~~~~~~~~~~~~~~~
2636
@@ -38,12 +48,6 @@ Now you can execute the global ``uglifyjs`` command anywhere on your system:
3848
3949 $ uglifyjs --help
4050
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-
4751 Local Installation
4852~~~~~~~~~~~~~~~~~~
4953
You can’t perform that action at this time.
0 commit comments