question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bookshelf@0.10.3 requires a peer of knex@>=0.6.10 <0.13.0 but none was installed.

See original GitHub issue

Installing bookshelf from npm throws a warning about knex versions:

$ npm install --save bookshelf

> bookshelf@0.10.3 postinstall /home/me/myproj/server/node_modules/bookshelf
> node ./scripts/build.js lib "npm run build"

myproj@0.1.0 /home/me/myproj/server
β”œβ”€β”¬ bookshelf@0.10.3 
β”‚ β”œβ”€β”¬ babel-runtime@6.23.0 
β”‚ β”‚ β”œβ”€β”€ core-js@2.4.1 
β”‚ β”‚ └── regenerator-runtime@0.10.5 
β”‚ β”œβ”€β”€ bluebird@3.5.0 
β”‚ β”œβ”€β”¬ chalk@1.1.3 
β”‚ β”‚ β”œβ”€β”€ ansi-styles@2.2.1 
β”‚ β”‚ β”œβ”€β”€ escape-string-regexp@1.0.5 
β”‚ β”‚ β”œβ”€β”¬ has-ansi@2.0.0 
β”‚ β”‚ β”‚ └── ansi-regex@2.1.1 
β”‚ β”‚ β”œβ”€β”€ strip-ansi@3.0.1 
β”‚ β”‚ └── supports-color@2.0.0 
β”‚ β”œβ”€β”€ create-error@0.3.1 
β”‚ β”œβ”€β”€ inflection@1.12.0 
β”‚ β”œβ”€β”€ inherits@2.0.3 
β”‚ └── lodash@4.17.4 
└── UNMET PEER DEPENDENCY knex@>=0.6.10 <0.13.0

npm WARN bookshelf@0.10.3 requires a peer of knex@>=0.6.10 <0.13.0 but none was installed.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:10
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
gustblimacommented, May 16, 2017

solved using npm install knex@0.12.0 --save-exact

2reactions
sgraham785commented, Jun 18, 2017

can the knex peer dependency version be updated? or will that break?

current:

"peerDependencies": {
    "knex": ">=0.6.10 <0.13.0"
  }

suggested:

"peerDependencies": {
    "knex": ">=0.6.10 <=0.13.0"
  }

haven’t tested yet but may submit PR

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm WARN ... requires a peer of ... but none is installed. You ...
"A requires a peer of B but none was installed". Consider it as "A requires one of B's peers but that peer was...
Read more >
JavaScript : npm WARN ... requires a peer of ... but ... - YouTube
JavaScript : npm WARN ... requires a peer of ... but none is installed. You must install peer dependencies yourself [ Gift :...
Read more >
Installing Node.js application dependencies on Plesk for Linux ...
0 but none is installed. You must install peer dependencies yourself. Cause. Expected behavior - the automatic installation of the peer ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found