Use Taobao image to install cnpm, use the command:
$ npm install cnpm -g –registry=https://registry.npm.taobao.org
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
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 ..
npmIt is good to configure the registry of the taobao image, and it is not necessary to install it.
npm config set registry https://registry.npm.taobao.org
Then use it directly
npm install gulp less --save-dev, is to take the bag from the taobao image