You should run
sudo apt-get install nodejs
to install NodeJS in Ubuntu or
brew install nodejs
if you are in OSX. Uglifier is a JS wrapper and it needs a JS runtime running or an JS interpreter. I would choose to install NodeJS.
记录遇到问题的点点滴滴。
You should run
sudo apt-get install nodejs
to install NodeJS in Ubuntu or
brew install nodejs
if you are in OSX. Uglifier is a JS wrapper and it needs a JS runtime running or an JS interpreter. I would choose to install NodeJS.