Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Unable to Install Certain Packages #5202

Closed
lucasbrendel opened this issue Jan 22, 2015 · 26 comments
Closed

Unable to Install Certain Packages #5202

lucasbrendel opened this issue Jan 22, 2015 · 26 comments
Assignees
Labels
bug windows Issues that occur on Windows but not on other platforms.

Comments

@lucasbrendel
Copy link

I update my atom install going from the previous zip download, wiping all that away and using the new installer, but now certain packages won't install.

Here is my error output from the install command

npm ERR! Failed to clone git+https://github.com/Benvie/harmony-collections.git#e81b4b808359e2def9eeeabfdee69c2989e1fe96 from https://github.com/Benvie/harmony-collections.git fatal: could not create work tree dir 'C:\Users\Lucas\AppData\Local\Temp\npm-7196-e008f472\1421899379200-0.9844579449854791\e81b4b808359e2def9eeeabfdee69c2989e1fe96'.: No such file or directory
npm ERR! Failed to clone git+https://github.com/Benvie/harmony-collections.git#e81b4b808359e2def9eeeabfdee69c2989e1fe96 from https://github.com/Benvie/harmony-collections.git 
npm ERR! Windows_NT 6.2.9200
npm ERR! argv "c:\\Users\\Lucas\\AppData\\Local\\atom\\app-0.175.0\\resources\\app\\apm\\bin\\\\node.exe" "c:\\Users\\Lucas\\AppData\\Local\\atom\\app-0.175.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "c:\\Users\\Lucas\\AppData\\Local\\atom\\app-0.175.0\\resources\\app\\apm\\.apmrc" "--userconfig" "C:\\Users\\Lucas\\.atom\\.apmrc" "install" "C:\\Users\\Lucas\\AppData\\Local\\Temp\\d-115021-6940-1k7emay\\package.tgz" "--target=0.20.0" "--arch=ia32" "--msvs_version=2013"
npm ERR! node v0.10.35
npm ERR! npm  v2.1.18
npm ERR! code 128

npm ERR! Command failed: fatal: could not create work tree dir 'C:\Users\Lucas\AppData\Local\Temp\npm-7196-e008f472\1421899379200-0.9844579449854791\e81b4b808359e2def9eeeabfdee69c2989e1fe96'.: No such file or directory
npm ERR! 
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <http://github.com/npm/npm/issues>

I have gotten Themes and some packages, like color-picker to install but most fail and it is this same error.

Is this more an NPM issue? I have looked at other issues but none seemed to throw this error.

@karai17
Copy link

karai17 commented Jan 22, 2015

You need to install git. If you're on Windows, type "Git for Windows" in Google, it's the first result.

Beware, when i tried opening the git installer ti seemed to hang. Apparently "doing stuff" makes it work, so just browse the web for a few minutes and you'll eventually get the installer to pop up... It was weird.

You will also need to close and reopen Atom once git is installed.

Finally, make sure to select the option to add git to your PATH variable. (the middle option, where it says "considered safe")

@lucasbrendel
Copy link
Author

I already have git. WIth Github for windows, plus I can install other packages, that as far as i can tell don't have the harmony-collections package. I may be wrong about that part though.

@karai17
Copy link

karai17 commented Jan 22, 2015

Is git in your PATH?
On Jan 22, 2015 8:30 AM, "Lucas Brendel" notifications@github.com wrote:

I already have git. WIth Github for windows, plus I can install other
packages, that as far as i can tell don't have the harmony-collections
package. I may be wrong about that part though.


Reply to this email directly or view it on GitHub
#5202 (comment).

@lucasbrendel
Copy link
Author

Yes it is

@winstliu
Copy link
Contributor

@karai17: This issue is not because Git is missing (if it was, the error log would clearly state so). It looks more like something went wrong when storing the files.

@avarabei
Copy link

I've got the same error today on Windows 7 x64 with atom 0.175.0 when I tried to install atom-beautify package.

npm ERR! Failed to clone git+https://github.com/Benvie/harmony-collections.git#e81b4b808359e2def9eeeabfdee69c2989e1fe96 from https://github.com/Benvie/harmony-collections.git fatal: could not create work tree dir 'C:\Users\Avarabei\AppData\Local\Temp\npm-12936-bcc040da\1421996170678-0.5388533435761929\e81b4b808359e2def9eeeabfdee69c2989e1fe96'.: No such file or directory
npm ERR! Failed to clone git+https://github.com/Benvie/harmony-collections.git#e81b4b808359e2def9eeeabfdee69c2989e1fe96 from https://github.com/Benvie/harmony-collections.git 
npm ERR! Failed to clone git://github.com/ariya/esprima.git#216189496afc6bd3f7021a05253c64f9858b6ff9 from git://github.com/ariya/esprima.git fatal: could not create work tree dir 'C:\Users\Avarabei\AppData\Local\Temp\npm-12936-bcc040da\1421996175894-0.01938487566076219\216189496afc6bd3f7021a05253c64f9858b6ff9'.: No such file or directory
npm ERR! Failed to clone git://github.com/ariya/esprima.git#216189496afc6bd3f7021a05253c64f9858b6ff9 from git://github.com/ariya/esprima.git 
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "c:\\Users\\Avarabei\\AppData\\Local\\atom\\app-0.175.0\\resources\\app\\apm\\bin\\\\node.exe" "c:\\Users\\Avarabei\\AppData\\Local\\atom\\app-0.175.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "c:\\Users\\Avarabei\\AppData\\Local\\atom\\app-0.175.0\\resources\\app\\apm\\.apmrc" "--userconfig" "c:\\Users\\Avarabei\\.atom\\.apmrc" "install" "C:\\Users\\Avarabei\\AppData\\Local\\Temp\\d-115023-6236-vzidsd\\package.tgz" "--target=0.20.0" "--arch=ia32" "--msvs_version=2013"
npm ERR! node v0.10.35
npm ERR! npm  v2.1.18
npm ERR! code 128

npm ERR! Command failed: fatal: could not create work tree dir 'C:\Users\Avarabei\AppData\Local\Temp\npm-12936-bcc040da\1421996170678-0.5388533435761929\e81b4b808359e2def9eeeabfdee69c2989e1fe96'.: No such file or directory
npm ERR! 
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <http://github.com/npm/npm/issues>

@mkaput
Copy link

mkaput commented Jan 23, 2015

I also have this problem and cannot install and update packages.

Log for linter package:

npm ERR! Failed to clone git+https://github.com/Benvie/harmony-collections.git#e81b4b808359e2def9eeeabfdee69c2989e1fe96 from https://github.com/Benvie/harmony-collections.git fatal: could not create work tree dir 'C:\Users\Marek\AppData\Local\Temp\npm-6816-0a590db7\1422024759811-0.4281952634919435\e81b4b808359e2def9eeeabfdee69c2989e1fe96'.: No such file or directory
npm ERR! Failed to clone git+https://github.com/Benvie/harmony-collections.git#e81b4b808359e2def9eeeabfdee69c2989e1fe96 from https://github.com/Benvie/harmony-collections.git 
npm ERR! Windows_NT 6.2.9200
npm ERR! argv "c:\\Users\\Marek\\AppData\\Local\\atom\\app-0.175.0\\resources\\app\\apm\\bin\\\\node.exe" "c:\\Users\\Marek\\AppData\\Local\\atom\\app-0.175.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "c:\\Users\\Marek\\AppData\\Local\\atom\\app-0.175.0\\resources\\app\\apm\\.apmrc" "--userconfig" "c:\\Users\\Marek\\.atom\\.apmrc" "install" "C:\\Users\\Marek\\AppData\\Local\\Temp\\d-115023-3308-s6n3st\\package.tgz" "--target=0.20.0" "--arch=ia32" "--msvs_version=2013"
npm ERR! node v0.10.35
npm ERR! npm  v2.1.18
npm ERR! code 128

npm ERR! Command failed: fatal: could not create work tree dir 'C:\Users\Marek\AppData\Local\Temp\npm-6816-0a590db7\1422024759811-0.4281952634919435\e81b4b808359e2def9eeeabfdee69c2989e1fe96'.: No such file or directory
npm ERR! 
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <http://github.com/npm/npm/issues>

Log for terminal-panel package:

npm ERR! Failed to clone git+https://github.com/Benvie/harmony-collections.git#e81b4b808359e2def9eeeabfdee69c2989e1fe96 from https://github.com/Benvie/harmony-collections.git fatal: could not create work tree dir 'C:\Users\Marek\AppData\Local\Temp\npm-2260-c4f3e23b\1422024590470-0.804467904381454\e81b4b808359e2def9eeeabfdee69c2989e1fe96'.: No such file or directory
npm ERR! Failed to clone git+https://github.com/Benvie/harmony-collections.git#e81b4b808359e2def9eeeabfdee69c2989e1fe96 from https://github.com/Benvie/harmony-collections.git 
npm ERR! Windows_NT 6.2.9200
npm ERR! argv "c:\\Users\\Marek\\AppData\\Local\\atom\\app-0.175.0\\resources\\app\\apm\\bin\\\\node.exe" "c:\\Users\\Marek\\AppData\\Local\\atom\\app-0.175.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "c:\\Users\\Marek\\AppData\\Local\\atom\\app-0.175.0\\resources\\app\\apm\\.apmrc" "--userconfig" "c:\\Users\\Marek\\.atom\\.apmrc" "install" "C:\\Users\\Marek\\AppData\\Local\\Temp\\d-115023-1340-d5w1z\\package.tgz" "--target=0.20.0" "--arch=ia32" "--msvs_version=2013"
npm ERR! node v0.10.35
npm ERR! npm  v2.1.18
npm ERR! code 128

npm ERR! Command failed: fatal: could not create work tree dir 'C:\Users\Marek\AppData\Local\Temp\npm-2260-c4f3e23b\1422024590470-0.804467904381454\e81b4b808359e2def9eeeabfdee69c2989e1fe96'.: No such file or directory
npm ERR! 
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <http://github.com/npm/npm/issues>

Windows 8.1 x64, Atom 0.175.0, Git 2.2.2 in PATH.

@winstliu winstliu added the bug label Jan 23, 2015
@lucasbrendel
Copy link
Author

Has anyone tried releases of atom before 0.175? This was the first upgrade for me in over a month when this issue showed up. I can try going back a couple revisions, just for curiousity sake.

@mark-hahn
Copy link
Contributor

Ooops. I missed this and posted this issue on atom/apm atom/apm#274

Should I close that issue?

@kevinsawicki
Copy link
Contributor

Looks like this may have been fixed in a recent npm build, npm/npm#7083

@kevinsawicki
Copy link
Contributor

Should I close that issue?

Yeah, I think that makes sense since this issue has traction even though it is an apm issue.

@lucasbrendel
Copy link
Author

I just installed 0.173 atom and packages that previously failed to install, now install.

@mark-hahn
Copy link
Contributor

How does one install old versions?

On Fri, Jan 23, 2015 at 4:19 PM, Lucas Brendel notifications@github.com
wrote:

I just installed 0.173 atom and packages that previously failed to
install, now install.


Reply to this email directly or view it on GitHub
#5202 (comment).

@lucasbrendel
Copy link
Author

@mark-hahn I just ran an uninstall of atom 0.175 and then downloaded the 0.173 build. My previous packages that were installed stayed so i didn't have to reinstall them. If you aren't using the Atom installer and instead the zip version, i am guessing deleting the atom directory would work.

@lucasbrendel
Copy link
Author

I should make a correction. I downgraded to 0.174, not 0.173

@mark-hahn
Copy link
Contributor

Comment deleted.

@RichardJECooke
Copy link

How does one install old versions? I came across Atom for the first time today and I too can't install packages because their path names are monstrously long.

@mark-hahn
Copy link
Contributor

See #5109.

On Sat, Jan 24, 2015 at 12:51 PM, RichardJECooke notifications@github.com
wrote:

How does one install old versions? I came across Atom for the first time
today and I too can't install packages because their path names are
monstrously long.


Reply to this email directly or view it on GitHub
#5202 (comment).

@singerng
Copy link

I got the same issue trying to install the minimap package after just upgrading to Atom 0.175.0. I'm running Windows 7 64-bit.

npm ERR! Failed to clone git+https://github.com/Benvie/harmony-collections.git#e81b4b808359e2def9eeeabfdee69c2989e1fe96 from https://github.com/Benvie/harmony-collections.git fatal: could not create work tree dir 'C:\Users\NOAHSI~1\AppData\Local\Temp\npm-7828-a1a302cf\1422212688175-0.6784221520647407\e81b4b808359e2def9eeeabfdee69c2989e1fe96'.: No such file or directory
npm ERR! Failed to clone git+https://github.com/Benvie/harmony-collections.git#e81b4b808359e2def9eeeabfdee69c2989e1fe96 from https://github.com/Benvie/harmony-collections.git 
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "c:\\Users\\Noah Singer\\AppData\\Local\\atom\\app-0.175.0\\resources\\app\\apm\\bin\\\\node.exe" "c:\\Users\\Noah Singer\\AppData\\Local\\atom\\app-0.175.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "c:\\Users\\Noah Singer\\AppData\\Local\\atom\\app-0.175.0\\resources\\app\\apm\\.apmrc" "--userconfig" "c:\\Users\\Noah Singer\\.atom\\.apmrc" "install" "C:\\Users\\NOAHSI~1\\AppData\\Local\\Temp\\d-115025-5984-t07df\\package.tgz" "--target=0.20.0" "--arch=ia32" "--msvs_version=2010"
npm ERR! node v0.10.35
npm ERR! npm  v2.1.18
npm ERR! code 128

npm ERR! Command failed: fatal: could not create work tree dir 'C:\Users\NOAHSI~1\AppData\Local\Temp\npm-7828-a1a302cf\1422212688175-0.6784221520647407\e81b4b808359e2def9eeeabfdee69c2989e1fe96'.: No such file or directory
npm ERR! 
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <http://github.com/npm/npm/issues>

@winstliu
Copy link
Contributor

Can anyone who's not on Windows reproduce this? It looks like it's a Windows-specific bug at this point.

@winstliu winstliu added the windows Issues that occur on Windows but not on other platforms. label Jan 25, 2015
@winstliu
Copy link
Contributor

@kevinsawicki: Could this have been caused by #5175?

@avarabei
Copy link

I've got fixed this on my machine by upgrading local git version from 1.8.4.msysgit.0 to the latest one for Windows - 1.9.5.msysgit.0. Now I am able to install packages correctly.

@mark-hahn
Copy link
Contributor

Thank you very much. This was killing me. I couldn't even test the
release of my own package.

On Sun, Jan 25, 2015 at 11:35 PM, Aliaksei Varabei <notifications@github.com

wrote:

I've got fixed this on my machine by upgrading local git version from
1.8.4.msysgit.0 to the latest one for Windows - 1.9.5.msysgit.0. Now I
am able to install packages correctly.


Reply to this email directly or view it on GitHub
#5202 (comment).

@RichardJECooke
Copy link

Thanks, this resolved this issue for me. A possible fix for the issue permanently would be a recommendation message to upgrade git if this error occurs in Atom.

@kevinsawicki kevinsawicki self-assigned this Jan 26, 2015
@kevinsawicki
Copy link
Contributor

Could this have been caused by #5175?

I don't think so, I believe this was caused by the npm upgrade in atom/apm#252

@lock
Copy link

lock bot commented Jan 23, 2019

This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

@lock lock bot locked as resolved and limited conversation to collaborators Jan 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug windows Issues that occur on Windows but not on other platforms.
Projects
None yet
Development

No branches or pull requests

9 participants