I
I
ivandao2019-09-16 16:43:44
npm
ivandao, 2019-09-16 16:43:44

How to load a module in npm on a computer without internet?

There is a folder with a module downloaded by the command npm i modulename
Folder moved to a computer without internet. This computer is running npm.
How to load this module in npm on a computer without internet?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IgorNoskov, 2019-09-20
@IgorNoskov

If I understand the question correctly. You need to add the name of the module with the version to the package.json project file in the dependencies object, and add all the necessary dependencies of this plugin to the package-lock.json project file. In general, it's bad practice to tinker with package-lock.json by hand. Not the fact that all this will work in the end, because it is necessary that the dependencies of this module are pulled up.
If you mean that you need to submit the module code to the nmp repository without the Internet, you can try to write the code on paper and send an email to the npm office.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question