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.

Missing peer dependency: ajv@>=5.0.3-beta.0

See original GitHub issue
  • Version: 15.1.1
  • Target: OS X

A recent version of electron-builder (^15.1.1) started logging peer dependency warnings on install:

npm WARN ajv-keywords@2.0.1-beta.1 requires a peer of ajv@>=5.0.3-beta.0 but none was installed.
─┬ electron-builder@15.1.1 
β”‚ β”œβ”€β”¬ 7zip-bin@2.0.4 
β”‚ β”‚ └── 7zip-bin-mac@1.0.1 
β”‚ β”œβ”€β”¬ UNMET PEER DEPENDENCY ajv@5.0.3-beta.0
β”‚ β”‚ β”œβ”€β”€ co@4.6.0 
β”‚ β”‚ └── json-stable-stringify@1.0.1 
β”‚ β”œβ”€β”€ ajv-keywords@2.0.1-beta.1 
β”‚ β”œβ”€β”€ bluebird-lst@1.0.1 
β”‚ β”œβ”€β”€ chromium-pickle-js@0.2.0 
β”‚ β”œβ”€β”€ cuint@0.2.2 
β”‚ β”œβ”€β”€ electron-builder-core@13.6.0 
β”‚ β”œβ”€β”€ electron-builder-http@15.0.1 
β”‚ β”œβ”€β”¬ electron-builder-util@15.0.1 
β”‚ β”‚ β”œβ”€β”€ ini@1.3.4 
β”‚ β”‚ β”œβ”€β”¬ node-emoji@1.5.1 
β”‚ β”‚ β”‚ └── string.prototype.codepointat@0.2.0 
β”‚ β”‚ β”œβ”€β”¬ source-map-support@0.4.11 
β”‚ β”‚ β”‚ └── source-map@0.5.6 
β”‚ β”‚ β”œβ”€β”€ stat-mode@0.2.2 
β”‚ β”‚ └─┬ tunnel-agent@0.6.0 
β”‚ β”‚   └── safe-buffer@5.0.1 
β”‚ β”œβ”€β”¬ electron-download-tf@4.0.0 
β”‚ β”‚ β”œβ”€β”€ fs-extra@2.0.0 
β”‚ β”‚ β”œβ”€β”€ minimist@1.2.0 
β”‚ β”‚ β”œβ”€β”€ path-exists@3.0.0 
β”‚ β”‚ └── sumchecker@2.0.1 
β”‚ β”œβ”€β”¬ electron-macos-sign@1.6.0 
β”‚ β”‚ └── compare-version@0.1.2 
β”‚ β”œβ”€β”¬ electron-publish@15.0.1 
β”‚ β”‚ β”œβ”€β”€ mime@1.3.4 
β”‚ β”‚ └── progress-ex@2.0.0 
β”‚ β”œβ”€β”¬ fs-extra-p@4.0.2 
β”‚ β”‚ └── fs-extra@2.0.0 
β”‚ β”œβ”€β”€ hosted-git-info@2.2.0 
β”‚ β”œβ”€β”¬ is-ci@1.0.10 
β”‚ β”‚ └── ci-info@1.0.0 
β”‚ β”œβ”€β”€ isbinaryfile@3.0.2 
β”‚ β”œβ”€β”¬ js-yaml@3.8.2 
β”‚ β”‚ β”œβ”€β”¬ argparse@1.0.9 
β”‚ β”‚ β”‚ └── sprintf-js@1.0.3 
β”‚ β”‚ └── esprima@3.1.3 
β”‚ β”œβ”€β”¬ minimatch@3.0.3 
β”‚ β”‚ └─┬ brace-expansion@1.1.6 
β”‚ β”‚   β”œβ”€β”€ balanced-match@0.4.2 
β”‚ β”‚   └── concat-map@0.0.1 
β”‚ β”œβ”€β”€ node-forge@0.7.0 
β”‚ β”œβ”€β”¬ normalize-package-data@2.3.6 
β”‚ β”‚ β”œβ”€β”¬ is-builtin-module@1.0.0 
β”‚ β”‚ β”‚ └── builtin-modules@1.1.1 
β”‚ β”‚ └─┬ validate-npm-package-license@3.0.1 
β”‚ β”‚   β”œβ”€β”¬ spdx-correct@1.0.2 
β”‚ β”‚   β”‚ └── spdx-license-ids@1.2.2 
β”‚ β”‚   └── spdx-expression-parse@1.0.4 
β”‚ β”œβ”€β”¬ parse-color@1.0.0 
β”‚ β”‚ └── color-convert@0.5.3 
β”‚ β”œβ”€β”¬ plist@2.0.1 
β”‚ β”‚ β”œβ”€β”€ base64-js@1.1.2 
β”‚ β”‚ β”œβ”€β”€ xmlbuilder@8.2.2 
β”‚ β”‚ └── xmldom@0.1.27 
β”‚ β”œβ”€β”¬ sanitize-filename@1.6.1 
β”‚ β”‚ └─┬ truncate-utf8-bytes@1.0.2 
β”‚ β”‚   └── utf8-byte-length@1.0.4 
β”‚ β”œβ”€β”€ semver@5.3.0 
β”‚ β”œβ”€β”¬ update-notifier@2.1.0 
β”‚ β”‚ β”œβ”€β”¬ boxen@1.0.0 
β”‚ β”‚ β”‚ β”œβ”€β”€ ansi-align@1.1.0 
β”‚ β”‚ β”‚ β”œβ”€β”€ camelcase@4.0.0 
β”‚ β”‚ β”‚ β”œβ”€β”€ cli-boxes@1.0.0 
β”‚ β”‚ β”‚ β”œβ”€β”¬ string-width@2.0.0 
β”‚ β”‚ β”‚ β”‚ └── is-fullwidth-code-point@2.0.0 
β”‚ β”‚ β”‚ β”œβ”€β”¬ term-size@0.1.1 
β”‚ β”‚ β”‚ β”‚ └─┬ execa@0.4.0 
β”‚ β”‚ β”‚ β”‚   β”œβ”€β”€ cross-spawn-async@2.2.5 
β”‚ β”‚ β”‚ β”‚   β”œβ”€β”€ npm-run-path@1.0.0 
β”‚ β”‚ β”‚ β”‚   β”œβ”€β”€ path-key@1.0.0 
β”‚ β”‚ β”‚ β”‚   └── strip-eof@1.0.0 
β”‚ β”‚ β”‚ └── widest-line@1.0.0 
β”‚ β”‚ β”œβ”€β”¬ configstore@3.0.0 
β”‚ β”‚ β”‚ β”œβ”€β”€ dot-prop@4.1.1 
β”‚ β”‚ β”‚ β”œβ”€β”¬ unique-string@1.0.0 
β”‚ β”‚ β”‚ β”‚ └── crypto-random-string@1.0.0 
β”‚ β”‚ β”‚ └─┬ write-file-atomic@1.3.1 
β”‚ β”‚ β”‚   └── slide@1.1.6 
β”‚ β”‚ β”œβ”€β”€ is-npm@1.0.0 
β”‚ β”‚ β”œβ”€β”¬ latest-version@3.0.0 
β”‚ β”‚ β”‚ └─┬ package-json@3.1.0 
β”‚ β”‚ β”‚   β”œβ”€β”¬ got@6.7.1 
β”‚ β”‚ β”‚   β”‚ β”œβ”€β”¬ create-error-class@3.0.2 
β”‚ β”‚ β”‚   β”‚ β”‚ └── capture-stack-trace@1.0.0 
β”‚ β”‚ β”‚   β”‚ β”œβ”€β”€ duplexer3@0.1.4 
β”‚ β”‚ β”‚   β”‚ β”œβ”€β”€ get-stream@3.0.0 
β”‚ β”‚ β”‚   β”‚ β”œβ”€β”€ is-redirect@1.0.0 
β”‚ β”‚ β”‚   β”‚ β”œβ”€β”€ is-retry-allowed@1.1.0 
β”‚ β”‚ β”‚   β”‚ β”œβ”€β”€ lowercase-keys@1.0.0 
β”‚ β”‚ β”‚   β”‚ β”œβ”€β”€ timed-out@4.0.1 
β”‚ β”‚ β”‚   β”‚ β”œβ”€β”€ unzip-response@2.0.1 
β”‚ β”‚ β”‚   β”‚ └─┬ url-parse-lax@1.0.0 
β”‚ β”‚ β”‚   β”‚   └── prepend-http@1.0.4 
β”‚ β”‚ β”‚   β”œβ”€β”€ registry-auth-token@3.1.0 
β”‚ β”‚ β”‚   └── registry-url@3.1.0 
β”‚ β”‚ β”œβ”€β”€ lazy-req@2.0.0 
β”‚ β”‚ β”œβ”€β”€ semver-diff@2.1.0 
β”‚ β”‚ └── xdg-basedir@3.0.0 
β”‚ β”œβ”€β”¬ uuid-1345@0.99.6 
β”‚ β”‚ └── macaddress@0.2.8 
β”‚ └─┬ yargs@7.0.1 
β”‚   β”œβ”€β”€ camelcase@3.0.0 
β”‚   β”œβ”€β”¬ cliui@3.2.0 
β”‚   β”‚ └── wrap-ansi@2.1.0 
β”‚   β”œβ”€β”€ decamelize@1.2.0 
β”‚   β”œβ”€β”€ get-caller-file@1.0.2 
β”‚   β”œβ”€β”¬ os-locale@1.4.0 
β”‚   β”‚ └─┬ lcid@1.0.0 
β”‚   β”‚   └── invert-kv@1.0.0 
β”‚   β”œβ”€β”¬ read-pkg-up@1.0.1 
β”‚   β”‚ β”œβ”€β”€ find-up@1.1.2 
β”‚   β”‚ └─┬ read-pkg@1.1.0 
β”‚   β”‚   β”œβ”€β”¬ load-json-file@1.1.0 
β”‚   β”‚   β”‚ └─┬ strip-bom@2.0.0 
β”‚   β”‚   β”‚   └── is-utf8@0.2.1 
β”‚   β”‚   └── path-type@1.1.0 
β”‚   β”œβ”€β”€ require-directory@2.1.1 
β”‚   β”œβ”€β”€ require-main-filename@1.0.1 
β”‚   β”œβ”€β”€ set-blocking@2.0.0 
β”‚   β”œβ”€β”¬ string-width@1.0.2 
β”‚   β”‚ β”œβ”€β”€ code-point-at@1.1.0 
β”‚   β”‚ └── is-fullwidth-code-point@1.0.0 
β”‚   β”œβ”€β”€ which-module@1.0.0 
β”‚   β”œβ”€β”€ y18n@3.2.1 
β”‚   └─┬ yargs-parser@5.0.0 
β”‚     └── camelcase@3.0.0 

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:36 (20 by maintainers)

github_iconTop GitHub Comments

25reactions
salomvarycommented, Mar 12, 2017

Because I’m from 2016 πŸ˜ƒ

10reactions
develarcommented, Mar 12, 2017

npm shrinkwrap --dev.

Why not use yarn πŸ˜ƒ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing peer dependencies - npm - Stack Overflow
You must install peer dependencies yourself. Does this mean that I need to add jquery@1.9.1 - 3 to my package.json under peerDependencies ......
Read more >
you must install peer dependencies yourself Code Example
npm WARN codelyzer@6.0.1 requires a peer of tslint@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself.
Read more >
if you don't want pnpm to fail on peer dependency issues, add ...
When configuring pnpm in a monorepo with workspaces, using hoist=false to guarantee isolation of packages from each other, and with strict peer dependencies...
Read more >
Understanding Peer Dependencies in JavaScript
When to use peerDependencies? Peer dependencies really come into play when you're developing code that will be used by others, such as pluginsΒ ......
Read more >
Peer Dependencies | Node.js
Peer Dependencies. por Domenic Denicola, 2013-02-08. Reposted from Domenic's blog with permission. Thanks! npm is awesome as a package manager.
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