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.

`npm install` fails for react-final-form@3.1.1

See original GitHub issue

Are you submitting a bug report or a feature request?

bug report

What is the current behavior?

npm install react-final-form fails for version 3.1.1 npm install react-final-form works for version 3.1.0

Error message

npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! react-final-form@3.1.1 postinstall: `opencollective postinstall`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the react-final-form@3.1.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/breanna_bunge/.npm/_logs/2018-02-27T22_59_06_062Z-debug.log

Believe the issue is that opencollective is a dev dependency and so I don’t have that command on my system when I install react-final-form.

https://github.com/final-form/react-final-form/pull/149#issuecomment-369059500

What is the expected behavior?

npm install react-final-form installs successfully

Sandbox Link

N/A

What’s your environment?

react-final-form@3.1.1 npm version: 5.6.0 node version: v8.9.1

Other information

Post install script introduced by this PR: https://github.com/final-form/react-final-form/pull/149

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kofcommented, Feb 28, 2018

Just got another idea, not sure it is good, also would only work with client packages: print into browser console in dev mode that info 😃 also doesn’t scale if every library does that, on the other hand not that many packages look for support.

0reactions
lock[bot]commented, Feb 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve npm install error “npm ERR! code 1”
If your Node.js version is very recent, try downgrading. The stable version 14.16.1 worked.
Read more >
Common errors | npm Docs
You are trying to install on a drive that either has no space, or has no permission to write. Free some disk space...
Read more >
Resolving EACCES permissions errors when installing ...
Reinstall npm with a node version manager. This is the best way to avoid permissions issues. To reinstall npm with a node version...
Read more >
npm-install-all
This is a npm module to install all dependent npm packages for a particular file or folder or a project and save it...
Read more >
Tip: Click on a version number to view a previous ... - npm
a package manager for JavaScript. Latest version: 9.2.0, last published: 21 days ago. Start using npm in your project by running `npm i...
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