cloudlinux add node.js

curl --silent --location https://rpm.nodesource.com/setup_4.x | bash -
yum -y install nodejs
npm install -g grunt grunt-cli gulp bower

touch /etc/cagefs/conf.d/nodejs.cfg

[nodejs]
comment=Nodejs
paths=/usr/bin/node, /usr/bin/npm, /usr/lib/node_modules

touch /etc/cagefs/conf.d/grunt.cfg
[grunt]
comment=Grunt tools
paths=/usr/bin/grunt

touch /etc/cagefs/conf.d/gulp.cfg
[gulp]
comment=Gulp tools
paths=/usr/bin/gulp

touch /etc/cagefs/conf.d/bower.cfg
[bower]
comment=Bower web tools
paths=/usr/bin/bower

cagefsctl --force-update

Leave a Reply

Your email address will not be published. Required fields are marked *