Is there any way to import node stdlib modules?
lujiajing1126 opened this issue · 3 comments
lujiajing1126 commented
something like import path from 'path' for syntax;
I found a Error while importing modules like path
Error: ENOENT: no such file or directory, open 'path'
gabejohnson commented
Is path
an installed module? If not, you have to use a relative path
import path from './path' for syntax;
lujiajing1126 commented
I mean here path
is a built-in node stdlib. How can I install that?