【发布时间】:2019-10-26 10:18:56
【问题描述】:
在我的脚本中
const mysql = require('mysql');
有没有办法在运行时安装mysql(如果还没有安装)? 我读了这个解决方案:Is it possible to install npm package only if it has not been already installed?
但这是通过 shell 完成的,不适用于 windows 我在找windows版本。
我的目标是向我的客户提供脚本 - 他无法使用一些 npm 命令来安装软件包。
【问题讨论】:
标签: node.js npm node-modules