2

I develop node api. When i changed project direction and call npm install then show me

npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module './access-error.js' 

please help me for install npm in direction project.

2 Answers2

3

You can force delete node and npm from your mac,use this command:

> sudo rm -rf /usr/local/{bin/{node,npm},lib/node_modules/npm,lib/node,share/man/*/node.*}

And then reinstall them.

Yumi Yi
  • 46
  • 3
0

Check if you don't have duplicated entries to node in your system path. Removing extra "/Users/rafal/.node/bin" in system PATH helped me in this problem.

Rafał R
  • 241
  • 2
  • 10