salesforce-marketingcloud / sfmc-example-jb-custom-activity

Custom activity examples for Journey Builder.
BSD 3-Clause "New" or "Revised" License
111 stars 142 forks source link

Heroku deployment failure #25

Open matheswarwan opened 2 years ago

matheswarwan commented 2 years ago

Yargs-parser artifact missing while deploying in heroku.

npm ERR! code ENOTFOUND npm ERR! syscall getaddrinfo npm ERR! errno ENOTFOUND npm ERR! network request to https://artifactory-dev.exacttarget.com:443/artifactory/api/npm/sfmc-npm/yargs-parser/-/yargs-parser-13.1.2.tgz failed, reason: getaddrinfo ENOTFOUND artifactory-dev.exacttarget.com

rmccu commented 2 years ago

I have the same problem. Can this be escalated?

rmccu commented 2 years ago

Note, I tried both Heroku and running locally on my machine. This looks like the specified resource is no longer available.

mgalvao2012 commented 1 year ago

I'm having the same issue. Is there any workaround to fix it?

JoeyNovais commented 1 year ago

Same issue here, if anyone has resolved it please share !

JoeyNovais commented 1 year ago

TL;DR use node v14.20.1 or any that uses npm 6.x.x

Ok guys, if you experience this: image The important part is not the error, but the warning. It tries to convert and download again from the artifactory thus the error. To avoid the conversion you'll need to use a lower version of npm compatible with the current lockfile, so npm version 6.x.x

After changing my npm version it works fine !

JoeyNovais commented 1 year ago

In case you want to deploy through Heroku, just add those lines in your package.json "engines":{ "node": "14.20.1", "npm": "6.14.17" }

@rmccu @mgalvao2012