Answer the question
In order to leave comments, you need to log in
Nodejs how to import modules?
I installed nodejs and registered git init in the project folder. Now I want to import the http module in the project file . How can I do this?
To the command import http from 'http'; console gives error
import http from 'http';
^^^^
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question