Socket.io
hello everyone
i installed NodeJs 10 from EasyApache4 ( it's working good )
but how i can use some Nodejs Frameworks like Socket.io or express js ( note that there is no npm to install theme )
[CODE=javascript]const io = require('..repositories/socket.io')();
io.on('connection', client => { ... });
io.listen(3000);
can i clone it by Git ( if yes how to use it ) ?
can i clone it by Git ( if yes how to use it ) ?
-
looks like you should be able to install the npm with the instructions provided at socket.io: socketio/socket.io if you need it as well. Also, as a note, this will require 2 dependencies that I found should be installed as follows: [lauren@server nodejsapp]$ /opt/cpanel/ea-nodejs10/bin/npm install bufferutil --scripts-prepend-node-path [QUOTE] bufferutil@4.0.1 install /home/$user/nodejsapp/node_modules/bufferutil node-gyp-build
npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN nodejsapp No description npm WARN nodejsapp No repository field. npm WARN nodejsapp No license field. + bufferutil@4.0.1 added 2 packages from 2 contributors and audited 2 packages in 0.72s found 0 vulnerabilities [lauren@server nodejsapp]$ /opt/cpanel/ea-nodejs10/bin/npm install utf-8-validate --scripts-prepend-node-path [QUOTE] utf-8-validate@5.0.2 install /home/user/nodejsapp/node_modules/utf-8-validate node-gyp-build
npm WARN nodejsapp No description npm WARN nodejsapp No repository field. npm WARN nodejsapp No license field. + utf-8-validate@5.0.2 added 1 package from 1 contributor and audited 4 packages in 0.756s found 0 vulnerabilities0 -
looks like you should be able to install the npm with the instructions provided at socket.io: socketio/socket.io if you need it as well.
just i want to be sure that it isw safe to install npm on cpanel servers ?0 -
You're installing them on a per-user basis so it'd be as safe as any user installing items into their account. 0 -
just i want to be sure that it isw safe to install npm on cpanel servers ?
THANK you :)0
Please sign in to leave a comment.
Comments
4 comments