These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for New virtual server/New Node.js install/npm will not run. on the new forum.
I been having issues getting node.js to run on this server. So I setup a new website and only installed node.js though the install scripts. When I run npm using sudo I get the following. Since I am not familiar with node, I will just claim that I am a noob.
[root@server nodejs]# cd bin
[root@server bin]# ls
node npm npx
[root@server bin]# su npm
npm: line 2: syntax error near unexpected token ;'
npm: line 2:
;(function () { // wrapper in case we're in module_context mode'
[root@server nodejs]# cd bin [root@server bin]# su npm install npm: line 2: syntax error near unexpected token ;' npm: line 2:;(function () { // wrapper in case we're in module_context mode'
Cleaned up the information from the screen.