0

我在 laravel 中使用 vue。npm run watch 对我来说工作正常,但是当我用它创建一个构建时,它会抛出以下错误。

> frontend@0.1.0 build C:\wamp64\www\laravel-vue\laravel-vue-cli-3\frontend
> del -rf ../public/{js,css,img} && vue-cli-service build --no-clean

Parameter format not correct - "public".
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! frontend@0.1.0 build: `del -rf ../public/{js,css,img} && vue-cli-service build --no-clean`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the frontend@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\***\AppData\Roaming\npm-cache\_logs\2020-12-18T12_40_47_194Z-debug.log

这是我的 package.json 文件

    {
      "name": "frontend",
      "version": "0.1.0",
      "private": true,
      "scripts": {
        "serve": "vue-cli-service serve",
        "build": "del -rf ../public/{js,css,img} && vue-cli-service build --no-clean",
        "lint": "vue-cli-service lint"
      },
}
4

0 回答 0