npm vs npx - What’s the Difference?

  Рет қаралды 34,020

Neutron Dev

Neutron Dev

Күн бұрын

Пікірлер: 23
@NeutronDev
@NeutronDev 3 жыл бұрын
⏲️ Timestamps ⏲️ 00:00 - Intro 00:35 - What is NPM? 03:06 - What is NPX? 03:50 - Run a locally installed package easily 04:30 - Execute packages without installing them 05:16 - Run code directly from GitHub 06:09 - Test different package versions 08:15 - Final words
@VinceAggrippino
@VinceAggrippino 3 жыл бұрын
4:52 "npx just ran a script without installing it on my machine", but the screen says "installed 41 in 2.67s". On my system, the same command says prompts me to install the package. Then I can see it installed in ~/.npm/_npx. I think there's a misunderstanding here. It must be a common one, because this is the second place I've seen that claim. Update: Confirmed by the documentation: www.npmjs.com/package/npx npx will install the package on your system if it's not already installed.
@NeutronDev
@NeutronDev 3 жыл бұрын
Thanks for pointing that out! I've been doing some digging and I tried invoking several packages and gists that weren't previously installed on my machine and here's what I've found: While invoking a package/gist, npx creates a temporary folder in C:\Users\\AppData\Roaming pm-cache\_npx (Windows 10) and it deletes it after the execution. So basically it does install the package on your local machine but only while executing the package and then it proceeds to delete it. My wording in the video isn't very correct in this context, indeed. If you have more information about this matter, please do let me know!
@pedrocxbx
@pedrocxbx 2 жыл бұрын
@@NeutronDev Thanks for the explanation, I had the same doubt
@edwinxvelez
@edwinxvelez 3 жыл бұрын
Easy explanation. Good job.
@NeutronDev
@NeutronDev 3 жыл бұрын
Thank you, Edwin! I'm glad you enjoyed it!
@samuelsurgeon8971
@samuelsurgeon8971 3 жыл бұрын
Such a great explanation! Thank you!
@NeutronDev
@NeutronDev 3 жыл бұрын
Glad to help!💙
@pedrocxbx
@pedrocxbx 2 жыл бұрын
Great explanation, thanks for sharing!
@dziugasbizokas5359
@dziugasbizokas5359 2 жыл бұрын
Thanks man!
@TheGameIsOverCy
@TheGameIsOverCy 3 жыл бұрын
Nice video ! Thank you !
@NeutronDev
@NeutronDev 3 жыл бұрын
Glad you liked it!
@pelinuxchannel3457
@pelinuxchannel3457 2 жыл бұрын
Great, awesome!
@NeutronDev
@NeutronDev 2 жыл бұрын
💪😎
@icedev8078
@icedev8078 Жыл бұрын
Thanks 😊
@NeutronDev
@NeutronDev Жыл бұрын
You're welcome 💜
@odaline8629
@odaline8629 3 жыл бұрын
❤️❤️
@cardioprint
@cardioprint 11 ай бұрын
cowsay wow 😆😅
@NeutronDev
@NeutronDev 11 ай бұрын
🤭
@YeatesBoyd
@YeatesBoyd 3 ай бұрын
Lewis Matthew Young Jeffrey Hernandez Brenda
@NeutronDev
@NeutronDev 3 ай бұрын
Johnny Michael Gutierrez
How JavaScript package managers work: npm vs. yarn vs. pnpm vs. npx
11:40
Software Developer Diaries
Рет қаралды 8 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 220 М.
Understanding Package-lock.Json | Javascript Tutorial
12:50
The Code Creative
Рет қаралды 8 М.
npm for absolute beginners
15:32
Kevin Powell
Рет қаралды 21 М.
#5. React для НАЧИНАЮЩИХ (npm, npx)
21:25
Какие-то уроки
Рет қаралды 4 М.
What is NPM, and why do we need it? | Tutorial for beginners
14:27
Coder Coder
Рет қаралды 335 М.
Google’s Quantum Chip: Did We Just Tap Into Parallel Universes?
9:34
Build AWESOME CLIs With Click in Python
25:12
ArjanCodes
Рет қаралды 48 М.
Deno vs. Node.js vs Bun: Performance Comparison
12:28
Anton Putra
Рет қаралды 76 М.
NPM Crash Course
42:03
Traversy Media
Рет қаралды 329 М.
The Svelte 5 Guide For Beginners
21:41
Joy of Code
Рет қаралды 35 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН