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.

Installing fails with "opencollective-postinstall: command not found"

See original GitHub issue

Just tried to install node-cron from npm, but couldn’t. Here’s the complete console output:

npm i node-cron
> node-cron@2.0.2 postinstall /Users/johndoe/dev/home/home-server-nodejs/node_modules/node-cron
> opencollective-postinstall

sh: opencollective-postinstall: command not found

npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! node-cron@2.0.2 postinstall: `opencollective-postinstall`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the node-cron@2.0.2 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!     /Users/johndoe/.npm/_logs/2018-10-09T20_27_48_949Z-debug.log

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:10
  • Comments:19 (3 by maintainers)

github_iconTop GitHub Comments

12reactions
Sludercommented, Feb 5, 2019

Still seems to be an issue in v2.0.3

npm ERR! node-cron@2.0.3 postinstall: opencollective-postinstall
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the node-cron@2.0.3 postinstall script.
1reaction
chrisEffcommented, Oct 9, 2018

Been able to work around it by manually installing opencollective-postinstall first. So I guess it’s just missing in your dependencies.

Read more comments on GitHub >

github_iconTop Results From Across the Web

opencollective-postinstall - npm
Lightweight npm postinstall message to invite people to donate to your collective. Latest version: 2.0.3, last published: 3 years ago.
Read more >
npm install PATH for postinstall scripts on Jenkins
sh: 1: opencollective: not found npm WARN optional SKIPPING OPTIONAL ... Failed at the commitizen@2.10.1 postinstall script. npm ERR!
Read more >
opencollective-postinstall | Yarn - Package Manager
Lightweight npm postinstall message to invite people to donate to your collective. opencollective ... npm install --save opencollective-postinstall.
Read more >
Installing fails on Windows #278 - Issuehunt
npm fails with the following message: 'opencollective-postinstall' is not recognized as an internal or external command, operable program or batch file.
Read more >
Opencollective-postinstall NPM
Installation. npm install --save opencollective-postinstall. And in your package.json add: { ..
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