Skip to content

Commit e3d059d

Browse files
committed
minor #10401 Update uglifyjs.rst (kcassam, javiereguiluz)
This PR was merged into the 3.4 branch. Discussion ---------- Update uglifyjs.rst add quick help for common error. Source : nodejs/node-v0.x-archive#3911 (comment) <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 6cf4973 Reworded the caution message 0a5d70e Update uglifyjs.rst
2 parents 6bfddac + 6cf4973 commit e3d059d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

frontend/assetic/uglifyjs.rst

Lines changed: 10 additions & 0 deletions
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

0 commit comments

Comments
 (0)