I want an npm script that will:
There will be a scripts entry in my package.json to do this.
"scripts": {
"exeglobal": "TODO: check to see if global package is installed, if not install it, then use it"
}
Anyone know an OS independent way of doing this?
您可以将模块添加到devDependency
并像这样使用它。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.