Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

akamai install edgeworkers fails if NODE_ENV=production #91

Open
alivespirit opened this issue Jul 19, 2022 · 2 comments
Open

akamai install edgeworkers fails if NODE_ENV=production #91

alivespirit opened this issue Jul 19, 2022 · 2 comments

Comments

@alivespirit
Copy link

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
@bmatthew
Copy link
Collaborator

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: akamai/cli-property-manager#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.

@alivespirit
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants