[英]Grunt not being found when installing grunt-sass with Node.js via Git Bash on Windows 10
我正在Lynda.com上使用Node.js下載軟件包等課程。我已經完全按照說明進行操作。 我已經安裝了最新版本的Node.js,
通過Git Bash,我安裝了最新版本的Grunt,如下所示
Nicholas@NicksDesktop MINGW64 /
$ npm install -g grunt cli
C:\Users\Nicholas\AppData\Roaming\npm\grunt -> C:\Users\Nicholas\AppData\Roaming\npm\node_modules\grunt\bin\grunt
C:\Users\Nicholas\AppData\Roaming\npm
+-- cli@1.0.1
`-- grunt@1.0.1
當我通過Git Bash npm install --save grunt-sass
輸入以下內容時,出現以下錯誤
npm WARN grunt-sass@2.0.0 requires a peer of grunt@>=0.4.0 but none was installed.
我怎樣才能解決這個問題?
我導航到通過Git Bash安裝grunt-sass的文件夾,然后輸入
npm install grunt@0.4.0
這似乎可以解決錯誤,似乎在安裝了最新版本和所需的較早版本之后。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.