如何在离线服务器上安装 npm -g [英] How to install npm -g on offline server

查看:18
本文介绍了如何在离线服务器上安装 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

推荐答案

try 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆