R
R
Rishat Sultanov2017-08-28 17:29:56
JavaScript
Rishat Sultanov, 2017-08-28 17:29:56

How to use a package pulled by npm manager?

Good afternoon, ladies and gentlemen.
Please help me get things up and running. How do I install the package after I installed the package manager and pulled the npm package install vue.js
If before I used Vue JS by creating an assets folder in js and specifying src directly. Or even resorted to CDN.
But now there are a lot of packages and I began to transfer packages to the npm manager.
But I can't figure out how to upload them.
What's under my hood:
PHP(CodeIgniter)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Feninets, 2017-08-28
@rishatss

each package has its own `package.json` which contains the "main" file.
And when you import some library from node_modules without specifying the path, then this main file will be imported.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question