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.

'opencollective' is not recognized as an internal or external command, operable program or batch file.

See original GitHub issue

I think it’s awesome to be opting in to opencollective, but while installing level, I ran into things that weren’t very user-friendly.

First, I had to install it under an administrator powershell (or command prompt I suppose would work). I don’t recall ever having to do that on a project-level installation for node. Once I’d done that, I got the error that opencollective wasn’t recognized as a program. So I had to npm i -g opencollective just to be able to be told “thanks for using level! please donate!”

It seems a little counterintuitive to require a global installation of a module just to request donations after the package is installed - otherwise the package just doesn’t install because it fails on postinstall.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
mdanial07commented, Nov 11, 2019

Install npm i -g opencollective. Then install npm install --save opencollective-postinstall

its work for me

0reactions
juliangrubercommented, Mar 16, 2018

@ralphtheninja is right, npm isn’t tryint to install this tool locally for you, it will install it into ./node_modules/.bin/ and call it from there.

You see, this is the particular file that npm complains about not being able to rename: D:\home\devel\enmap-level\node_modules\wrappy\package.json.

We can’t help debug npm setups here unfortunately, please create an issue at https://github.com/npm/npm.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm install from mac project creates command not found issue
The '.' is not recognized as an internal or external command error usually has something to do when the computer can't find the...
Read more >
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 >
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. 'true' ...
Read more >
opencollective-postinstall | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
Getting Started — Eleventy
Installing Eleventy into our project requires a package.json file. Let's create it with npm init . The -y parameter tells npm to skip...
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