当前位置: 首页 > 知识库问答 >
问题:

npm依赖项不满足(即使它们应该满足?)

嵇弘新
2023-03-14

我觉得我一定忽略了什么。

76 error Windows_NT 6.1.7601
77 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
78 error node v4.4.2
79 error npm  v2.15.0
80 error code EPEERINVALID
81 error peerinvalid The package grunt@0.4.2 does not satisfy its siblings' peerDependencies requirements!
81 error peerinvalid Peer grunt-concurrent@0.4.3 wants grunt@~0.4.0
81 error peerinvalid Peer grunt-contrib-sass@0.8.1 wants grunt@>=0.4.0
81 error peerinvalid Peer grunt-autoprefixer@2.0.0 wants grunt@~0.4.2
81 error peerinvalid Peer grunt-webfont@0.5.4 wants grunt@~0.4.0
81 error peerinvalid Peer grunt-purifycss@0.1.1 wants grunt@~0.4.5
82 verbose exit [ 1, true ]
    null

Grunt@0.4.2应该匹配所有这些依赖项,但npm说它不匹配,安装失败。我是不是忽略了什么?

根据请求,我的package.json文件:

{
  "name": "glasses-1",
  "siteUrl": "http://www.glasses.com/",
  "version": "0.0.1",
  "dependencies": {
    "adaptivejs": "1.3.0",
    "connect": "2.3.4",
    "grunt": "0.4.2",
    "grunt-concurrent": "0.4.3",
    "mocha": "1.14.0",
    "chai": "1.9.0",
    "lodash": "~2.4.1",
    "grunt-contrib-sass": "0.8.1",
    "grunt-autoprefixer": "2.0.0"
  },
  "devDependencies": {
    "grunt": "^0.4.5",
    "grunt-purifycss": "^0.1.0",
    "grunt-sass": "^1.1.0",
    "grunt-webfont": "^0.5.1",
    "gulp-sass": "^2.1.0"
  },
  "description": "This repository contains the code for the glasses-1 Adaptive.js project.",
  "main": "Gruntfile.js",
  "directories": {
    "test": "tests"
  },
  "scripts": {
    "test": "mocha"
  },
  "author": "",
  "license": "ISC"
}

共有1个答案

越勇锐
2023-03-14

81错误peerinvalid Peer grunt-purifycss@0.1.1想要grunt@~0.4.5从最后第二行开始

所以你需要咕噜@0.4.5而不是0.4.2

 类似资料:
  • 我正在尝试实现一个quarkus-extension用于授权/认证。我使用现有的< code > quar kus-small rye-jwt-abx -扩展作为例子。一切似乎都很好,除了我不能注入< code>Principal: 我得到了 对 java.security.主体和限定符类型未满足的依赖关系 [@Default] 注入

  • org.springframework.beans.factory.unsatisfiedDependencyException:创建名为“com.sonos.arcor.service.AddressServiceTest”的bean时出错:通过字段“service”表示的未满足的依赖项;嵌套异常为org.springframework.beans.factory.noSuchBeanDefin

  • 我正在尝试使用cucumber框架与selenium和appium,但在执行cucumber特性时,我得到以下异常: @CucumberOptions(features={“src//test//java//feature”},glue={“pages”},plugin={“pretty”,“html:target/cucumber”},tags={“@web”,“@test”,“@appium”

  • 我正在尝试创建一个带有Wildfly和数据库连接的EJB Web项目,以持久化我的类“article”。但当我启动我的应用程序时,我得到了错误 包装服务; ArticleDaoImpl

  • java.lang.noClassDefoundError:scala/collection/gentraversableonce$class at kafka.utils.pool.(pool.scala:28)~[kafka2.10-0.8.1.1.jar:na] at kafka.consumer.FetchRequestandResponseStatsRegistry$.~[kafka2.