afc163/mocha-browser — pull request #5 by sorrycc (2014-09-05 03:07:54+00:00)
Title: 指定 phantomjs 版本

phantomjs release 了一个老版本 [1.8.2-3](https://github.com/Medium/phantomjs/releases)，而淘宝镜像上没有这个包，导致 `spm` 安装失败。

```bash
Looks like an `npm install -g`; unable to check for already installed version.
Downloading http://web.npm.alibaba-inc.com/dist/phantomjs/phantomjs-1.8.2-macosx.zip
Saving to /var/folders/w3/vc5dt9x10tn5lz86t3t05nkh0000gn/T/phantomjs/phantomjs-1.8.2-macosx.zip
Receiving...

Error requesting archive.
Status: 404
Request options: {
"uri": "http://web.npm.alibaba-inc.com/dist/phantomjs/phantomjs-1.8.2-macosx.zip",
"encoding": null,
"followRedirect": true,
"headers": {},
"strictSSL": true
}
Response headers: {
"server": "Tengine",
"date": "Fri, 05 Sep 2014 02:49:41 GMT",
"content-type": "text/plain; charset=utf-8",
"content-length": "53",
"connection": "close",
"x-powered-by": "koa",
"x-readtime": "7"
}
Make sure your network and proxy settings are correct.

If you continue to have issues, please report this full log at https://github.com/Medium/phantomjs
npm ERR! phantomjs@1.8.2-3 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs@1.8.2-3 install script.
npm ERR! This is most likely a problem with the phantomjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls phantomjs
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/Users/chencheng/.nvm/v0.10.28/lib/node_modules/tnpm/node_modules/.bin/ali-npm" "--no-proxy" "--disturl=http://web.npm.alibaba-inc.com/dist" "--userconfig=/Users/chencheng/.tnpmrc" "--cache=/Users/chencheng/.tnpm/cache.10989.1409885378110" "--registry=http://registry.npm.alibaba-inc.com" "install" "phantomjs" "-g" "--loglevel=http"
npm ERR! cwd /Users/chencheng/Documents/Work/Libraries/alipay/spm-family/spm
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.1.0
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/chencheng/Documents/Work/Libraries/alipay/spm-family/spm/npm-debug.log
npm ERR! not ok code 0
```