cli-edgeworkers
cli-edgeworkers copied to clipboard
`akamai install edgeworkers` fails if NODE_ENV=production
Unable to install edgeworkers CLI if environment variable NODE_ENV is set to "production".
+ akamai install edgeworkers
[KAttempting to fetch command from https://github.com/akamai/cli-edgeworkers.git... [ ]
[KAttempting to fetch command from https://github.com/akamai/cli-edgeworkers.git... [= ] Compressing objects: 100% (141/141), done.
[KAttempting to fetch command from https://github.com/akamai/cli-edgeworkers.git... ... [OK]
[KInstalling... [== ]
[KInstalling... [=== ]
[KInstalling... [==== ]
[KInstalling... [===== ]
[KInstalling... [====== ]
[KInstalling... [======= ]
[KInstalling... [======== ]
[KInstalling... [========= ]
[KInstalling... [==========]
[KInstalling... [ ]
[KInstalling... [= ]
[KInstalling... [== ]
[KInstalling... [=== ]
[KInstalling... [==== ]
[KInstalling... [===== ]
[KInstalling... [====== ]
[KInstalling... [======= ]
[KInstalling... [======== ]
[KInstalling... [========= ]
[KInstalling... [==========]
[KInstalling... [ ]
[KInstalling... [= ]
[KInstalling... [== ]
[KInstalling... [=== ]
[KInstalling... [==== ]
[KInstalling... [===== ]
[KInstalling... [====== ]
[KInstalling... [======= ]
[KInstalling... [======== ]
[KInstalling... [========= ]
[KInstalling... [==========]
[KInstalling... [ ]
[KInstalling... [= ]
[KInstalling... [== ]
[KInstalling... [=== ]
[KInstalling... [==== ]
[KInstalling... [===== ]
[KInstalling... [====== ]
[KInstalling... [======= ]
[KInstalling... [======== ]
[KInstalling... [========= ]
[KInstalling... [==========]
[KInstalling... [ ]
[KInstalling... [= ]
[KInstalling... [== ]
[KInstalling... [=== ]
[KInstalling... [==== ]
[KInstalling... [===== ]
[KInstalling... [====== ]
[KInstalling... ... [FAIL]
unable to execute package manager: npm
[31m ERROR[0m[0025] unable to execute package manager: npm [31mcommand[0m=install
[31m ERROR[0m[0025] INSTALL ERROR: Unable to install selected package [31mcommand[0m=install
Unable to install selected package
Hey @alivespirit, thanks for raising this issue.
I have noticed there is a similar issue that was raised on the Akamai Property Manager CLI project a few years ago: https://github.com/akamai/cli-property-manager/issues/15
It seems like an oversight with how the Akamai CLI is installing components as it makes use of calls to "npm" to set up the code in this repo. You could try to make use of NVM to work around this as described in the issue above.
Hope that helps.
Hi @bmatthew Thanks for your reply. In our pipeline we are handling this by setting NODE_ENV to empty value for edgeworkers CLI install stage. Just reported this so that it could be addressed in some future release. Thank you!