I know that I’ve been hearing about the non-js module files (aka “npm”) for a few months now on this site, but I’ve been using them for a while. I’ve been using them to have an easy way to install and uninstall packages that I’ve had installed, but I’ve also been using them to install and uninstall packages I didn’t have installed.
I think the best way to use them is as an alternative to npm, plus they allow to automatically remove packages that have been installed, without having to go through the headache of manually doing it every time.
I think this is a good time to mention that the non-js module files are the same as what some people call npm modules. Ive always thought of them as similar to the npm modules, except that they dont require the installation to run, just use the installed packages. npm modules are more like the traditional node modules, and dont require installation for the use to run as well.
To use them, you need to install them. You can’t just pull them from npm packages and do some manual installs. The non-js module files are just the built-in versions, so if you are using a package that depends on them, you would need to pull the package from npm first. Then, you would need to install the module in your package.json.
The non-js module file is the one with the actual code and not the package.json file. The package.json is where you define what you want to install, and which versions of your packages you want to use.
This is basically the exact same situation as with npm. For the purposes of the npm install, you pull the module from the dependency, but you also need to specify what version of it you need.
Just in case you don’t know, npm install is just the npm command you would use to install whatever you want.
The other thing that npm install does is it installs everything you want to the node_modules object in the global namespace. That means that it installs all your dependencies and all of your modules into the node_modules directory. This is useful if you want to use modules you have installed on your computer and want to use them in your project. But in this case, the node_modules directory contains all the files that weren’t installed as dependencies in the dependency, so you have to manually delete them.
I would say that this would be a good idea, and in fact npm did warn us in their documentation. But if you do install modules that aren’t in the npm_package.json file, then the node_modules directory is empty, and thus you won’t see them in your package.json file.
You could also make your own package.json file, which would make it easier to update your project, and you would have to make sure that you have the right dependencies installed.