Getting error while running simple javascript using node framework

前端 未结 8 1996
闹比i
闹比i 2021-01-30 06:25

As I run this piece of code using node a.js:

var sys = require(\'sys\');
sys.puts(\'Hello, World\');

I\'m getting the following as a

8条回答
  •  后悔当初
    2021-01-30 07:09

    The easiest way is to remove the node installation first and then install npm. npm is the Node Package Manager, this will automatically install nodejs itself

提交回复
热议问题