简体   繁体   中英

Heroku - unable to install package from github

Trying to deploy my app but Heroku is unable to access the package "express-flash"

在此处输入图像描述

Looks like heroku can't load the package with npm if the package is stored in GIThub?

What should I do?

Using npm install If you'd rather use npm install instead of npm ci to create the build environment, you can use the USE_NPM_INSTALL environment variable to let the buildpack know. You can do this by running:

heroku config:set USE_NPM_INSTALL=true

then deploy and voila!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM