damr
damr

Reputation: 1

nodejs, require process returns undefined

I'm new on nodejs, and I have problems trying to use process

var process = require('process');
process.stdin.resume();

The reason is process is undefined, I've tried to install the package via npm install -g process but it does not fix this problem, what am I doing wrong?

Upvotes: 0

Views: 6523

Answers (1)

Sachacr
Sachacr

Reputation: 732

process is a native global object. You don't need to require it to use it. See here

Upvotes: 4

Related Questions