A brief example on how to use npx
to run gist based scripts.
Read the article here https://neutrondev.com/npm-vs-npx-whats-the-difference/ or watch it on YouTube https://www.youtube.com/watch?v=fSHWc8RTJug
A brief example on how to use npx
to run gist based scripts.
Read the article here https://neutrondev.com/npm-vs-npx-whats-the-difference/ or watch it on YouTube https://www.youtube.com/watch?v=fSHWc8RTJug
#!/usr/bin/env node | |
console.log("I was executed from a gist inside the terminal with npx!"); |
{ | |
"name": "run-js-with-npx-from-gist", | |
"version": "1.0.0", | |
"bin": "./index.js" | |
} |
I've read your article in russian from here
Thanks!
thanks!!
Thanks for the article!!
very nice, thanks
Thanks, @Temi-t, @Sadvakasov, @jtello, @bennythejudge, @fesantossp, @ydjaghloul! 🎉
Super clear explanation and very helpful, thanks!
Thanks, @ashiquem!
I've also created a video on this subject if you prefer this format. You can check it out here:
Amazing!!! I tried with my gist and it is working like a charm!
Thanks sharing about npx ~ Here I have a problem ,the time when I run "npx https://gist.github.com/Tynael/0861d31ea17796c9a5b4a0162eb3c1e8" ,my terminal show below words "[..................] - rollbackFailedOptional: verb npm-session e08d5c3184bda02a".I want to konw what happened.
Looking forward to your recovery~
Hi @codcarry!
That is a npm
specific issue that can have many different causes of malfunction.
I suggest having a look on Google and see what works for you: https://www.google.com/search?q=-+rollbackFailedOptional%3A+verb+npm-session&sourceid=chrome&ie=UTF-8
Thanks very much,I'll try to resolve this.
Hi @codcarry! That is a
npm
specific issue that can have many different causes of malfunction. I suggest having a look on Google and see what it works for you: https://www.google.com/search?q=-+rollbackFailedOptional%3A+verb+npm-session&sourceid=chrome&ie=UTF-8
Thanks very much,I'll try to resolve this.
@Tynael Thanks for the article 👍
Very handful article, TY 👍
Thanks. This was helpful