apphubdeploy icon indicating copy to clipboard operation
apphubdeploy copied to clipboard

permittedValues.includes is not a function

Open ruswerner opened this issue 7 years ago • 7 comments

I get this error when trying to deploy a build:

/Users/rus/.nvm/versions/node/v4.4.4/lib/node_modules/apphubdeploy/AppHubDeploy.js:65
  if (program.target && !permittedValues.includes(program.target)) {
                                         ^

TypeError: permittedValues.includes is not a function
    at checkOptionValues (/Users/rus/.nvm/versions/node/v4.4.4/lib/node_modules/apphubdeploy/AppHubDeploy.js:65:42)
    at Object.<anonymous> (/Users/rus/.nvm/versions/node/v4.4.4/lib/node_modules/apphubdeploy/AppHubDeploy.js:34:1)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:139:18)
    at node.js:968:3

ruswerner avatar Sep 29 '16 19:09 ruswerner

Somebody else ran into this as well.

Can you try updating your node version and let me know if that fixes it?

Here's mine:

$ node -v
v5.5.0

joshuapinter avatar Sep 29 '16 20:09 joshuapinter

I had to add this flag to the binary script --harmony_array_includes

":" //# comment; exec /usr/bin/env node --harmony --harmony_array_includes "$0" "$@"

ruswerner avatar Sep 29 '16 20:09 ruswerner

I can't update my node version b/c this is the version we use on our production app.

ruswerner avatar Sep 29 '16 20:09 ruswerner

Brilliant. I'll add that. Can you give me your node version so I can run some tests as well?

Thanks.

Josh

joshuapinter avatar Sep 29 '16 21:09 joshuapinter

I'm on node 4.4.4

On 30/09/2016, at 10:54 AM, Joshua Pinter [email protected] wrote:

Brilliant. I'll add that. Can you give me your node version so I can run some tests as well?

Thanks.

Josh

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

ruswerner avatar Sep 29 '16 22:09 ruswerner

However any node version 4.x should have the same behaviour. I think they just released Node 4.6.0 today/yesterday.

ruswerner avatar Sep 29 '16 23:09 ruswerner

👍 Perfect, thanks.

joshuapinter avatar Sep 29 '16 23:09 joshuapinter