如何运行名​​称为空白的NPM脚本?

时间:2018-11-18 19:20:20

标签: npm

如何使用npm run运行此脚本?

您可以做类似npm run "something cool"的事情吗?

{
  "name": "nodejs_tutorial",
  "version": "1.0.0",
  "description": "",
  "main": "app.js",
  "scripts": {
    "something cool": "node app.js",
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC"
}

0 个答案:

没有答案