简体   繁体   中英

issue with npm run watch

I am working on a vue.js project. When I am trying to run npm run watch I am getting below error.

在此处输入图片说明

Here is my composer.json file code

"scripts": {
    "dev": "node build/dev-server.js",
    "start": "node build/dev-server.js",
    "build": "node build/build.js"
  },

How can I solve this ?

As you have not added watch scripts in the package.json npm run watch won't work.

you can use npm run scripts-name , or any of the start/developer/build in place of scripts-name

or you can add watch in scripts tag and use it.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM