<span id="pfnzv"></span>
      <form id="pfnzv"><span id="pfnzv"></span></form><address id="pfnzv"><span id="pfnzv"><nobr id="pfnzv"></nobr></span></address>
      <form id="pfnzv"><dfn id="pfnzv"><listing id="pfnzv"></listing></dfn></form>

        <sub id="pfnzv"><address id="pfnzv"></address></sub>
          <address id="pfnzv"><form id="pfnzv"><listing id="pfnzv"></listing></form></address>
          <address id="pfnzv"><address id="pfnzv"><nobr id="pfnzv"></nobr></address></address>

            <address id="pfnzv"></address>
            0712-2888027 189-8648-0214
            微信公眾號

            孝感風信網絡科技有限公司微信公眾號

            當前位置:主頁 > 技術支持 > PHP > Laravel The Mix manifest does not exist錯誤的解決

            Laravel The Mix manifest does not exist錯誤的解決

            時間:2024-06-04來源:風信官網 點擊: 2487次
            測試項目Laravel Shop,Git源代碼到本地調整,環境配置完成之后,運行Laravel,報錯信息如下:
             
            The Mix manifest does not exist.
             
            查看package.json文件,發現cross-env缺少了一些環境的支持
            Laravel The Mix manifest does not exist錯誤的解決
             
            至Node.js官方下載Windows LTS版本,并進行安裝
             
            {
                "private": true,
                "scripts": {
                    "dev": "npm run development",
                    "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
                    "watch": "npm run development -- --watch",
                    "watch-poll": "npm run watch -- --watch-poll",
                    "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
                    "prod": "npm run production",
                    "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
                },
                "devDependencies": {
                    "axios": "^0.18",
                    "bootstrap": "^4.0.0",
                    "cross-env": "^5.2.0",
                    "jquery": "^3.2",
                    "laravel-mix": "^2.0",
                    "lodash": "^4.17.5",
                    "popper.js": "^1.12",
                    "vue": "^2.5.17",
                    "vue-template-compiler": "^2.6.10",
                    "webpack-laravel-mix-manifest": "^2.0.1"
                },
                "dependencies": {
                    "@fortawesome/fontawesome-free": "^5.6.3",
                    "china-area-data": "^4.0.0",
                    "sweetalert": "^2.1.2"
                }
            }
             
            檢查安裝的版本信息:
             
            $ node -v
            v10.16.2
             
            $ npm -v
            6.9.0
             
            然后就只需要安裝 Laravel Mix。在新的 Laravel 項目中,你可以在目錄結構的根目錄中找到一個 package.json文件,它包括了運行基本的 Mix 所需的內容。就如同 composer.json 文件,只不過它定義的是 Node 的依賴而不是 PHP。你可以使用以下的命令安裝它引用的依賴項:
             
            npm install
             
            如果你正在 Windows 系統上進行開發,或者在 Windows 主機系統上運行虛擬機,那你要在運行 npm install命令時使用 --no-bin-links:
             
            $ npm install --no-bin-links
             
            npm WARN ajv-keywords@3.4.1 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
            npm WARN img-loader@3.0.1 requires a peer of imagemin@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself.
            npm WARN webpack-laravel-mix-manifest@2.0.1 requires a peer of webpack@>=4.0.0 but none is installed. You must install peer dependencies yourself.
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
            npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
             
            audited 12750 packages in 23.651s
            found 8 vulnerabilities (4 moderate, 4 high)
              run `npm audit fix` to fix them, or `npm audit` for details
             
            運行 Mix
             
            Mix 是位于 Webpack 頂部的配置層,所以要運行 Mix 任務,只需要執行默認的Laravel package.json 文件中包含的一個 NPM 腳本:
             
            $ npm run dev
             
            > @ dev D:\phpStudy\laravel-shop
            > npm run development
             
             
            > @ development D:\phpStudy\laravel-shop
            > cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
             
             11% building modules 9/14 modules 5 active ...es\js\components\ExampleComponent.vue{ parser: "babylon" } is deprecated; we now treat it as { parser: "babel" }.
             95% emitting DONE  Compiled successfully in 7495ms9:55:10 PM
             
            監控資源文件修改
             
            npm run watch 會在你的終端里持續運行,監控所有相關的資源文件以便進行更改。
            Webpack 會在檢測到文件更改時自動重新編譯資源:
             
            $ npm run watch
             
            在某些環境中,當文件更改時,Webpack 不會更新。如果系統出現這種情況,請考慮使用watch-poll 命令在后臺運行:
             
            $ npm run watch-poll &
            熱門關鍵詞: Laravel Mix manifest
            欄目列表
            推薦內容
            熱點內容
            展開
            国产精久久久久无码AV动漫|最新亚洲精品国偷自产在线|2021亚洲色中文字幕在线|最新无码av中文字专区 情欲美妇紧致敏感 国产免费AⅤ片在线播放 人妻爽爽免费在线视频 51精品国产人成在线观看 色偷偷av一区二区三区
            <span id="pfnzv"></span>
                <form id="pfnzv"><span id="pfnzv"></span></form><address id="pfnzv"><span id="pfnzv"><nobr id="pfnzv"></nobr></span></address>
                <form id="pfnzv"><dfn id="pfnzv"><listing id="pfnzv"></listing></dfn></form>

                  <sub id="pfnzv"><address id="pfnzv"></address></sub>
                    <address id="pfnzv"><form id="pfnzv"><listing id="pfnzv"></listing></form></address>
                    <address id="pfnzv"><address id="pfnzv"><nobr id="pfnzv"></nobr></address></address>

                      <address id="pfnzv"></address>