Skip to content

Instantly share code, notes, and snippets.

@tugberkugurlu
Last active December 12, 2015 05:28
Show Gist options
  • Select an option

  • Save tugberkugurlu/4721986 to your computer and use it in GitHub Desktop.

Select an option

Save tugberkugurlu/4721986 to your computer and use it in GitHub Desktop.
# to install a package right from GitHub
# this will install the package under the {current_path}/node_modules/{package_name}/
npm install https://github.com/windowsazure/azure-sdk-tools-xplat/tarball/dev
# if you wanna install a global package, use the -g switch
# This will put the package under %appdata%\npm\ and it'll also put
# directly invokable cmd and sh (I assue it is sh file. It has no extension) files.
# For example, for azure, it'll create the azure and azure.cmd files under %appdata%\npm\.
# As the %appdata%\npm\ is under my path, we can just do: azure.
# However, this only happens for azure AFA I can see. this may be enabled by a "after install"
# script which npm calls for the package.
npm install azure-cli -g
# uninstall the global package
npm uninstall -g azure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment