I've having an issue trying to install apps using scoop and getting an 'file doesn't exist' error.
For example installing curl I get this console output:
installing curl (7.37.0)
downloading http://www.confusedbycode.com/curl/curl-7.37.0-win64.zip...done
checking hash...ok
extracting...done
creating shim for curl
can't shim bin/curl.exe: file doesn't exist
I get a very similar result when trying to install 7zip and vim.
Time, sudo and touch work fine.
When I run scoop which curl I get:
not a scoop shim.
The Appdata\Local\scoop\apps\curl\7.37.0 folder is empty when after all this.
Installing sudo worked correctly and I ended up with the .cmd and ps1 as expected in \AppData\Local\scoop\shims
Thanks,
Tim
Argh sorry about that, I switched to using robocopy to move installed files and I don't think the new code was handling spaces in the path properly.
Can you try again after updating scoop with scoop update? You might need to scoop uninstall curl to clear up the empty directories left behind.
That works perfectly after the scoop update. Thanks for the quick turnaround.
This is such an excellent tool. It really speeds up the process of getting up and running on a new computer!
Thanks again.
Cool, you're welcome :)
I'm getting this now:
PS C:\Users\turiy> scoop update
Updating Scoop...
Scoop was updated successfully!
PS C:\Users\turiy> scoop which curl
Not a scoop shim.
PS C:\Users\turiy> scoop install curl
WARN 'curl' (7.59.0) is already installed.
Use 'scoop update curl' to install a new version.
PS C:\Users\turiy> scoop update curl
curl: 7.59.0 (latest version)
Latest versions for all apps are installed! For more information try 'scoop status'
PS C:\Users\turiy> scoop reinstall curl
scoop: 'reinstall' isn't a scoop command. See 'scoop help'.
PS C:\Users\turiy> scoop uninstall curl
Uninstalling 'curl' (7.59.0).
Removing shim for 'curl'.
Unlinking ~\scoop\apps\curl\current
'curl' was uninstalled.
PS C:\Users\turiy> scoop install curl
Installing 'curl' (7.59.0) [64bit]
Loading curl-7.59.0-win64-mingw.tar.xz from cache
Checking hash of curl-7.59.0-win64-mingw.tar.xz... ok.
Extracting... done.
Linking ~\scoop\apps\curl\current => ~\scoop\apps\curl\7.59.0
Creating shim for 'curl'.
'curl' (7.59.0) was installed successfully!
PS C:\Users\turiy> scoop which curl
Not a scoop shim.
PS C:\Users\turiy>
@maludwig did you try scoop reset curl? Is there a curl.exe, curl.ps1 and a curl.shim file in ~\scoop\shims?
Just tried scoop reset curl to no avail. Here is some more stuff:
PS C:\Users\turiy> scoop reset curl
Resetting curl (7.59.0).
Linking ~\scoop\apps\curl\current => ~\scoop\apps\curl\7.59.0
Creating shim for 'curl'.
PS C:\Users\turiy> curl.exe google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="http://www.google.ca/?gfe_rd=cr&dcr=0&ei=Sfu7Woj4B8T_8AfE5qHgAw">here</A>.
</BODY></HTML>
PS C:\Users\turiy> curl google.com
StatusCode : 200
StatusDescription : OK
Content : <!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="en-CA"><head><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"><meta content="/images/branding/googleg/1x/...
RawContent : HTTP/1.1 200 OK
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
Cache-Control: private, max-age=0
Content-Type: text/html; charset=UTF-8
Date: Wed, 28 Mar 2018 20:30:04 GMT
Expires: ...
Forms : {f}
Headers : {[X-XSS-Protection, 1; mode=block], [X-Frame-Options, SAMEORIGIN], [Cache-Control, private, max-age=0], [Content-Type, text/html; charset=UTF-8]...}
Images : {@{innerHTML=; innerText=; outerHTML=<IMG id=hplogo onload=window.lol&&lol() style="PADDING-BOTTOM: 14px; PADDING-TOP: 28px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px" alt=Google
src="/images/branding/googlelogo/1x/googlelogo_white_background_color_272x92dp.png" width=272 height=92>; outerText=; tagName=IMG; id=hplogo; onload=window.lol&&lol(); style=PADDING-BOTTOM: 14px; PADDING-TOP: 28px; PADDING-LEFT: 0px;
PADDING-RIGHT: 0px; alt=Google; src=/images/branding/googlelogo/1x/googlelogo_white_background_color_272x92dp.png; width=272; height=92}}
InputFields : {@{innerHTML=; innerText=; outerHTML=<INPUT type=hidden value=en-CA name=hl>; outerText=; tagName=INPUT; type=hidden; value=en-CA; name=hl}, @{innerHTML=; innerText=; outerHTML=<INPUT type=hidden value=hp name=source>; outerText=; tagName=INPUT;
type=hidden; value=hp; name=source}, @{innerHTML=; innerText=; outerHTML=<INPUT type=hidden name=biw>; outerText=; tagName=INPUT; type=hidden; name=biw}, @{innerHTML=; innerText=; outerHTML=<INPUT type=hidden name=bih>; outerText=; tagName=INPUT;
type=hidden; name=bih}...}
Links : {@{innerHTML=<SPAN class=gbtb2></SPAN><SPAN class=gbts>Search</SPAN>; innerText=Search; outerHTML=<A onclick=gbar.logger.il(1,{t:1}); id=gb_1 class="gbzt gbz0l gbp1" href="https://www.google.ca/webhp?tab=ww"><SPAN class=gbtb2></SPAN><SPAN
class=gbts>Search</SPAN></A>; outerText=Search; tagName=A; onclick=gbar.logger.il(1,{t:1});; id=gb_1; class=gbzt gbz0l gbp1; href=https://www.google.ca/webhp?tab=ww}, @{innerHTML=<SPAN class=gbtb2></SPAN><SPAN class=gbts>Images</SPAN>;
innerText=Images; outerHTML=<A onclick=gbar.logger.il(1,{t:2}); id=gb_2 class=gbzt href="http://www.google.ca/imghp?hl=en&tab=wi"><SPAN class=gbtb2></SPAN><SPAN class=gbts>Images</SPAN></A>; outerText=Images; tagName=A;
onclick=gbar.logger.il(1,{t:2});; id=gb_2; class=gbzt; href=http://www.google.ca/imghp?hl=en&tab=wi}, @{innerHTML=<SPAN class=gbtb2></SPAN><SPAN class=gbts>Maps</SPAN>; innerText=Maps; outerHTML=<A onclick=gbar.logger.il(1,{t:8}); id=gb_8
class=gbzt href="http://maps.google.ca/maps?hl=en&tab=wl"><SPAN class=gbtb2></SPAN><SPAN class=gbts>Maps</SPAN></A>; outerText=Maps; tagName=A; onclick=gbar.logger.il(1,{t:8});; id=gb_8; class=gbzt;
href=http://maps.google.ca/maps?hl=en&tab=wl}, @{innerHTML=<SPAN class=gbtb2></SPAN><SPAN class=gbts>Play</SPAN>; innerText=Play; outerHTML=<A onclick=gbar.logger.il(1,{t:78}); id=gb_78 class=gbzt
href="https://play.google.com/?hl=en&tab=w8"><SPAN class=gbtb2></SPAN><SPAN class=gbts>Play</SPAN></A>; outerText=Play; tagName=A; onclick=gbar.logger.il(1,{t:78});; id=gb_78; class=gbzt; href=https://play.google.com/?hl=en&tab=w8}...}
ParsedHtml : System.__ComObject
RawContentLength : 45777
PS C:\Users\turiy> ($env:Path).Replace(';',"`n")
C:\Users\turiy\scoop\apps\nodejs\current\bin
C:\Users\turiy\scoop\apps\nodejs\current
C:\Users\turiy\scoop\shims
C:\Program Files\Docker\Docker\Resources\bin
C:\Program Files (x86)\Razer Chroma SDK\bin
C:\Program Files\Razer Chroma SDK\bin
C:\Program Files (x86)\Python36-32\Scripts\
C:\Program Files (x86)\Python36-32\
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0\
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
C:\Users\turiy\scoop\apps\yarn\current\Yarn\bin
C:\Users\turiy\scoop\apps\yarn\current\bin
C:\Users\turiy\AppData\Local\Microsoft\WindowsApps
C:\Program Files\Git\cmd
C:\Users\turiy\scoop\apps\yarn\current\Yarn\bin
C:\Users\turiy\scoop\apps\yarn\current\bin
C:\Users\turiy\AppData\Local\Microsoft\WindowsApps
C:\Users\turiy\Dropbox\RunShortcuts
PS C:\Users\turiy> node
> 1+1
2
>
PS C:\Users\turiy> ls C:\Users\turiy\scoop\shims\
Directory: C:\Users\turiy\scoop\shims
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 3/28/2018 1:00 PM 7680 7z.exe
-a---- 3/28/2018 2:25 PM 152 7z.ps1
-a---- 3/28/2018 2:25 PM 57 7z.shim
-a---- 3/28/2018 1:00 PM 7680 curl.exe
-a---- 3/28/2018 2:29 PM 158 curl.ps1
-a---- 3/28/2018 2:29 PM 63 curl.shim
-a---- 3/28/2018 2:24 PM 101 scoop
-a---- 3/28/2018 2:24 PM 338 scoop.cmd
-a---- 3/28/2018 2:24 PM 160 scoop.ps1
PS C:\Users\turiy>
Hmmm. I maybe have a...solution? Maybe?
PS C:\Users\turiy> Get-Command curl
CommandType Name Version Source
----------- ---- ------- ------
Alias curl -> Invoke-WebRequest
PS C:\Users\turiy> Get-Command curl.exe
CommandType Name Version Source
----------- ---- ------- ------
Application curl.exe 0.0.0.0 C:\Users\turiy\scoop\shims\curl.exe
PS C:\Users\turiy> Remove-Item alias:curl
PS C:\Users\turiy> Get-Command curl
CommandType Name Version Source
----------- ---- ------- ------
ExternalScript curl.ps1 C:\Users\turiy\scoop\shims\curl.ps1
PS C:\Users\turiy> curl google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="http://www.google.ca/?gfe_rd=cr&dcr=0&ei=HPy7Wv70FdP_8Afur7moBA">here</A>.
</BODY></HTML>
PS C:\Users\turiy>
From: https://stackoverflow.com/questions/30807318/running-curl-via-powershell-how-to-construct-arguments
I've put it in my profile with the help of this: https://www.howtogeek.com/50236/customizing-your-powershell-profile/
PS C:\Users\turiy> cat ~\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
Remove-Item alias:curl
PS C:\Users\turiy>
Ah yes, I just forgot that PowerShell has a curl alias ... That's why scoop says Not a scoop shim.
Oddly tho, it seems to be fine in the, like, "how-to" video:
https://youtu.be/a85QLUJ0Wbs?t=55s
@maludwig maybe the alias was added later. This video is from 2013 馃榿
Poppycock! Software changing over a 5 year period?! It's unheard of! Great scott!
lol, well, I've got it working with the Remove-Item alias:curl thing.
Most helpful comment
Poppycock! Software changing over a 5 year period?! It's unheard of! Great scott!
lol, well, I've got it working with the
Remove-Item alias:curlthing.