- [Narrator] Now you've created a scope package
and would like to use it into your own project.
So let me demonstrate how it would work.
First let's create a brand new project again.
So let's do new project,
so right click and then new project.
And then let's drag and drop this new project into VS Code.
If you're on a Windows, you simply
have to right click and open the project.
And we'll init again with npm,
so let's bring up the terminal,
click on View, Terminal.
Let's, so npm init.
And let's just do yes, yes, yes.
Perfect, so we got our brand new project.
Now we want to install, in this new project,
our scope package.
So, it's very, very simple.
First you really want to make sure
that you're logged in into your account.
We did this previously, so in theory I should be logged in.
Now, let me just do npm i or install,
and all I have to do is the @algofields.
Now let's quickly check what is the official name
of that package, just to make sure.
And as you can see when I go back to my account
the algofields/npmscoped is private,
so if you were to look into algofields
you would not see this, but you might probably
see those two packages, unless I delete them,
and then now you can see the algofields/npmscoped.
So it's npmscoped, so let's make sure
we do the syntax properly.
So it's forward slash npmscoped, like so.
And now I have this new package installed,
it's listed in my dependencies here
so it's the package 1.0.0.
If I look into the node_modules you'll see
all your package in all its beauty,
with the @algofields scope and npmscoped
and you see all the same stuff that we've created
in previous videos.
So always consider the fact that
even if your new project is public,
you want to make sure you're always logged in
when using scope and private dependencies.