A
A
Alexander Timkov2019-02-05 13:00:54
Node.js
Alexander Timkov, 2019-02-05 13:00:54

How to fix Module NodeJS error?

5c595eabcb23d723395325.png
there is such a code for issuing keys from a file, I'm trying to run it. And gives out 5c595ec6352f4316291024.png. All modules were installed from nmp.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Draek Nelson, 2019-02-05
@daren93

You have require('~./filetools.js') in your code. Node doesn't understand the ~ symbol. If this is a link to the home directory, then the soul will dress it up with an argument to the script itself. If this is something else, then read about global variables on off. website and about the path module.

M
Michael, 2019-02-05
@nyakove

If filetools.js is in the root directory, specify it as If not in the root, precede the '/' with an absolute path

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question