將包安裝到 node_modules 目錄,不會下載模塊,不會修改 package.json 文件。 2.npm install -g 包名 全局安裝,不會在 node_modules 目錄中保存,不會下載模塊,不會修改 package.json 文件。 3. npm install --save(-S) 包名 將包安裝到 node_modules 目錄,會下載模塊,運(yùn)行 npm install --production 或者 N...
www.dbjr.com.cn/article/2605...htm 2025-5-22