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

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

About this issue

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

Most upvoted comments

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.