Expressjs not loading stylesheets on heroku, giving 500 error

后端 未结 3 1143
说谎
说谎 2021-01-01 04:20

I\'m running an Expressjs installation on heroku, and it\'s not loading the stylesheets.

I hit ctrl+u and then click on the stylesheet link, and get this error:

3条回答
  •  無奈伤痛
    2021-01-01 04:46

    I was able to solve this by specifying the engine dependencies in the package.json

    {
      "name": "app-name",
      "version": "0.0.1",
      "private": true,
      "scripts": {
        "start": "node app"
      },
      "dependencies": {
        "express": "3.0.0rc1",
        "jade": "*",
        "stylus": "*"
      },
      "engines": {
        "node": "0.8.4",
        "npm": "1.1.41"
      }
    }
    

提交回复
热议问题