| Server IP : 198.38.94.13 / Your IP : 216.73.217.33 Web Server : Apache System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : revivere ( 1140) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/ |
Upload File : |
o
;ji, � @ sR d Z ddlZddlmZmZ dd� Z ddd�Zdd d
�Zddd
�Zddd�Z dS )a�
Installation of NPM Packages
============================
These states manage the installed packages for node.js using the Node Package
Manager (npm). Note that npm must be installed for these states to be
available, so npm states should include a requisite to a pkg.installed state
for the package which provides npm (simply ``npm`` in most cases). Example:
.. code-block:: yaml
npm:
pkg.installed
yaml:
npm.installed:
- require:
- pkg: npm
� N)�CommandExecutionError�CommandNotFoundErrorc C s dt v rddfS ddfS )z>
Only load if the npm module is available in __salt__
�npm.listZnpmFz 'npm' binary not found on system)�__salt__� r r �C/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/npm.py�__virtual__ s
��r Fc
s� | ddi d�}|r|n| g}zt d |||dd�} W n$ ttfy> }
zd|d<