当运行npm install 我这些警告: npm WARN The package babel-core is included as both a dev and production dependency.
npm WARN The package babel-loader is included as both a dev and production dependency.
npm
我想要一个NPM脚本,将: 检查,看是否有全局模块安装 如果没有,安装 使用它 在我的package.json中会有一个脚本条目来做到这一点。 "scripts": {
"exeglobal": "TODO: check to see if global package is installed, if not install it, then use it"
}
任何人都知道一个