search

Home  >  Q&A  >  body text

symfony - How to compress js files using nodejs' uglifyjs?

As shown in the figure, it has been confirmed that uglify has been installed, but an error is reported in the js file

[exception] 500 | Internal Server Error | RuntimeException [message] Path to node executable could not be resolved. 1 RuntimeException: Path to node executable could not be resolved.

phpcn_u1582phpcn_u15822756 days ago962

reply all(3)I'll reply

  • ringa_lee

    ringa_lee2017-05-16 16:46:48

    The error message is that the path cannot be found. Did you use nvm? Confirm that /usr/local/bin/uglifyjs can be run directly

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-16 16:46:48

    Don’t you use grunt for compression?

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-16 16:46:48

    Reference link:
    http://blog.csdn.net/w306621759/article/details/17737147

    reply
    0
  • Cancelreply