等很久不见npm install -d .完成。。。
npm info linkStuff balanced-match@0.4.2
npm info install jpegtran-bin@0.2.8
npm info install gifsicle@0.1.7
npm info install optipng-bin@0.3.11
npm info postinstall jpegtran-bin@0.2.8
npm info postinstall gifsicle@0.1.7
npm info postinstall optipng-bin@0.3.11
> jpegtran-bin@0.2.8 postinstall D:\mylib\node_modules\grunt-contrib-imagemin\node_modules\jpegtran-bin
> node index.js
\
In this case, it is usually because the network is not good, or because of some indescribable reason... you know.
Try using Taobao’s npm mirror
Postinstall appears in the last sentence of the question. It can be judged that it is not a network problem. At this time, the package has been downloaded locally. jpegtran-bin needs to be edited, so if the subject does not install the visual studio compilation environment, it will get stuck here.