Unable to resolve module moment from /Users/justinj/Documents/myapp/card.js: Module does not exist in the module map or in these directories:
/Users/justinj/node_modules
if you npm install a new module, sometimes you need to do “Restart” in XDE / exp / CRNA to restart the packager/bundler. If you correctly npm installed and you restart, it should pick up the new module.
I put the command into terminal and received the following error:
npm ERR! code ENOSELF
npm ERR! Refusing to install package with name “moment” under a package
npm ERR! also called “moment”. Did you name your project the same
npm ERR! as the dependency you’re installing?
npm ERR!
npm ERR! For more information, see:
npm ERR! https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/justinjohnson/.npm/_logs/2017-10-10T21_40_00_336Z-debug.log
Yes Jimmy Lee, I did that but I started my project over. And I tried to install firebase and ran into the same issue that I came across when installing moment. I want to resolve this issue because it seems when I try to install moment and firebase something is going wrong.