Nodejs modules

106 views
Skip to first unread message

Jayamine A.

unread,
May 28, 2016, 8:11:42 PM5/28/16
to nodejs
hi all,

i have a module "TcpClient" and using npm i installed it both locally and globally without having errors.

but when i try to use in require("TcpClient") it throws an error can not find module.

i'm new to node js. if someone can explain me about possible reasons i'm really appreciate about it.

thanks
Jayamine

RAMNEET SINGH DUA

unread,
Jun 7, 2016, 9:32:19 AM6/7/16
to nodejs


first go to your project directory, nad install the net module using:
npm install net -g --save

it will help

Reply all
Reply to author
Forward
0 new messages