如何在离线服务器上安装npm -g [英] How to install npm -g on offline server
本文介绍了如何在离线服务器上安装npm -g的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在脱机服务器上安装全局" npm应用程序.
I need to install a "global" npm applications on an offline server.
安装普通应用程序很容易:
It is easy to install a normal application:
npm install
,然后打包结果文件.手动或使用 npm pack .
and then pack up the resulting files. Either manually or using npm pack.
但是,如何在没有Internet的情况下安装诸如 forever 这样的全局应用程序(具有某种安装脚本)?
However, how can I install global application (that has a install script of some sort) such as forever without Internet?
npm install -g forever
推荐答案
尝试 npmbox ,它是npmzip的新名称,它将使您可以通过一个文件安装脱机npm软件包
try npmbox, it is the new name of npmzip which will allow you to install offline npm packages by one file
这篇关于如何在离线服务器上安装npm -g的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文