2017-09-08 302 views
0

嗨我正在嘗試安裝gulp及其不工作,只是返回此消息。安裝gulp問題

$ npm install gulp --save-dev 


npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher       to avoid a RegExp DoS issue 
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher       to avoid a RegExp DoS issue 
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail o       n node releases >= v7.0. Please update to [email protected]^4.0.0 as soon as possible       . Use 'npm ls graceful-fs' to find it in the tree. 


npm WARN [email protected] No description 
npm WARN [email protected] No repository field. 

回答

1

這些只是可以忽略的警告。要檢查模塊已正確安裝,請嘗試以下命令來檢查安裝的版本:

npm list | grep gulp 

它會列出安裝了先前的命令版本。如果你沒有得到任何版本,那麼檢查你使用的npm版本。請更新npm的版本,然後重試。看起來你的npm版本已經過時了。

npm install -g npm