-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Failing to install aframe from npm #5145
Comments
If I run the problematic command directly, it asks for the passphrase for my SSH key, and then seems to work successfully.
|
I'm not able to fully test npm install at this point due to problems with aframe dependencies: aframevr/aframe#5145
|
It works on Ubuntu 22.04 node v16.18.0 npm 8.19.2 with my ssh rsa key without passphrase. |
not sure what's special about that configuration. anything that should be done on A-Frame side? |
It sounds like an npm problem, but it is weird. I wonder if it was a temporary github server blip? Did you experience the failure multiple times, diarmid? Does it reproduce if you do it again in a clean directory? |
Can i close this or there's something we need on A-Frame side? |
This is not a transient thing - it is still broken for me, meaning I can't do aything with npm + a-frame at the moment. Something that potentially would help would be migrating all the dependencies in package.json to reference NPM packages rather than GitHub URLs. https://docs.npmjs.com/cli/v8/configuring-npm/package-json#github-urls This, for instance This would require all the dependencies being published to npm:
Having a single mechanism for installing everything would definitely reduce surface area in terms of things that can go wrong. |
OK - finally got round to trying Vincent's suggestion of using SSH keys without a passphrase, and I have now progressed to a new error:
|
If I run this command by itself, it is successful...
|
A different issue, but so that you are aware, it seems that the "github:" prefix may be an issue for some people, Someone reported he couldn't install networked-aframe because of this, he was using ubuntu and node 14 but I don't know how he installed node. I didn't have the issue myself on ubuntu 22.04 and node 16. Using the other github syntax fixed the issue for him, see networked-aframe/networked-aframe#375 for details. |
Probably not the same git binary that is executed with npm? I know you had an issue also with husky and bash last time. |
OK, I have "solved" this by: Adding this to my
And adding this to my path (to deal with an error C:\Program Files\Git\mingw64\libexec\git-core (as per this comment desktop/desktop#10345 (comment) ) |
It looks like the path update to include "C:\Program Files\Git\mingw64\libexec\git-core" was the critical bit. Things are now working without this line in
I haven't gone back and tested all combination, but it looks like there's 2 different routes I could have taken to get this working: 1. Do everything over HTTPSa) Add this to
b) Extend path to include "C:\Program Files\Git\mingw64\libexec\git-core" 2. Use SSHa) No changes to b) Create SSH keys locally, without a passphrase and add them to my GitHub account, as per instructions here (if I'd been able to get ssh-agent working, maybe I could have used a passphrase) c) Extend path to include "C:\Program Files\Git\mingw64\libexec\git-core" |
In terms of what's needed for A-Frame, I'd say there's nothing essential, as it seems there are ways to muddle through issues that may arise. But the overall installation would be less vulnerable to problems if it was standardized on a single method of package download, so it would be desirable to move to a position where all dependencies are npm packages, and downloaded from npm. I think it's also desirable for dependencies like ngokevin/debug to be brought under the A-Frame umbrella, rather than being left to be maintained (or not) by someone no longer associated with A-Frame. |
Description:
I found these issues, which seem similar:
#4329
#5057
Tried adding this to my .gitconfig as per #5057
But this hasn't helped. I get the same error.
I'll upload verbose output from the command (with that change to
.gitconfig
applied)2022-11-04T16_26_54_020Z-debug-0.log
The text was updated successfully, but these errors were encountered: