首页 > 解决方案 > 为什么 npm run watch 崩溃了?

问题描述

我正在尝试在我的控制台中运行“npm run watch”。但我正在接受这个错误。

No task specified. Will go through all possible tasks
[test] [nodemon] 2.0.14
[test] "Error: no test specified"
[test] [nodemon] app crashed - waiting for file changes before starting...
this is my package.json file.

  {
"name": "blogg",
 "version": "1.0.0",
 "description": "",
 "main": "webpack.config.js",
 "directories": {
 "test": "tests"
},
"watch": {
  "test": "{src,test}/*.js"
 },

 "scripts": {
   "test": "echo \"Error: no test specified\" && exit 1",
   "watch": "npm-watch"

 },
"author": "",
    "license": "ISC"
 }

您对此错误有任何想法吗?

标签: vue.jsnpmwatchnpm-run

解决方案


推荐阅读