M
M
Michael2019-04-25 09:44:16
CDN
Michael, 2019-04-25 09:44:16

Installing npm or cdn packages?

Hello!
I want to ask such a stupid question.
When we install e.g. jQuery or Bootstrap locally i.e. it is saved on our computer, then it is loaded locally.
When we install it via CDN, it is loaded from the Internet.
And when we connect the package to the project via NPM, then it is loaded locally then?
Or does it depend on what attributes we write when installing ? Whether we write --save or don't write :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Okhotnikov, 2019-04-25
@mk3mk

When installed via npm, modules are saved to the node_modules folder locally. --save does not need to be written in the latest versions of npm and yarn - this flag was needed in order to add a dependency to package.json, now they are automatically added

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question