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

Fix versions from upstream modules #12

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

remkolodder
Copy link

The latest versions from Chalk and Got require "ESM" and a different way of using the code. Require becomes import and more changes like that. To fix this, use the old version that is also in the docker image.

@hugopow
Copy link

hugopow commented Apr 6, 2022

Attempted to try to find an old version but no luck. Do you have an older version that does not error with 'ERR_REQUIRE_ESM'?

@remkolodder
Copy link
Author

Hi Hugo,

yes, well if you use the version that I specify in package.json it will pull in the correct versions. You have to install the version on my temp branch:

npm install https://github.com/remkolodder/vmw-sdk
and
npm install https://github.com/remkolodder/vmw-cli
to have them going.

I use them at work regularly without issues :-)
Thanks
Remko

@hugopow
Copy link

hugopow commented Apr 7, 2022

I'm not sure if I'm doing this incorrectly. Need an idiots guide.

npm install https://github.com/remkolodder/vmw-sdk npm ERR! code ENOENT npm ERR! syscall spawn git npm ERR! path git npm ERR! errno -2 npm ERR! enoent Error while executing: npm ERR! enoent undefined ls-remote -h -t https://github.com/remkolodder/vmw-sdk.git npm ERR! enoent npm ERR! enoent npm ERR! enoent spawn git ENOENT npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

@remkolodder
Copy link
Author

Hi,

I am sorry, the git part is appended:

npm install https://github.com/remkolodder/vmw-sdk.git --global
npm install https://github.com/remkolodder/vmw-cli.git --global

This works for us and uses the working versions of the software :)

@hugopow
Copy link

hugopow commented Apr 7, 2022

Getting another error.

`npm install https://github.com/remkolodder/vmw-sdk.git --global
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -2
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t https://github.com/remkolodder/vmw-sdk.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-04-07T11_34_07_274Z-debug.log`

@remkolodder
Copy link
Author

Ah but you do not have git available?

@hugopow
Copy link

hugopow commented Apr 7, 2022

That was it! Forgot to install git onto my new docker image! Thanks for the help, working now.

@remkolodder
Copy link
Author

I have added a part of the pull request to initialise the storage for the cache. The "init()" was missing from the cache storage, and therefor breaking my usage of the vmw-cli application. After adding this, caching works again and i can read the vmware upstream repositories.

Please consider merging these, in addition to the other update (#13) that brings this into a more future proof form.

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

Successfully merging this pull request may close these issues.

2 participants