运行rails server 出现There was an error while trying to load the gem 'uglifier'. (Bundler::GemRequireErr

转自:http://stackoverflow.com/questions/34420554/there-was-an-error-while-trying-to-load-the-gem-uglifier-bundlergemrequire


现象:在linux下运行rails server 出现There was an error while trying to load the gem 'uglifier'. (Bundler::GemRequireError)

原因是缺少依赖的组件nodejs

运行sudo apt-get install nodejs 安装nodejs,再重新运行rails server即可。


你可能感兴趣的:(Web)