►
From YouTube: Experience publishing NPM package using package docs
Description
Learnings and stumbling blocks from following the documentation
A
Everyone,
this
is
katie
product
designer
for
package
and
in
think,
big
recording.
I
saw
that
there
was
a
discussion
about
how
we
might
improve
the
docs
and
especially
for
new
people
onboarding.
We
have
a
fresh
set
of
eyes,
and
so
I
did
manage
to
publish
an
npm
package
to
my
test
project,
but
this
wasn't
a
super
smooth
process
for
me,
and
so
I
wanted
to
just
kind
of
talk
through
how
I
found
the
documentation
and
what
I
did
to
resolve
the
problems
and
and
to
do
this.
A
I've
also
rolled
back
a
few
commits
to
when
things
were
still
broken
and
obviously
not
all
of
this
feedback
will
be
relevant,
because
I
am
certainly
missing.
Some
of
the
background
and
domain
knowledge
that
perhaps
a
lot
of
people
who
are
reading
the
documentation
would
have,
and
but
you
only
get
a
fresh
set
of
eyes
once
so.
I
thought
I'd
make
this
video,
and
so
I
started
here
and-
and
I
did
need
to
install
node.js
and
was
able
to
do
that.
A
And
then
this
was
the
first
stumbling
block
when
it
says,
create
a
project,
and
at
this
point
I
already
had
created
a
project
and
had
it
pointing
towards
the
remote,
and
since
this
is
all
about
publishing
an
npm
package,
I
was
thinking
that
maybe
there's
a
rule
or
something
that
the
npm
package
needs
to
be
in
a
separate
directory
than
the
one
with
the
that
when
with
this
particular
repository,
so
I
actually
created
a
new
directory
empty
directory
and
then
I
did
npm
in
it,
and
it
immediately
starts
asking
me
some
questions
that
I
don't
really
know
the
answer
to,
and
here
it
says
you
have
to
follow
this
naming
convention
and
when
I
click
on
this
there's
quite
a
lot
of
information
here.
A
Maybe
if
you're
familiar
with
npm,
you
would
understand
the
scoped
naming,
but
this
was
all
very
overwhelming
and
also
having
to
do
this
in
the
command
line.
I
was
thinking
if
I've
made
a
mistake
or
something.
How
am
I
going
to
correct
it,
and
even
looking
at
this
project,
my
org
bar,
I
guess
that
bar
would
be
the
name
of
the
project
and
the
org
would
be
the
organization.
A
A
So
that's
how
I
found
it,
but
I
don't
know
if
an
average
person
googling
would
be
able
to
find
that
video,
but
that
video
actually
showed
me
that
scrolling
back
up
here,
then
when
you
do
npm
net,
you
can
just
basically
accept
all
the
defaults
and
edit
it
in
the
code
editor
a
little
bit
later
so
yeah
that
might
be
good
just
to
allow
people
to
accept
the
defaults
and
then
give
them
more
in-depth
instructions
of
how
to
edit
it
in
the
code
editor
and
the
other
thing
that
was
a
little
bit
interesting
is
if
it
weren't
for
that
youtube.
A
Video-
and
this
could
again
just
be
like
more
on
the
documentation
on
the
npm
side
of
how
to
create
a
package,
but
I
wouldn't
have
known
that
in
the
test
project
repo,
I
should
create
a
npm
rc
and
that
also
the
package.json
would
be
living
there.
The
package.json
that
I
generated
with
npm,
init
and
so
yeah
that
was
that
was
interesting
and
then
use
the
get
lab
endpoint
for
mkm
packages.
I
had
no
idea
what
this
meant.
A
I
don't
know
if
this
is
like
an
enterprise
versus
not
enterprise.
Edition
yeah,
like
I
assumed
that
I
would
be
project
level,
because
my
home
page
of
my
application
is
pro,
has
a
project
id
but
yeah.
I
wasn't
really
too
sure
what
to
do
with
this
information
and
then
moving
on
to
authentication,
and
so
I
had
seen
this
personal
access
token
workflow
done
before,
maybe
for
creating
a
pipeline,
or
something
like
that,
so
I
had
a
little
bit
of
context
for
it.
A
A
What
the
preference
is
yeah?
So
if
I
go
into
access
tokens,
one
thing
that
I
was
not
sure
is:
does
the
name
matter
like?
Can
I
kind
of
not
contain
certain
characters,
or
does
it
have
something
to
do
with
that?
Yeah
like
does
that
matter
at
all?
Is
there
any
formatting,
the
expiration
date
and
then
in
terms
of
their
scopes
or
permission
levels?
A
Read
registry
and
write
registry
seemed
like
the
obvious
choices,
but
I
just
didn't
want
something
to
go
wrong,
so
I
actually
selected
all
of
these
so
yeah,
oh
yeah.
It
says
here
with
the
scope
set
to
api,
so
I
just
didn't
read
that
carefully
enough,
but
all
of
them
did
work,
and
so
I
was
able
to
generate
that
token.
A
One
thing
that
was
also
really
interesting
is
that
when
I
press
this
after
filling
out
things,
actually
the
token
is
generated
up
here,
as
in
you
can
copy
it
there,
but
it's
the
page
doesn't
scroll
or
anything
so
it
and
then
something
appeared
down
here
and
yeah.
It
was
kind
of
funny.
A
I
was
like
this
cannot
be
the
token
name,
because
that's
that
doesn't
look
like
a
token
to
me,
and
I
had
to
like
kind
of
in
a
new
tab,
look
at
some
documentation
about
what
gitlab
tokens
will
look
like,
and
then
I
saw
a
screenshot
of
something
where
it
was
above
and
I
was
able
to
find
it
that
way.
That
was
just
like
a
little
interesting
funny
stumbling
block,
and
then
this
is
where
things
I
think
like.
I
was
able
to
create
this
npm
rc
by
watching
that
youtube
video.
A
So
I
knew
where
to
paste
this
in
basically,
and
there
was
the
biggest
confusion
here
was
the
foo
registry.
A
So
I
didn't
know
what
foo
should
be,
and
my
guess
would
have
been
that
it
should
be
test
project
because
that's
where
I
was
that's
where
the
registry
is
so
like
test
project
and
but
I
actually
learned
from
the
youtube
video
that
it
needs
to
be
this
one
katie
mccoy,
and
so
I
will
change
this,
because
that
was
my
first
mistake.
A
And
then
this
was
all
like
pretty
straightforward
project
id
was
easy
to
find
and
obvious
that
I
needed
to
do
something
and
then
npn
config
set-
and
this
was
the
same
thing
like
pretty
pretty
easy
to
know
and
what
I
needed
to
do.
And
so
in
terms
of
like
what
I
learned
from
the
youtube
video
is
that
I
also
needed
to
make
some
edits
in
the
package.json,
which
I
guess,
we've
done
through
mpm
init,
and
it
said
something
about
following
a
naming
convention.
A
But
maybe
it
would
have
been
helpful
to
kind
of
understand
which
of
these
fields
are
important
and
how
they
need
to
be
set
up
similar
to
this,
like,
as
in
maybe
yeah,
I'm
not
sure
like
an
example
or
something.
So
I
only
learned
this
from
the
youtube
video
that
I
need
to
set
the
name
because,
like
when
you're
doing
it
in
the
command
line,
it
says:
what
do
you
want?
A
The
name
of
your
package
to
be,
or
something
like
that,
and
I
wouldn't
have
known
about
this
so
yeah
that
was
interesting
and
and
then
what
else
needs
to
change?
Oh,
yes,
so
also,
this
was
like
not
coming
out
of
the
box.
This
line
here
and
I
learned
about
that
from
the
youtube
video.
I
don't
know
if
it's
somewhere
in
here,
oh
yeah,
maybe
this
is
it.
This
looks
no.
This
is
this
is
a
ci
job
token
yeah.
A
That
was
the
other
interesting
thing
is
that
this
is
all
reading
like
one
two
three
and
then
here's
this
authenticate
with
ci
job
token,
which
is,
I
guess,
another
kind
of
authentication
I
could
have
chosen
to
do
so
without
the
youtube
video.
I
wouldn't
have
known
this
and
then
so
I
basically
made
these
changes
and
I
did
npm
publish
and
it
failed.
I
can
show
that.
A
So
it's
gonna
fail
on
403
forbidden,
and
I
was
like
doing
things
like
taking
bits
of
this
url
and
trying
to
figure
out
which
one
of
them
gives
me
a
response
and
which
one
doesn't.
I
think
it
was
like
when
I
do
this.
I
get
yeah
packages
invalid,
but
then,
if
I
take
it
back
to
this,
this
will
be
empty
or
something
oh,
no
yeah.
This
has
a
package
in
it
now
because
I've
put
one
there
and
then
this
actually
oops
is
like
yeah
correct.
A
So
that
was
a
little
bit
confusing
like
when
you
google,
this
403
in
conjunction
with
npm.
It's
a
lot
of
things
like
if
you're
trying
to
put
publish
to
the
public
registry,
and
so
actually
how
I
did
end
up
solving
this
was
paying
a
bit
more
close
attention
to
that
youtube.
Video,
and
I
see
that
in
the
youtube
video
he
doesn't
do
npm
config
set
on
either
of
these
and
we're
going
to
take
away.
A
This
closing
quotation
and
the
other
thing
that
was
different
about
the
youtube
video
is
that
it
doesn't
actually
point
to
a
specific
project,
and
I
think
it's
like
this.
So
this
is
all
learnings
from
the
youtube
video,
not
the
not
the
documentation,
but
I
think
that-
and
this
is
now
correct-
oh
yeah-
and
then
this
needs
to
be
not
in
quotation
marks
and
this
needs
to
be
equals.
A
I
think
these
are
the
changes
that
I
learned
from
the
youtube
video
and
then
I
don't
know
what's
going
to
happen
when
I
try
to
publish
this,
because
this
is
actually
already
published.
Let's
see,
yeah
there's
still
some
kind
of
problem,
but
yeah.
Those
are
basically
the
steps
that
I
took
yeah.
A
So
obviously
this
may
be
just
completely
because
I'm
not
a
developer
or
an
engineer
and
I'm
not
that
familiar
with
npm
and
I
did
end
up
getting
it
to
work,
but
it
isn't
even
like
in
the
youtube
video
it
was
talked
about.
A
I
think
that
he
might
have
copied
this
directly
out
of
the
documentation,
but
you
can
see
that
that
it's
different
from
the
documentation
that
I
copied
in
for
whatever
reason
this
did
work
and
the
the
way
that
I
copied
it
out
of
the
npm
documentation
did
not
and
so
yeah
it
was.
It
was
interesting
yeah.
A
So
I
think
in
terms
of
improvements
like
maybe
all
of
this
can
be
disregarded,
but
perhaps
spelling
things
out
a
little
bit
more
clearly
like
and
what,
where
the
npn
in
it
needs
to
be,
or
maybe
it's
irrelevant,
if
you're,
just
publishing
it
and
you're,
pointing
it
to
towards
a
certain
url
and
with
the
correct
token,
maybe
it's
irrelevant
if
it's
in
the
repo
or
not,
but-
and
that
was
one
thing
making
this
a
lot
more
clear
and
also
maybe
just
like
breaking
down
the
url
here
and
what
each
of
these
variables
actually
represents,
and
maybe,
if
katie
mccoy
was
a
group
and
test
project
was
like
a
project.
A
Inside
of
that.
That
would
be
one
more
thing
in
the
middle.
I
don't
know
so
like
what
is
a
group
and
and
what
is
an
instance
yeah,
and
I
don't
know
what
what's
why
mine
works
and
this
one
doesn't.
A
Maybe
I've
done
something
wrong
and
yeah,
and
and
also
each
one
of
these
steps
feels
like
a
one
two
three
and
then
you
have
things
like
authenticate
with
the
ci
job
token,
and
that's
actually
like
a
choice
you
can
make,
and
then
this
is
also
just
like
generic
information,
and
so
I
wonder
if
we
could
yeah
like
rearrange
the
order
of
this
and
yeah,
and
this
also
looks
very
intimidating
and
scary,
and
I
got
as
far
as
like
literally
here
and
basically
didn't,
go
any
further
and
resolved
the
rest
of
it
with,
like
various
stack
overflow
and
youtube
tutorials.