error code ENOLOCAL
error Could not install from "–registry=https:\registry.npm.taobao.org" as it does not contain a package.json file.
解决
npm cache verify
npm cache clean --force
npm i -g npm
npm install -g cnpm --registry=http://registry.npm.taobao.org
https://github.com/npm/npm/issues/16861