gpt4 book ai didi

javascript - npm(和 Node )最新版本的未满足的依赖关系

转载 作者:太空宇宙 更新时间:2023-11-04 00:58:35 25 4
gpt4 key购买 nike

我有最新版本的 npm 和 node。我有这个错误/警告:

$ npm --version
2.4.1

$ node --version
v0.10.36

$ npm install

> my_project@0.0.0 preinstall /Users/alex/Documents/projects/ruby/my_project
> script/gem_npm install

npm WARN package.json karma-ie-launcher@0.1.5 No README data
npm WARN package.json karma-qunit@0.1.4 No README data
npm WARN unmet dependency /Users/alex/Documents/projects/ruby/my_project/node_modules/node-sass requires mkdirp@'~0.3.5' but will load
npm WARN unmet dependency /Users/alex/Documents/projects/ruby/my_project/node_modules/mkdirp,
npm WARN unmet dependency which is version 0.5.0
npm WARN unmet dependency /Users/alex/Documents/projects/ruby/my_project/node_modules/testem requires js-yaml@'~0.3.5' but will load
npm WARN unmet dependency /Users/alex/Documents/projects/ruby/my_project/node_modules/js-yaml,
npm WARN unmet dependency which is version 3.2.5
npm WARN unmet dependency /Users/alex/Documents/projects/ruby/my_project/node_modules/testem requires glob@'~3.1.21' but will load
npm WARN unmet dependency /Users/alex/Documents/projects/ruby/my_project/node_modules/glob,
npm WARN unmet dependency which is version 3.2.11
npm WARN unmet dependency /Users/alex/Documents/projects/ruby/my_project/node_modules/karma requires glob@'~3.1.21' but will load
npm WARN unmet dependency /Users/alex/Documents/projects/ruby/my_project/node_modules/glob,
npm WARN unmet dependency which is version 3.2.11
npm WARN unmet dependency /Users/alex/Documents/projects/ruby/my_project/node_modules/karma requires lodash@'~1.1' but will load
npm WARN unmet dependency /Users/alex/Documents/projects/ruby/my_project/node_modules/lodash,
npm WARN unmet dependency which is version 2.4.1
npm WARN unmet dependency /Users/alex/Documents/projects/ruby/my_project/node_modules/karma-coffee-preprocessor/node_modules/coffee-script requires mkdirp@'~0.3.5' but will load
npm WARN unmet dependency /Users/alex/Documents/projects/ruby/my_project/node_modules/mkdirp,
npm WARN unmet dependency which is version 0.5.0

如何解决这些问题?

最佳答案

删除node_modules文件夹

rm -rf node_modules/

再次运行npm install

关于javascript - npm(和 Node )最新版本的未满足的依赖关系,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28315040/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com