Skip to content

Instantly share code, notes, and snippets.

@nicolashery
Created December 5, 2012 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicolashery/4216458 to your computer and use it in GitHub Desktop.
Save nicolashery/4216458 to your computer and use it in GitHub Desktop.
Chocolatey v0.9.8.20 testing
Windows PowerShell
Copyright (C) 2012 Microsoft Corporation. All rights reserved.
> chocolatey update -pre
The most recent version of chocolatey available from '-Source "http://chocolatey.org/api/v2/" -Source "https://go.microsoft.com/fwlink/?LinkID=230477" ' (if value is empty, using sources in nuget.config file) is 0.9.8.20-beta1. On your machine you have 0.9.8.19 installed.
=====================================================
Chocolatey (0.9.8.19) is installing chocolatey to "C:\Chocolatey\lib". By installing you accept the license for the
package you are installing (please run chocolatey /? for full license acceptance terms).
=====================================================
-------------------------
Chocolatey Runner (CHOCOLATEY v0.9.8.20-beta1)
-------------------------
-------------------------
PowerShell (chocolateyinstall.ps1)
-------------------------
Creating ChocolateyInstall as a User Environment variable and setting it to 'C:\Chocolatey'
We are setting up the Chocolatey repository for NuGet packages that should be at the machine level. Think executables/application packages, not library packages.
That is what Chocolatey NuGet goodness is for.
The repository is set up at 'C:\Chocolatey'.
The packages themselves go to 'C:\Chocolatey\lib' (i.e. C:\Chocolatey\lib\yourPackageName).
A batch file for the command line goes to 'C:\Chocolatey\bin' and points to an executable in 'C:\Chocolatey\lib\yourPackageName'.
Creating Chocolatey NuGet folders if they do not already exist.
Copying the contents of 'C:\Chocolatey\lib\chocolatey.0.9.8.20-beta1\tools\chocolateyInstall' to 'C:\Chocolatey'.
Creating 'C:\Chocolatey\bin\chocolatey.bat' so you can call 'chocolatey' from anywhere.
Creating 'C:\Chocolatey\bin\cinst.bat' so you can call 'chocolatey install' from a shortcut of 'cinst'.
Creating 'C:\Chocolatey\bin\cinstm.bat' so you can call 'chocolatey installmissing' from a shortcut of 'cinstm'.
Creating 'C:\Chocolatey\bin\cup.bat' so you can call 'chocolatey update' from a shortcut of 'cup'.
Creating 'C:\Chocolatey\bin\clist.bat' so you can call 'chocolatey list' from a shortcut of 'clist'.
Creating 'C:\Chocolatey\bin\cver.bat' so you can call 'chocolatey version' from a shortcut of 'cver'.
Creating 'C:\Chocolatey\bin\cwebpi.bat' so you can call 'chocolatey webpi' from a shortcut of 'cwebpi'.
Creating 'C:\Chocolatey\bin\cwindowsfeatures.bat' so you can call 'chocolatey windowsfeatures' from a shortcut of 'cwindowsfeatures'.
Creating 'C:\Chocolatey\bin\ccygwin.bat' so you can call 'chocolatey cygwin' from a shortcut of 'ccygwin'.
Creating 'C:\Chocolatey\bin\cpython.bat' so you can call 'chocolatey python' from a shortcut of 'cpython'.
Creating 'C:\Chocolatey\bin\cgem.bat' so you can call 'chocolatey gem' from a shortcut of 'cgem'.
Creating 'C:\Chocolatey\bin\cpack.bat' so you can call 'chocolatey pack' from a shortcut of 'cpack'.
Creating 'C:\Chocolatey\bin\cpush.bat' so you can call 'chocolatey push' from a shortcut of 'cpush'.
Creating 'C:\Chocolatey\bin\cuninst.bat' so you can call 'chocolatey uninstall' from a shortcut of 'cuninst'.
User PATH already contains either 'C:\Chocolatey\bin' or '%DIR%..\bin'
Chocolatey is now ready.
You can call chocolatey from anywhere, command line or powershell by typing chocolatey.
Run chocolatey /? for a list of functions.
You may need to shut down and restart powershell and/or consoles first prior to using chocolatey.
If you are upgrading chocolatey from an older version (prior to 0.9.8.15) and don't use a custom chocolatey path, please find and delete the C:\NuGet folder after verifying that C:\Chocolatey has the same contents (minus chocolateyinstall of course).
-------------------------
Executable Links (*.exe)
-------------------------
There are no executables (that are not ignored) in the package.
-------------------------
=====================================================
Chocolatey has finished installing 'chocolatey' - check log for errors.
=====================================================
> chocolatey version
found : 0.9.8.20-beta1
name : chocolatey
latestCompare : 000000000000.000000000009.000000000008.000000000019
verMessage : Your version is newer than the most recent. You must be smarter than the average bear...
latest : 0.9.8.19
foundCompare : 000000000000.000000000009.000000000008.000000000020.beta1
> chocolatey install nodejs
Chocolatey (v0.9.8.20-beta1) is installing nodejs and dependencies. By installing you accept the license for nodejs and each dependency you are installing.
______ nodejs.commandline v0.8.15 ______
Downloading nodejs (http://nodejs.org/dist/v0.8.15/node.exe) to C:\Chocolatey\lib\nodejs.commandline.0.8.15\tools\node.exe
nodejs has finished succesfully! The chocolatey gods have answered your request!
Adding C:\Chocolatey\bin\node.bat and pointing to '%DIR%..\lib\nodejs.commandline.0.8.15\tools\node.exe'.
______ nodejs v0.8.15 ______
Finished installing 'nodejs' and dependencies - if errors not shown in console, none detected. Check log for errors if unsure.
> node --version
v0.8.15
> where.exe node
C:\Chocolatey\bin\node.bat
> where.exe npm
INFO: Could not find files for the given pattern(s).
# NOTE: Does not install NPM. Install it manually, or install `nodejs.install` instead.
# Switching to `nodejs.install`:
> chocolatey uninstall nodejs
Chocolatey (v0.9.8.20-beta1) is unininstalling nodejs...
> chocolatey uninstall nodejs.commandline
Chocolatey (v0.9.8.20-beta1) is unininstalling nodejs.commandline...
# NOTE: this did not remove `node.bat` from `C:\Chocolatey\bin`, don't know if that's expected. I removed it manually.
> chocolatey install nodejs.install
Chocolatey (v0.9.8.20-beta1) is installing nodejs.install and dependencies. By installing you accept the license for
nodejs.install and each dependency you are installing.
______ nodejs.install v0.8.15 ______
Downloading nodejs.install (http://nodejs.org/dist/v0.8.15/node-v0.8.15-x86.msi) to C:\Users\nhery\AppData\Local\Temp\chocolatey\nodejs.install\nodejs.installInstall.msi
Installing nodejs.install...
Elevating Permissions and running msiexec /i "C:\Users\nhery\AppData\Local\Temp\chocolatey\nodejs.install\nodejs.installInstall.msi" /quiet . This may take awhile, depending on the statements.
nodejs.install has been installed.
nodejs.install has finished succesfully! The chocolatey gods have answered your request!
Finished installing 'nodejs.install' and dependencies - if errors not shown in console, none detected. Check log for
errors if unsure.
# NOTE: This installs the 32-bit version by default, on my 64-bit system. Not that I really care, but don't know if that's expected :)
# NOTE: At this point I add the following lines to my `Microsoft.PowerShell_profile.ps1`:
# $env:Path = "C:\Program Files (x86)\nodejs" + ";" + $env:Path
# $env:Path = "C:\Users\nhery\AppData\Roaming\npm" + ";" + $env:Path
> where.exe node
C:\Program Files (x86)\nodejs\node.exe
> where.exe npm
C:\Program Files (x86)\nodejs\npm
C:\Program Files (x86)\nodejs\npm.cmd
# Trying to update from Chocolatey v0.9.8.20-beta1 to Chocolatey v0.9.8.20, but doesn't do anything:
> chocolatey update
> chocolatey version
found : 0.9.8.20-beta1
name : chocolatey
latestCompare : 000000000000.000000000009.000000000008.000000000020
verMessage : Your version is newer than the most recent. You must be smarter than the average bear...
latest : 0.9.8.20
foundCompare : 000000000000.000000000009.000000000008.000000000020.beta1
@nicolashery
Copy link
Author

@ferventcoder See the output in this Gist.

  • Successfully upgraded to Chocolatey v0.9.8.20-beta1
  • Chocolatey installs the latest Node.js 0.8.15 now so that's good :)
  • However, I thought it would install npm as well?

@ferventcoder
Copy link

you want nodejs.install (that installs npm). Otherwise you are looking for whatever you need to call in node to get it installed.

@nicolashery
Copy link
Author

@ferventcoder: Thanks! Just saw this actually, GitHub didn't send me a notification?

I updated the Gist, you can read from line 90:

# Switching to `nodejs.install`:

Put in a couple lines of comments.

I think I saw you updated the descriptions of the different packages in http://chocolatey.org/packages/nodejs? That's good :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment