npm Tutorial - 3 - npm install and uninstall - npm Tutorial For Beginners

preview_player
Показать описание
npm Tutorial - 3 - npm install and uninstall - npm Tutorial For Beginners

What is npm? In 2 minutes - npm tutorial for beginners

----------------------------------
Hellooooo there, beautiful, amazing and gorgeous people.
In this tutorial, we will be going over the npm install and uninstall commands
Let us get started!
To install an npm package, it is as simple as using the command "npm install package-name". I found an awesome package called "hello-world-npm", so I will go ahead and install it with the command "npm install hello-world-npm".
This command creates a folder in your project called "node_modules". This folder is where all the packages you install into your project will be placed.
That is it; you have now installed an npm package. That was easy, right?
If we type the command "npm ls" we will see that indeed, the "hello-world-npm" package was installed to our project.
Let’s dive a little deeper. Remember the packageJS file we talked about earlier? To recap, the packageJS file is the file that contains a list of packages your project needs to run. If we open the packageJS file we will see that nothing changed. This means that the project has no idea we just installed the "hello-world-npm" package.
To fix this, we have to use the same command, but include the flag "--save". This "--save" flag adds the package to our packageJS file so that in the future someone else can download our project and automatically install all of the required dependencies.
To uninstall a package from our project, it’s as simple as typing the command "npm uninstall --save package-name". In our case, we will type "npm uninstall --save hello-world-npm".
That is it for now. If you have any questions leave a comment for me and I will do my very best to help you out.
As always, please support me by subscribing, liking the video, leaving a comment, and sharing the video with your friends.
See you next time!
Рекомендации по теме
Комментарии
Автор

Sorry for the basic question but I don't understand the "the package was installed to your project". But what "project" are you talking about? How do you choose the location of this project? What is a "project"? And "you add the package to the package js file" ... I'm completly lost. the previous video were clear but this one is very confusing.

ytrew
Автор

thankyou pal, it was very clear, go ahead. Greetings from Guayaquil-Ecuador . nodejs and npm is awesome.

soldadopreciso
Автор

So helpful thank you. for helping me achieve my goal !

guillaumejalbert
Автор

great video DOzal 1 suggestion is there never make long video in future make short video as present making
keep going up

aayushgupta
Автор

thanks mate :)
and the - -save flag is no longer required, it adds dependencies automatically now

irazirfan
Автор

I have been trying to node modules with npm but I can start the devserver. I tried using yarn but no success. I would be grateful if you can help.

Edu-Fun-Kids
Автор

Hey...i have problem
There is a package call in my package.json. i need uninstall that...what can i do for that??

s.dilansilva
Автор

Hi i have tried to install an node package via npm

It always install older version of it.


I checked with my friend system there it works fine


I hope it is an cache issue

Please help

syedmujeebh
Автор

Thanks for your useful lecture, I am programming in Angular 9, i can not see node-module file in my project, how can I create it? I can find the folder in directory but I can not see it in my project.
Thanks in advance for your help.

faranakeradat
Автор

So helpful thank you. for helping me achieve my goal !

yinonelbaz
join shbcf.ru