Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php laravel在npm run watch命令后显示menifest.js的未定义索引_Php_Node.js_Laravel - Fatal编程技术网

Php laravel在npm run watch命令后显示menifest.js的未定义索引

Php laravel在npm run watch命令后显示menifest.js的未定义索引,php,node.js,laravel,Php,Node.js,Laravel,我对拉雷维尔完全陌生。这是我在这方面的第一个项目 我按照以下步骤将laravel项目从服务器克隆到本地主机 已将所有文件下载到本地 命令->编写器安装 命令->npm安装 命令->php artisan密钥:生成 命令->php artisan缓存:清除 此时,项目正在成功运行。但当我运行npm run watch/num run dev命令时,它会成功编译。但在网页上,它给了我以下的错误 ErrorException(E_ERROR)未定义索引:/js/manifest.js(视图: C:\x

我对拉雷维尔完全陌生。这是我在这方面的第一个项目

我按照以下步骤将laravel项目从服务器克隆到本地主机

  • 已将所有文件下载到本地
  • 命令->编写器安装
  • 命令->npm安装
  • 命令->php artisan密钥:生成
  • 命令->php artisan缓存:清除
  • 此时,项目正在成功运行。但当我运行
    npm run watch
    /
    num run dev
    命令时,它会成功编译。但在网页上,它给了我以下的错误

    ErrorException(E_ERROR)未定义索引:/js/manifest.js(视图: C:\xampp\htdocs\gymnew\resources\views\index.blade.php)

    \htdocs\gymnew\vendor\laravel\framework\src\illumb\Foundation\helpers.php

    返回新的HtmlString($MANIFESTORY.$manifest[$path])

    “未定义索引:/js/manifest.js(视图: C:\xampp\htdocs\gymnew\resources\views\index.blade.php)”

    当我搬走的时候

    {{-- Load the application scripts --}}
      @if (app()->isLocal())
        <script src="{{ mix('js/app.js') }}"></script>
      @else
        <script src="{{ mix('js/manifest.js') }}"></script>
        <script src="{{ mix('js/vendor.js') }}"></script>
        <script src="{{ mix('js/app.js') }}"></script>
      @endif
    
    现在在
    npm运行dev/npm运行watch

    {
        "/js/lang-zh-CN.2d1b36a24dc4a427a2e1.js": "/js/lang-zh-CN.2d1b36a24dc4a427a2e1.js",
        "/js/lang-es.3281efc9e2bde13ccbfa.js": "/js/lang-es.3281efc9e2bde13ccbfa.js",
        "/js/lang-en.b1f5bde3d63ce766d15d.js": "/js/lang-en.b1f5bde3d63ce766d15d.js",
        "/js/app.js": "/js/app.js",
        "/css/app.css": "/css/app.css"
    }
    
    {
        "/js/lang-zh-CN.2d1b36a24dc4a427a2e1.js": "/js/lang-zh-CN.2d1b36a24dc4a427a2e1.js",
        "/js/lang-es.3281efc9e2bde13ccbfa.js": "/js/lang-es.3281efc9e2bde13ccbfa.js",
        "/js/lang-en.b1f5bde3d63ce766d15d.js": "/js/lang-en.b1f5bde3d63ce766d15d.js",
        "/js/app.js": "/js/app.js",
        "/css/app.css": "/css/app.css"
    }