Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想安装一个我已经下载的节点模块pm2并将其打包为 rpm。当我运行 rpm 命令时,我希望全局安装该软件包:
pm2
例子npm install -g pm2
npm install -g pm2
我像这样从 fpm 创建一个 rpm 吗?
fpm -s npm -t rpm pm2.zip
fpm 将自动从 npm 注册表下载它。所以下面的命令就足够了。
fpm -s npm -t rpm pm2 Created package {:path=>"node-pm2-2.7.1-1.x86_64.rpm"}