我通過「npm i」安裝grunt時遇到問題。我也嘗試過0.4.5,但同樣的錯誤。有關發生什麼的想法?發生此錯誤「UNMET PEER DEPENDENCY [email protected]」
幫助,這些都是我的依賴關係:
"dependencies": {
"arrify": "1.0.1",
"as-jqplot": "1.0.8",
"babel-runtime": "6.9.2",
"bootstrap": "3.3.6",
"bootstrap-slider": "9.1.1",
"chart.js": "1.0.2",
"chunk": "0.0.2",
"clone": "1.0.2",
"co": "4.6.0",
"co-body": "4.2.0",
"co-pg": "2.0.0",
"expect": "1.20.2",
"font-awesome": "4.6.3",
"github": "2.2.0",
"grunt": "1.0.1",
"grunt-babel": "6.0.0",
"grunt-bump": "0.8.0",
"grunt-cli": "1.2.0",
"grunt-contrib-concat": "1.0.1",
"grunt-contrib-copy": "1.0.0",
"grunt-contrib-imagemin": "1.0.1",
"grunt-contrib-less": "1.3.0",
"grunt-contrib-uglify": "2.0.0",
"grunt-contrib-watch": "1.0.0",
"grunt-eslint": "19.0.0",
"grunt-jsonlint": "1.1.0",
"grunt-plato": "1.2.1",
"grunt-shell": "1.3.0",
"jquery": "3.1.0",
"koa": "1.2.1",
"koa-bodyparser": "2.2.0",
"koa-compress": "1.0.9",
"koa-cors": "0.0.16",
"koa-jade": "2.1.0",
"koa-logger": "1.3.0",
"koa-router": "5.4.0",
"koa-sql-select": "1.1.1",
"koa-static-folder": "0.1.6",
"koa-useragent": "0.1.4",
"load-grunt-tasks": "3.5.0",
"mandrill-api": "1.0.45",
"md5": "2.1.0",
"moment": "2.14.1",
"nconf": "0.8.4",
"node-noop": "1.0.0",
"node-persist": "0.0.11",
"nodemon": "1.9.2",
"pg": "6.0.3",
"platform": "1.3.1",
"plato": "1.6.0",
"throng": "4.0.0",
"time-grunt": "1.4.0",
"typeahead.js": "0.11.1",
"validator": "5.5.0"
},
"devDependencies": {
"grunt-aws": "0.6.2"
}
即使有錯誤,咕嚕安裝。但是,這個錯誤使得heroku失敗,整合和部署。
你發佈實際的錯誤輸出是非常重要的。你的依賴清單看起來是正確的(儘管其中的許多應該真的在'devDependencies',而不是'dependencies'中),所以我首先要用'rm -rf node_modules && npm cache clean && npm install'進行全新安裝。如果這不起作用,請嘗試'npm install --loglevel verbose'並向我們顯示輸出。 –
這是在heroku部署。在每次安裝我的應用程序之前,我已經設置了緩存清理。它是heroku,所以它是每個部署的新容器。當我在我自己的電腦上嘗試相同的時候,沒有問題。它只在生產中。如果不明白爲什麼,現在就開始工作。完成神祕的 – MathKimRobin