与lodash @' ~2.4.1'有什么关系?

时间:2015-01-03 16:18:41

标签: sails.js waterline

试图安装一些模块并发现以下警告。试图根据其投诉安装lodash2.4.1但没有解决问题。

$ npm install --save passport
npm WARN unmet dependency /Users/windchime/Development/moomu/node_modules/sails-            disk/node_modules/waterline-criteria requires lodash@'~2.4.1' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /Users/windchime/Development/moomu/node_modules/sails-disk/node_modules/waterline-cursor requires lodash@'~2.4.1' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
passport@0.2.1 node_modules/passport
├── pause@0.0.1
└── passport-strategy@1.0.0

$ npm install --save lodash@'~2.4.1'
npm WARN unmet dependency /Users/windchime/Development/moomu/node_modules/sails-disk/node_modules/waterline-criteria requires lodash@'~2.4.1' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /Users/windchime/Development/moomu/node_modules/sails-disk/node_modules/waterline-cursor requires lodash@'~2.4.1' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
lodash@2.4.1 node_modules/lodash

$ npm install
npm WARN unmet dependency /Users/windchime/Development/moomu/node_modules/sails-disk/node_modules/waterline-criteria requires lodash@'~2.4.1' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /Users/windchime/Development/moomu/node_modules/sails-disk/node_modules/waterline-cursor requires lodash@'~2.4.1' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined

1 个答案:

答案 0 :(得分:7)

根据上面发布的评论,重新安装sails-disk解决了这个问题。