Skip to content

Commit 6cf4973

Browse files
Reworded the caution message
1 parent 0a5d70e commit 6cf4973

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

frontend/assetic/uglifyjs.rst

+10-6
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ Install UglifyJS
2121
UglifyJS is available as a `Node.js`_ module. First, you need to `install Node.js`_
2222
and 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

0 commit comments

Comments
 (0)