Error installing jade on heroku

╄→尐↘猪︶ㄣ 提交于 2019-12-06 01:47:02

You are using an old node.js. Try adding the following to package.json:

  "engines": {
        "node": "0.8.x",
        "npm": "1.1.x"
  },

You can inspect thing more closely by logging in on the system. First you need to install Heroku Toolbelt (if you haven't already). Then:

heroku login

and

heroku run bash --app yourapp

This will give you a bash to your heroku installation. Navigate to /tmp (cd /tmp) and see what's left there. Try to remove it manually (rm -rf whatisleft).

Your jade version is out of date too (still). My heroku install with jade has:

"jade": "*"

Lastly, don't add node_modules to source control. So add it to your .gitignore file.

You can force Heroku to clear the cache for your app:

$ heroku plugins:install heroku-repo
$ heroku repo:purge_cache -a appname
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!