Hi,
刚刚发现似乎cnpm用不了了。下面是我部署时候的打印:
$: lean deploy
部署到:生产环境(web)
压缩项目文件 ...
生成临时文件:/tmp/1477273263030.zip
开始上传项目文件 ...
10/24/2016, 9:41:03 AM [INFO] 开始构建 20161024-094103
10/24/2016, 9:41:03 AM [INFO] 正在下载应用代码 ...
10/24/2016, 9:41:04 AM [INFO] 正在解压缩应用代码 ...
10/24/2016, 9:41:05 AM [INFO] 运行环境: nodejs (leanengine/nodejs-base)
10/24/2016, 9:41:05 AM [INFO] 正在下载和安装依赖项 ...
10/24/2016, 9:45:49 AM [ERROR] 部署失败:The command '/bin/sh -c chown leanengine:leanengine . && su leanengine -c 'npm install --production --registry=http://registry.npm.taobao.org --disturl=https://npm.taobao.org/dist' && su leanengine -c 'npm list --depth 0'' returned a non-zero code: 1:
npm WARN package.json node-js-getting-started@1.0.0 No repository field.
npm WARN package.json node-js-getting-started@1.0.0 No README data
npm ERR! fetch failed http://registry.npm.taobao.org/cookie-parser/download/cookie-parser-1.4.3.tgz
npm WARN retry will retry, error on last attempt: Error: Hostname/IP doesn't match certificate's altnames: "Host: cdn.npm.taobao.org. is not in the cert's altnames: DNS:*.oss-cn-hangzhou.aliyuncs.com, DNS:oss-cn-hangzhou.aliyuncs.com"
npm ERR! fetch failed http://registry.npm.taobao.org/ejs/download/ejs-2.3.1.tgz
npm WARN retry will retry, error on last attempt: Error: Hostname/IP doesn't match certificate's altnames: "Host: cdn.npm.taobao.org. is not in the cert's altnames: DNS:*.oss-cn-hangzhou.aliyuncs.com, DNS:oss-cn-hangzhou.aliyuncs.com"
npm ERR! fetch failed http://registry.npm.taobao.org/connect-timeout/download/connect-timeout-1.7.0.tgz
npm WARN retry will retry, error on last attempt: Error: Hostname/IP doesn't match certificate's altnames: "Host: cdn.npm.taobao.org. is not in the cert's altnames: DNS:*.oss-cn-hangzhou.aliyuncs.com, DNS:oss-cn-hangzhou.aliyuncs.com"
npm ERR! fetch failed http://registry.npm.taobao.org/leanengine/download/leanengine-1.2.2.tgz
npm WARN retry will retry, error on last attempt: Error: Hostname/IP doesn't match certificate's altnames: "Host: cdn.npm.taobao.org. is not in the cert's altnames: DNS:*.oss-cn-hangzhou.aliyuncs.com, DNS:oss-cn-hangzhou.aliyuncs.com"
npm ERR! fetch failed http://registry.npm.taobao.org/moment-timezone/download/moment-timezone-0.5.7.tgz
npm WARN retry will retry, error on last attempt: Error: Hostname/IP doesn't match certificate's altnames: "Host: cdn.npm.taobao.org. is not in the cert's altnames: DNS:*.oss-cn-hangzhou.aliyuncs.com, DNS:oss-cn-hangzhou.aliyuncs.com"
npm ERR! fetch failed http://registry.npm.taobao.org/body-parser/download/body-parser-1.12.3.tgz
npm WARN retry will retry, error on last attempt: Error: Hostname/IP doesn't match certificate's altnames: "Host: cdn.npm.taobao.org. is not in the cert's altnames: DNS:*.oss-cn-hangzhou.aliyuncs.com, DNS:oss-cn-hangzhou.aliyuncs.com"
npm ERR! fetch failed http://registry.npm.taobao.org/underscore/download/underscore-1.8.3.tgz
npm WARN retry will retry, error on last attempt: Error: Hostname/IP doesn't match certificate's altnames: "Host: cdn.npm.taobao.org. is not in the cert's altnames: DNS:*.oss-cn-hangzhou.aliyuncs.com, DNS:oss-cn-hangzhou.aliyuncs.com"
npm ERR! fetch failed http://registry.npm.taobao.org/cors/download/cors-2.8.1.tgz
npm WARN retry will retry, error on last attempt: Error: Hostname/IP doesn't match certificate's altnames: "Host: cdn.npm.taobao.org. is not in the cert's altnames: DNS:*.oss-cn-hangzhou.aliyuncs.com, DNS:oss-cn-hangzhou.aliyuncs.com"
......
我怀疑可能是cnpm自身的问题,因为我在本地执行cnpm install的时候也不行。能不能麻烦你们改成npm install。谢谢!