Node JS Tutorial for Beginners #21 - The package.json File

  Рет қаралды 162,794

Net Ninja

Net Ninja

Күн бұрын

Пікірлер: 104
@PrabhuCP19
@PrabhuCP19 6 жыл бұрын
Accidentally i discovered your youtube tutorials. You are the greatest tutor as far as i know. The best of the best. Glad that accident happened. After 19 years of IT industry experience, this year i am venturing into the Front End, Backend domain. And your webtutorials are the best.
@adidasP4
@adidasP4 8 жыл бұрын
For the amount of effort you put into this channel you deserve lots more subscribers
@NetNinja
@NetNinja 8 жыл бұрын
Thanks so much :). Really glad you like!
@adidasP4
@adidasP4 8 жыл бұрын
+The Net Ninja I learnt a lot from you, keep it up
@tomergueta9125
@tomergueta9125 8 жыл бұрын
Agreed! Well done.
@abdul-hameedbadrudeenadewu9806
@abdul-hameedbadrudeenadewu9806 2 жыл бұрын
You're really doing a great job here man. I'm very grateful
@BigBossPapaPimp
@BigBossPapaPimp 7 жыл бұрын
These are by far the best node tutorials on the web.
@mulscoding
@mulscoding 3 жыл бұрын
The best explanation on what package.json and dependancies are.
@therealkayode
@therealkayode 3 жыл бұрын
Love your sense of humor bro. Thanks for the insight!
@forrestcarlton3065
@forrestcarlton3065 7 жыл бұрын
I've been using express only by knowing "How", not "Why". You have helped me figure out the "Why", my good sir... I never knew that the npm install command was installing dependencies, so thanks for that!
@RuggieroGuida
@RuggieroGuida 6 жыл бұрын
Amazing series of tutorials on node.js. Great work!
@ijharansari2617
@ijharansari2617 6 жыл бұрын
I am glad Net ninja exist. Otherwise i would never have cleared my doubts. I am proud of you.
@AlbaAmara
@AlbaAmara 7 жыл бұрын
The install and uninstall do not work the same way anymore. In order to uninstall without removing the dependencies I need to run this command "npm uninstall express --no-save"
@AlbaAmara
@AlbaAmara 7 жыл бұрын
could it be that we were using different npm version? I am using npm version 5.0.3
@onurcoskun3942
@onurcoskun3942 7 жыл бұрын
thank you, i was thinking that why my dependencies disappear when just uninstall :D
@jos3008
@jos3008 5 жыл бұрын
why i cant delete my modules. ive tried using npm uninstall express & npm uninstall express --no-save but the module is remain there, along with the file. like so many
@shadmanmartinpiyal4057
@shadmanmartinpiyal4057 4 жыл бұрын
@@jos3008 If you use "npm uninstall express" your dependencies property of the package.json file will be empty. Then if you use "npm uninstall express -no-save" , it will be alright. I am using node v12.16.3
@praveenpoonja95
@praveenpoonja95 3 жыл бұрын
Without -save flag the npm package still be added to package.json. so what is the use of the flag when we can use --no-save to retain it
@Marv3Lthe1
@Marv3Lthe1 4 жыл бұрын
Since last two tutorials, express has been installed and uninstalled several times. meanwhile Express: Am I a joke to you?
@samantha6670
@samantha6670 3 жыл бұрын
I really like how you explain. Thank you Shauwn.
@CAPS_AMERICA
@CAPS_AMERICA 3 жыл бұрын
C'mon guys, 135k views but only 1.9k likes? Where is the love? Shaun's free tutorials deserve more likes!!!
@uzair004
@uzair004 4 жыл бұрын
update: you don't have to specify -save flag in latest version of npm (5.0 & above). all modules are automatically added as dependency in package.json file.
@casual_gaming_5
@casual_gaming_5 2 жыл бұрын
but it also removes it after uninstall
@agnesnduta5924
@agnesnduta5924 4 жыл бұрын
Thanks for the video. The steps are clear and easy to follow.
@wpfbeginner
@wpfbeginner 6 жыл бұрын
Excellent tutorials! You have done a great job and have put in lot of efforts. Thanks
@Warsoulxx
@Warsoulxx 8 жыл бұрын
only 485 views? you are doing awesome job explaining, im currently starting to learn nodejs and your videos are really good for starters
@varunsr24
@varunsr24 6 жыл бұрын
43k views now :)
@gopalji44
@gopalji44 6 жыл бұрын
51322 views now date2013-08-13
@ridl27
@ridl27 6 жыл бұрын
62 821, 2018-12-10
@salmamehanny4030
@salmamehanny4030 6 жыл бұрын
69,209 views now
@jos3008
@jos3008 5 жыл бұрын
83.361, 2019-07-17
@darwinpose1195
@darwinpose1195 7 жыл бұрын
I never Thought that I will learn that package.json because I've always see that file whenever I install some library :))
@jojojawjaw
@jojojawjaw 7 жыл бұрын
THANK YOU SO FUCKING MUCH! this really cleared out a lot of shit for me, I had no idea how the package.json file worked exactly, since the trainers in the coding bootcamp I went to, went over this real quick, and started teaching us with Express without any Node background, and I didn't bother to go study about it extensively which left me with a very minimal knowledge. Your videos are great help.
@mwmayerle
@mwmayerle 7 жыл бұрын
Hey just an FYI I had to create the package.json file before I could install Express, but I'm on Ubuntu and it's 2017 so that might be why. I finished a bootcamp recently that focused on Ruby/Rails and I gotta say your videos for Node.js are pretty great. Thanks!
@koustubhmuktibodh4901
@koustubhmuktibodh4901 6 жыл бұрын
Very good tutorials yaar. It has every content
@simpsot_
@simpsot_ 7 жыл бұрын
dude.....this isnt making much sense....as to how you dont have more views!!! you are an amazing teacher! please stay active!
@nadiak4633
@nadiak4633 7 жыл бұрын
you're superhit! your awesome tutorials helped me to understand many core principles that seemed to be confusing before. Thank you!
@NetNinja
@NetNinja 7 жыл бұрын
Glad you like them! :)
@rameshchilla1741
@rameshchilla1741 5 жыл бұрын
Excellent thank you so much this video helped me alot
@mufid4177
@mufid4177 6 жыл бұрын
this video is very helpful. thanks for making node js easy for me
@marianivailov7319
@marianivailov7319 4 жыл бұрын
Thanks, you are awesome!
@sintatri8847
@sintatri8847 4 жыл бұрын
I like it when you say below xD
@mmustafakhan4693
@mmustafakhan4693 4 жыл бұрын
First of all, Thank you so much :) for such wonderful interactive and amazing and easy videos. believe me or not but I can feel a formidable change in my approach towards programming in general. however, presently in "Node JS Tutorial for Beginners #21 - The package.json File" If I'm uninstalling any package it is also removing the information from the package.json file? can anyone assist me?
@abdel-rahmangad3368
@abdel-rahmangad3368 6 жыл бұрын
the best of bests
@seth4402
@seth4402 6 жыл бұрын
For yarn users. > yarn add express --save > yarn remove express
@johnlestermercado20
@johnlestermercado20 8 жыл бұрын
I love you The Net Ninja!
@jagdishshetty4782
@jagdishshetty4782 5 жыл бұрын
Thx !!! Great explanation !!!
@wacktech5376
@wacktech5376 7 жыл бұрын
Lazy, you're speaking my language!
@abadialemadi
@abadialemadi 7 жыл бұрын
You are really good~ Thank you
@Thialeth
@Thialeth 3 жыл бұрын
When i run npm install express -save command, it's writing dependencies in package.json file but also creating a new file named package-lock.json. is this file necessary? and also love your explaination
@mrinnervoice9035
@mrinnervoice9035 3 жыл бұрын
I tried npm uninstall and even npm uninstall -no-save... The node. Modules still exsist in mine forever.. I need to remove it manually..? What's wrong?
@cryptogf
@cryptogf 3 жыл бұрын
lmfao im super new to programming and after watching this video, it was the first time i ever typed something into my terminal without getting an error Lmfaooo
@johng5295
@johng5295 5 жыл бұрын
Thanks in a million
@AslamD
@AslamD 7 жыл бұрын
Any idea why I get this notice when I install express? npm notice created a lockfile as package-lock.json. You should commit this file. I read the documentation regarding package-lock.json but didn't understood what it's saying exactly.
@gokufujison
@gokufujison 5 жыл бұрын
how do you make sure that an older version of package is still available after a few years?
@llCucoll
@llCucoll 7 жыл бұрын
Hello i have a question here. There is some versioning managed on the package.json, there is a way inside my code so I read or query the version on package.json of my code to present it to user?
@habibverse
@habibverse 4 жыл бұрын
it has the same concept like container images ?
@TheGuroguro12
@TheGuroguro12 7 жыл бұрын
Thank you very much.
@brian4351
@brian4351 6 жыл бұрын
Hello. I'm having an issue when trying to launch a node.js application through Docker. Not sure of your experience with this, but I'm getting an npm ERR!: Missing Script: start. I have added a start script to the JSON file, but it does not remedy the issue. Any ideas on how I may fix this? The node.js app is a simple "hello world" app. Thanks if you're able to help.
@mzamomahaeng268
@mzamomahaeng268 4 жыл бұрын
excellent
@chintum
@chintum 7 жыл бұрын
When you install express i saw some progress of installation in the form of "######". How did it came ?
@melsaied101
@melsaied101 3 жыл бұрын
That’s great
@thinwhiteuke
@thinwhiteuke 8 жыл бұрын
Bro u awesome, ty for the tutorials)
@Yash-Gaikwad
@Yash-Gaikwad 6 жыл бұрын
what if there are two modules ''1. express'' ''2. express2(for example)'' and both have a couple of mutual dependencies, and you uninstall one of those, so you also removing what dependencies it brought, but now you uninstalled a dependencies which also used by another module, how system take care of that?
@boxmanpiyushgaming5339
@boxmanpiyushgaming5339 3 жыл бұрын
00:54 bro when i am writing that it is showing me error please help
@nikolavladimirov1254
@nikolavladimirov1254 4 жыл бұрын
Tnx man!
@siddharthfultariya2004
@siddharthfultariya2004 7 жыл бұрын
i completed the tutorial but the problem i faced is when i execute the "npm uninstall express" command, it will uninstall dependencies as well form package.json what should i do? i have install express package by using "npm install express -save" command.
@art1co
@art1co 2 жыл бұрын
to me delete the dependency when i uninstall express why?
@dhruvsharma2595
@dhruvsharma2595 5 жыл бұрын
How to start http server using node js??? It shows localhost 8080 but it doesn't connect????? What should I do???
@karttik27191
@karttik27191 6 жыл бұрын
When uninstalling the express module, the dependency is also getting removed from the package.json file. Could you please clarify?
@PrabhuCP19
@PrabhuCP19 6 жыл бұрын
I too have the same issue. The dependency is also getting uninstalled. What is the reason?
@shivamhanda7527
@shivamhanda7527 4 жыл бұрын
try npm uninstall express --no-save
@NAMBINRAJAN
@NAMBINRAJAN 6 жыл бұрын
What is devdependency and how it differ from dependency
@yavuzsengoz2911
@yavuzsengoz2911 7 жыл бұрын
I created package.json and then I installed express . when installing finished there has creating also package-lock.json file. I don't know it has something problem . bc I did not seen in your videos. So you are installed nodemon in 22. video and there is again not create package-lock.json file. What can I do for right move ?
@NetNinja
@NetNinja 7 жыл бұрын
Newer versions of npm create a package-lock file, this is absolutely normall and nothing to worry about. It's another way to track dependency trees.
@yavuzsengoz2911
@yavuzsengoz2911 7 жыл бұрын
Thanks for awasome tutorial and asnwer back my question. Actually I have problem from next Tutorial (#22). I installed nodemon global and it is start normal. Although I did the ones on the video step by step and change to 'contact' to 'contact-us' . Terminal show only " [nodemon] restarting due to changes..." but it is not start automaticaly like yours and cannot show "[nodemon] starting `node app.js `"... I might it must change in new version. So if it is change on new version , how can we fix it for auto start ?
@juanyang838
@juanyang838 5 жыл бұрын
how do I add modules in devDependencies object?
@yuiwong779
@yuiwong779 6 жыл бұрын
in my case, when there is dependencies in the json file, I tried to uninstalled express. express and its dependencies folders are all removed together with express, and at the same time, the dependencies statement in the json file disappear too. Is this normal?
@PrabhuCP19
@PrabhuCP19 6 жыл бұрын
I too have the same issue. Have you figured out why that is happening?
@zeirash
@zeirash 8 жыл бұрын
noob here, what's the difference between --save and -save when installing package?
@AlbaAmara
@AlbaAmara 7 жыл бұрын
I think there is no difference. I tried to search but didn't find much. Based on npm website page, the --save is used instead of -save
@jutt552
@jutt552 7 жыл бұрын
i unistall express and run npm init than install again express but my dependencies is not showing in package.json
@cholowao
@cholowao 5 жыл бұрын
```npm install express --save```
@srinjoyghosh1467
@srinjoyghosh1467 5 жыл бұрын
when i am installing and saving express , a package-lock.json file is geting created. Why is it happening??
@nguyenquan4836
@nguyenquan4836 5 жыл бұрын
package-lock.json exist from creating the project.
@george4746
@george4746 7 жыл бұрын
When i execute `npm uninstall express` it changes dependencies to "dependencies": {}, Why ?
@GAGANDEEPSINGH-jx4ky
@GAGANDEEPSINGH-jx4ky 4 жыл бұрын
its because in newer versions, you need to so npm uninstall express --no-save to make no changes in package.json file
@knowledgeispower9840
@knowledgeispower9840 7 жыл бұрын
npm install express -save is not working after npm init
@bimalgrg8951
@bimalgrg8951 8 жыл бұрын
npm install express --save "To save dependencies in package.json file."
@SCAPTION.
@SCAPTION. 3 жыл бұрын
PS C:\Users\Shaun\Documents\My Web Sites\KZbin Sites ode-js-playlist> npm init description: a little test app keywords: fun, ninjas author: me y "PS C:\Users\Shaun\Documents\My Web Sites\KZbin Sites ode-js-" //não escreva, ele aparece isso Escreva ao lado: npm install express -save //para dessistalar, ao lado: npm uninstall express
@TheYuliyF
@TheYuliyF 8 жыл бұрын
How do you open a commander line in Atom? Isit some package?
@malteeaser101
@malteeaser101 8 жыл бұрын
I think he showed in one of the first tutorials on how to install the command line plugin for Atom.
@TheYuliyF
@TheYuliyF 8 жыл бұрын
thanks, it was in second
@malteeaser101
@malteeaser101 8 жыл бұрын
American Outsider I use PowerShell and cmd.exe, which automatically works with node when you install it, but I doubt know if you can use 'dir' to list folders in current directory and 'cd' to change directory?
@HaBhBo
@HaBhBo 8 жыл бұрын
in windows, do to the folder you want to be in and open it, click on the shift key then the right mouse button, and you will notice an option, open command line here, click that and have fun. also google how to navigate with the cmd it's very useful
@vaibhavverma434
@vaibhavverma434 4 жыл бұрын
Do you take donations?
@NetNinja
@NetNinja 4 жыл бұрын
Hi :). I do, either here on the channel (join button) or via paypal or patreon. The paypal link is: www.paypal.me/thenetninja . Thank you very much for asking, and for any donation you may make. I really appreciate it!
@AllenL900
@AllenL900 8 жыл бұрын
Running: npm init -y ...will create package.json with default values filled
@riteshdash1063
@riteshdash1063 6 жыл бұрын
Where is nodemon guys?
@xMoTionzxx
@xMoTionzxx 8 жыл бұрын
I have been searching for a method to view your J.s in the web browser with Atom. Every time i try to open-in-browser my html loads but my j.s won't. anyone know how i can fix?
@andrewcbuensalida
@andrewcbuensalida 4 жыл бұрын
why does mine have a debug after line 5?
Node JS Tutorial for Beginners #22 - Installing Nodemon
4:12
Net Ninja
Рет қаралды 147 М.
package.json is not enough
15:40
Hussein Nasser
Рет қаралды 54 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
JSON Schema Validation in Python: Bring Structure Into JSON
13:45
All you need to know about Package.json as a complete Beginner
12:59
Automation Step by Step
Рет қаралды 28 М.
What is JSON ?
11:56
Telusko
Рет қаралды 1,1 МЛН
Node.js is a serious thing now… (2023)
8:18
Code With Ryan
Рет қаралды 667 М.
What is NPM's package-lock.json?
3:24
Tom Gregory Tech
Рет қаралды 15 М.
Node JS Tutorial for Beginners #25 - Template Engines
11:39
Net Ninja
Рет қаралды 197 М.
BREAKING: jQuery V4 Is Here (YES REALLY)
12:30
Theo - t3․gg
Рет қаралды 188 М.
Node.js Tutorial - 50 - package.json
7:27
Codevolution
Рет қаралды 20 М.
What is NPM, and why do we need it? | Tutorial for beginners
14:27
Coder Coder
Рет қаралды 342 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН