Skip to content

Instantly share code, notes, and snippets.

@zkat
Last active September 26, 2024 10:33
Show Gist options
  • Save zkat/4bc19503fe9e9309e2bfaa2c58074d32 to your computer and use it in GitHub Desktop.
Save zkat/4bc19503fe9e9309e2bfaa2c58074d32 to your computer and use it in GitHub Desktop.
npx is cool

Hi!

try passing the URL for this gist to npx.

#!/usr/bin/env node
console.log('yay gist')
{"name": "npx-is-cool", "version": "0.0.0", "bin": "./index.js"}
@ADGAP-LXY
Copy link

i like it!

@viocha
Copy link

viocha commented Dec 4, 2021

npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -4058
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t https://gist.github.com/4bc19503fe9e9309e2bfaa2c58074d32.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

@ed3899
Copy link

ed3899 commented Feb 25, 2022

Eduardo was here!

@TechStudent10
Copy link

const npx = "🔥🔥🔥"

@xgqfrms
Copy link

xgqfrms commented May 8, 2022

npx & gist & npm package

# execute gist code `bin`

$ npx https://gist.github.com/xgqfrms/1981c08fcb7e09056e1c5d9192f272c8

image

@wuuconix
Copy link

npx so cool

@guda-art
Copy link

guda-art commented May 4, 2023

npx danger? such as ?

@Frantisek82
Copy link

Working!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment