symfony - How to compress js files using nodejs' uglifyjs?
phpcn_u1582
phpcn_u1582 2017-05-16 16:44:48
0
3
922

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_u1582
phpcn_u1582

reply all(3)
左手右手慢动作

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

伊谢尔伦

Don’t you use grunt for compression?

淡淡烟草味

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!