首先咱們要全局安裝一遍:npm
$ npm install gulp -g
接着咱們要進去到項目的根目錄再安裝一遍(確保你根目錄存在package.json文件):json
$ npm install gulp --save-dev