aricchoudeMacBook-Pro:bin aric$ sudo npm install -g cnpm --registry=https://registry.npm.taobao.org
Password:
npm ERR! not a package /usr/local/bin/cnpm
npm ERR! addLocal Could not install /usr/local/bin/cnpm
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cnpm" "--registry=https://registry.npm.taobao.org"
npm ERR! node v4.4.5
npm ERR! npm v2.15.5
npm ERR! path /tmp/npm-18514-feb184e8/unpack-ff66aa827a7f/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/tmp/npm-18514-feb184e8/unpack-ff66aa827a7f/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /usr/local/bin/npm-debug.log
aricchoudeMacBook-Pro:bin aric$