Cnpm is not an internal or external command

  node.js, question

Use Taobao image to install cnpm, use the command:
$ npm install cnpm -g –registry=
Then enter cnpm -v, showing that cnpm is not an internal or external command, nor is it a runnable command or batch file
node -v 5.0.0
npm-v 3.3.6
It should not be the problem of node and npm. What is the reason? How? To use less and gulp, it is necessary to install cnpm ..

Directly tonpmIt is good to configure the registry of the taobao image, and it is not necessary to install it.cnpm

npm config set registry

Then use it directlynpm install gulp less --save-dev, is to take the bag from the taobao image