Я пытаюсь создать свою черновую сборку, но застрял в следующее сообщение об ошибкеПакет хрюкать не удовлетворяет требованиям peerDependencies своих братьев и сестер
npm WARN package.json Dependency 'grunt' exists in both dependencies and devDependencies, using '[email protected]~0.4.2' from dependencies
npm ERR! Darwin 13.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package grunt does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants [email protected]~0.4.0
npm ERR! peerinvalid Peer [email protected] wants [email protected]~0.4.0
npm ERR! peerinvalid Peer [email protected] wants [email protected]~0.4.1
npm ERR! peerinvalid Peer [email protected] wants [email protected]~0.4.0
npm ERR! peerinvalid Peer [email protected] wants [email protected]~0.4.1
npm ERR! peerinvalid Peer [email protected].0 wants [email protected]~0.4.5
npm ERR! peerinvalid Peer [email protected] wants [email protected]>=0.4.0
npm ERR! peerinvalid Peer [email protected] wants [email protected]~0.4
Как here упоминалось, я удалил мой узел, НПМ и хрюкать и переустанавливать их, но все еще сталкиваются с такой же проблемой?
Любая идея?
Мои зависимости JSON являются:
"dependencies": {
"grunt": "~0.4.2",
"grunt-contrib-requirejs": "~0.4.1",
"grunt-config": "~0.1.4",
"grunt-string-replace": "~0.2.7",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-cssmin": "~0.10.0"
},
"devDependencies": {
"grunt": "0.4.2",
"grunt-cli": "0.1.13",
"grunt-contrib-jshint": ">0.8.0",
"grunt-contrib-uglify": ">0.3.2",
"load-grunt-tasks": ">=0.3.0",
"requirejs": ">=2.1.10",
"grunt-exec": "~0.4.5"
}
То же самое работает нормально для моего коллеги.
-g должно быть в конце или команда не работает –
Также спасибо за ваш совет! –
@ osiris355 приветствуется, пожалуйста, проверьте https://docs.npmjs.com/getting-started/installing-npm- пакеты в глобальном масштабе –