cspotcode / cspotcode/workaround-broken-npm-prepack-behavior

sh: workaround-broken-npm-prepack-behavior: command not found

Open
#1 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Hello!

I believe I've followed the instructions exactly, but when I do `NODE_ENV=development npm install --include=dev -g "https://github.com/backtrace-labs/backtrace-morgue.git#cstrahan/test` (the `NODE_ENV=development` and `--include=dev` is out of desperation 😅), I get:

```
npm error npm error sh: workaround-broken-npm-prepack-behavior: command not found
```

I can't seem to figure out an incantation that works.

In my `"prepare"` script, I tried a couple things to debug.

First I dumped the `$PATH`, here are the paths pointing into the npm cache:

```
/Users/charles.strahan/.npm/_cacache/tmp/git-clonegzBH88/node_modules/.bin
/Users/charles.strahan/.npm/_cacache/tmp/node_modules/.bin
/Users/charles.strahan/.npm/_cacache/node_modules/.bin
/Users/charles.strahan/.npm/node_modules/.bin
/Users/charles.strahan/node_modules/.bin
/Users/node_modules/.bin
/node_modules/.bin
/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin
```

I did a `cp -r . ~/npm-cache` so I could look at what's in the directory before `npm` can delete it. All it contains is the source code, there isn't a `node_modules` directory present.

I would think `workaround-broken-npm-prepack-behavior` should, in theory, be in `/Users/charles.strahan/.npm/_cacache/tmp/git-clonegzBH88/node_modules/.bin` (for this build), yes? But there isn't a `node_modules` there.

Any ideas? Am I holding `npm install` wrong?

Any help would be greatly appreciated!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.