Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Install packages error - "The system cannot find the path specified." #838

Open
tterb opened this issue Sep 11, 2016 · 8 comments
Open

Install packages error - "The system cannot find the path specified." #838

tterb opened this issue Sep 11, 2016 · 8 comments

Comments

@tterb
Copy link

tterb commented Sep 11, 2016

I've been using Atom for a few months now on my Windows 10 laptop and just yesterday, when I try to search for a package to install under the Settings tab I get this error that says "The system cannot find the patch specified."
The same error was also present under the Featured Packages label, though it seems to have been fixed after first opening Atom from command prompt using: atom --safe

2016-09-11_15h26_09

I've also noticed that the output of the apm commands, when run from the command prompt, are all being preceded with "INFO: Could not find files for the given pattern(s)."
Though I seem to still be able to install package via apm install <package>.

The command atom.packages.getApmPath(); returns "C:\Users\there\AppData\Local\atom\app-1.9.9\resources\app\apm\node_modules\atom-package-manager\bin\apm.cmd"
.
Though finding a few posts on https://discuss.atom.io/ about similar issues, none of the suggested fixes have seemed to help and I would really like to fix this issue, so any suggestions or advice would be greatly appreciated.

@tterb
Copy link
Author

tterb commented Sep 11, 2016

I just found that these errors are also being thrown at the console when I try to uninstall a package from the Settings view:

2016-09-11_15h41_59
2016-09-11_15h42_16

@damieng
Copy link
Contributor

damieng commented Sep 19, 2016

Can you type the following in a command prompt;

echo $PATH

And see if any of the entries contain double-quotes? e.g. "c:\program files..."

If they do you can go into system settings and remove the quotes from around it (unlike normal folder names PATH does not need quotes around directories with spaces)

@damieng damieng changed the title Install packages error - "The system cannot find the patch specified." Install packages error - "The system cannot find the path specified." Sep 19, 2016
@tterb
Copy link
Author

tterb commented Sep 19, 2016

When I enter echo $PATH into the command prompt it only returns $PATH.
Though, when I enter echo %PATH% there are no single or double-quotes in the output, only the variables within my environment path.

@damieng
Copy link
Contributor

damieng commented Sep 21, 2016

Can you try a couple of things;

apm update

If that gives an error can you edit the apm.cmd file on your machine and change the first line from @echo off to rem @echo off and then try it again and post the results here?

Thanks

@tterb
Copy link
Author

tterb commented Sep 21, 2016

When initially running apm update this was the response:
INFO: Could not find files for the given pattern(s).' 'Request for package information failed: getaddrinfo ENOENT atom.io:443
After editing the apm.cmd file, the response was:
"C:\Users\there\AppData\Local\atom\bin\\..\app-1.10.2\resources\app\apm\bin\apm.cmd" update
INFO: Could not find files for the given pattern(s).
Package Updates Available (0)
└── (empty)

Though frequent, there have been a few times recently where this error hasn't shown up when attempting to search for a package. So I've since been trying to narrow down what actions could be triggering this issue and will be providing more info as it appears.

Thanks

@damieng
Copy link
Contributor

damieng commented Sep 21, 2016

After editing that file it should have shown all the individual commands including which one generates that error.

@yoyobo
Copy link

yoyobo commented Oct 24, 2016

I just had the same issue with broken package installing and updating on Windows 8.1. I removed all double quotes from my user and the system path variable and now it works.
Before I got a message like "kann syntaktisch an dieser Stelle nicht verarbeitet werden" (german edition of windows) together with a partial quote of my path variable within the package installation section on the settings page.

@metafaniel
Copy link

Thanks.
In my case, I had to edit both apm.cmd and atom.cmd and update the app part of the path. I had app-1.27.2 and I updated it to app-1.30.0 which is the latest version at present. I hope this comment is useful to someone. Greetings

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

No branches or pull requests

4 participants