--- title: npm 指令 tags: node.js --- npm 常用指令 === #### 檢視環境配置 ```shell= npm config list ``` <img src="https://drive.google.com/uc?id=1rqiyOsWWZa7Y2qeanq6dr9TddqNpYCbf&export=download"> === <br /> #### 查詢預設編輯器 ```shell= npm config get editor ``` <img src="https://drive.google.com/uc?id=1irkVYCC-k6w-AfaZb6T9g22Ck_PfS4vg&export=download"> === <br /> #### 修改預設編輯器 ```shell= npm config set editor D:\prog_files\notepad++\notepad++.exe ``` <img src="https://drive.google.com/uc?id=1IgT3y1iEELQ7Y0TllIzlPih-1KVkW5P-&export=download"> === <br /> #### 檢視所有預設值 ```shell= npm config ls -l ``` <img src="https://drive.google.com/uc?id=1a7_SRx8BTvgEiY-CXx9IbG68Qdw60815&export=download">