I\'m working on an offline network and want to install angular-cli using npm. I have a zip file of angular-cli and using the latest node and npm version. I\'m using the comm
In 2019, I found none recommended approaches were applicable to an "air gapped" server with no internet access.
I found the only solution was to, on windows, using artillery.io as an example:
npm install -g artillery
C:\Users\{username}\npm
\node_modules\artillery
(e.g artillery.7z) artillery
, artillery.cmd
(at root of npm folder) to the serverartillery
, artillery.cmd
to the root of the servers npm folder (C:\Users\{serverusername}\npm
)C:\Users\{serverusername}\npm\node_modules
This is the complicated version for just one tool. If your local machine's npm folder is relatively light on tools, you could always just zip the whole npm
folder and copy + extract it on the server.
I still think it's odd that npm insists on trying to connect to the registry even when using npm pack
and npm install -g