How to publish npm packages to s3 with lerna publish? - npm

I have repository and need to publish multiple packages to aws s3.
How can I do this, using lerna publish?

Related

Mirror npm repository

I have a non-internet network and I need npm to develop my application.
How could I mirror all the npm packages offline and then use it?
I've found Verdaccio for the private publish. I need a way to replicate the npm repository.

How would you execute npm install with a specific version from the nexus repo

How to execute npm install with a specific version from the nexus repo?
My artifacts are stored in Nexus. what I need to do is execute npm install <nexus version>. However when I do this it still uses my latest package.json that I committed. I want to use all artifacts including package.json from the version in my nexus repo.
Using npm via NXRM behaves the same as using npm without NXRM as far as installs go. You can use npm install package#version.
So for example, npm install pluto#0.4.0.
See npm install doc for more details.

Yarn equivalent of `npm access`

What is the yarn equivalent of the npm access command? I want to grant a team write permissions to a package I am publishing to NPM via yarn publish. Thank you.

Should I publish my module's node_modules when doing npm publish?

I am working on a npm module with a couple dependencies. Now, should i publish the dependencies along with my product via the node_modules folder or not?
No you should not.
You should list all your dependencies in your package.json and publish that.
Your node_modules folder is automatically created when doing an npm install of the module, or npm install in a directory with a package.json.

npm install express will cause many package to be installed

I am reading the Installing npm packages locally guide and looking for information about why when I use npm install express to install that package, nearly 40 other packages installed in the node_modules sub-directory.
Also if NPM supports the method as described above, how do we use npm publish to publish a bundle of packages in one command for download in NPM?