1.安装方式按照简书上写的方法做的,http://www.jianshu.com/p/d242...
,终端运行sudo npm install -g cordova命令报如下:
npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cordova"
npm ERR! node v6.2.0
npm ERR! npm v3.8.9
npm ERR! shasum check failed for /tmp/npm-13501-4befa2a4/registry.npmjs.org/npm/-/npm-2.15.11.tgz
npm ERR! Expected: 350588fba9cd8d384cf9a6e8dc0fef0f94992b7c
npm ERR! Actual: dbde35e2dd26008b1881b86115dcbfc74e150fd9
npm ERR! From: https://registry.npmjs.org/np...
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/is...
npm ERR! Please include the following file with any support request:
npm ERR! /Users/yuanjianxing/npm-debug.log
试试翻个墙在安装吧