Error: Can't find npm module 'moment'

前端 未结 3 582
天涯浪人
天涯浪人 2021-01-20 01:06

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 thi

相关标签:
3条回答
  • 2021-01-20 01:51

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

    0 讨论(0)
  • 2021-01-20 02:02

    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/

    0 讨论(0)
  • 2021-01-20 02:02

    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/

    0 讨论(0)
提交回复
热议问题