S
S
sitev_ru2017-07-22 16:15:19
Node.js
sitev_ru, 2017-07-22 16:15:19

Why does npm ERR pop up! code MODULE_NOT_FOUND?

I install NodeJs using this link: https://learn.javascript.ru/ajax-nodejs
I execute this item:
Select the directory in which you will solve problems. Run npm install node-static in it. I run it
and see the following on the screen:

npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module 'internal/fs'

How to solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Larisa Moroz, 2017-07-22
@larisamoroz

1. Remove everything in /usr/local/lib/node_modules
2. Reinstall node again

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question