3

我一直在試圖安裝Grunt。當我運行的呼嚕聲,我收到消息和警告名單如下:當我運行Grunt時,收到以下消息:未找到本地npm模塊「grunt-contrib-copy」。它是否安裝?

Local Npm module "grunt-contrib-copy" not found. Is it installed? 
Local Npm module "grunt-contrib-uglify" not found. Is it installed? 
Local Npm module "grunt-contrib-jshint" not found. Is it installed? 
Local Npm module "grunt-contrib-less" not found. Is it installed? 
Local Npm module "grunt-contrib-clean" not found. Is it installed? 
Local Npm module "grunt-contrib-watch" not found. Is it installed? 
Local Npm module "grunt-contrib-concurrent" not found. Is it installed? 
Local Npm module "grunt-contrib-nodemon" not found. Is it installed? 
Local Npm module "grunt-contrib-newer" not found. Is it installed? 
Warning: Task "copy:vendor" not found. Use --force to continue. 
Aborted due to warnings. 

我已經試過「故宮安裝」,「故宮安裝咕嚕--save-dev的」,「咕嚕INIT:節點」。解決問題;它沒有工作。誰能幫忙?謝謝。

+0

是否有package.json文件?有沒有node_modules文件夾? –

+0

你可以顯示你的Gruntfile.js和package.json嗎? – VDarricau

回答

7

看來您沒有在Gruntfile.js中加載模塊,或者您尚未安裝所有模塊。爲所有模塊嘗試npm install <module-name> --save-dev

+0

這是我的Gruntfile.js: – Brian

+0

我看不到它。你有沒有試過我說過的話? – VDarricau

+0

有node_modules文件夾,Gruntfile.js和package.json。由於代碼太多,我不能輸入Gruntfile.js和package.json的代碼。我應該安裝哪些模塊?他們是否稱爲「複製」或「醜化」?在package.json中,例如,我看到 – Brian

相關問題