Skip to content

[BUG] npx <gist> leads to command not found #5132

Closed
@kentcdodds

Description

@kentcdodds

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

I'm trying to run:

npx https://gist.github.com/kentcdodds/bb452ffe53a5caa3600197e1d8005733

However I get:

sh: workshop-setup: command not found

For context, I use this for step of my workshop repositories. It checks that learner's machines have the correct versions of things installed, installs dependencies, and runs validation to make sure things were installed correctly. This worked before I updated to npx v8.

Expected Behavior

I expect the bin of the gist's package.json to be run as previous versions of npx as recent as v7.

Steps To Reproduce

  1. In any environment
  2. With any config
  3. Run npx https://gist.github.com/kentcdodds/bb452ffe53a5caa3600197e1d8005733
  4. See the above error

Environment

  • npm: latest
  • Node.js: latest
  • OS Name: any
  • System Model Name: any
  • npm config: any

(All my students are running into this. Even my CI: https://github.com/kentcdodds/react-fundamentals/runs/6989184285?check_suite_focus=true)

Metadata

Metadata

Assignees

Labels

Bugthing that needs fixingPriority 1high priority issueRelease 8.xwork is associated with a specific npm 8 releasecmd:execrelated to `npx`ws:libnpmexecRelated to the libnpmexec workspace

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions