Skip to content Skip to sidebar Skip to footer

Error: Can't Find Npm Module 'moment'

I have a Meteor app that runs perfectly on localhost, but when I deploy it to a remote heroku server, I get the following errors. (I am implementing this) Any ideas how to fix this

Solution 1:

Make sure this line:"moment": "^2.14.1" is your package.json then run npm install

Solution 2:

Can you try meteor npm install in your project root?

If moment didn't appear in that list, can you try meteor npm install --save moment?

Otherwise, could you please post your package.js - it should be in app/programs/server/

Solution 3:

I think it's a problem with your buildpack. Try following this guide - https://meteorcoder.wordpress.com/2016/09/24/how-to-deploy-meteor-apps-with-heroku/

Solution 4:

I ran: npm install moment react-moment & it worked. The official npm site has two different ways of installing this & they both gave me errors.

Post a Comment for "Error: Can't Find Npm Module 'moment'"