mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 01:45:50 +08:00 
			
		
		
		
	Move some URLs to HTTPS.
This commit is contained in:
		| @@ -1,7 +1,7 @@ | ||||
| language: c # defaults to ruby | ||||
| install: | ||||
|   - sudo apt-get install zsh -y # ksh | ||||
|   - (mkdir /tmp/urchin && cd /tmp/urchin && curl -s "$(curl -s http://registry.npmjs.org/urchin | grep -Eo '"tarball":\s*"[^"]+"' | tail -n 1 | awk -F\" '{ print $4 }')" -O && tar -x -f urchin*) | ||||
|   - (mkdir /tmp/urchin && cd /tmp/urchin && curl -s "$(curl -s https://registry.npmjs.org/urchin | grep -Eo '"tarball":\s*"[^"]+"' | tail -n 1 | awk -F\" '{ print $4 }')" -O && tar -x -f urchin*) | ||||
|   - chmod +x /tmp/urchin/package/urchin | ||||
|   - '[ -z "$WITHOUT_CURL" ] || sudo apt-get remove curl -y' | ||||
| script: | ||||
|   | ||||
| @@ -5,8 +5,8 @@ | ||||
| First you'll need to make sure your system has a c++ compiler. For OSX, XCode will work, for Ubuntu, the build-essential and libssl-dev packages work. | ||||
|  | ||||
| Note: `nvm` does not support Windows (see [#284](https://github.com/creationix/nvm/issues/284)). Two alternatives exist, which are not supported nor developed by us: | ||||
|  - [nvmw](http://github.com/hakobera/nvmw) | ||||
|  - [nvm-windows](http://github.com/coreybutler/nvm-windows) | ||||
|  - [nvmw](https://github.com/hakobera/nvmw) | ||||
|  - [nvm-windows](https://github.com/coreybutler/nvm-windows) | ||||
|  | ||||
| ### Install script | ||||
|  | ||||
| @@ -95,10 +95,10 @@ To set a default Node version to be used in any new shell, use the alias 'defaul | ||||
|  | ||||
| To use a mirror of the node binaries, set `$NVM_NODEJS_ORG_MIRROR`: | ||||
|  | ||||
|     export NVM_NODEJS_ORG_MIRROR=http://nodejs.org/dist | ||||
|     export NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist | ||||
|     nvm install 0.10 | ||||
|  | ||||
|     NVM_NODEJS_ORG_MIRROR=http://nodejs.org/dist nvm install 0.10 | ||||
|     NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist nvm install 0.10 | ||||
|  | ||||
| `nvm use` will not, by default, create a "current" symlink. Set `$NVM_SYMLINK_CURRENT` to "true" to enable this behavior, which is sometimes useful for IDEs. | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user