New virtual server/New Node.js install/npm will not run.

2 posts / 0 new
Last post
#1 Tue, 11/14/2017 - 11:17
jtipton

New virtual server/New Node.js install/npm will not run.

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'

Tue, 11/14/2017 - 12:18
jtipton

[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.

Topic locked