Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/470.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/11.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
Javascript 在laravel中编译vue js前端时出错_Javascript_Laravel_Vue.js - Fatal编程技术网

Javascript 在laravel中编译vue js前端时出错

Javascript 在laravel中编译vue js前端时出错,javascript,laravel,vue.js,Javascript,Laravel,Vue.js,我正在尝试运行此应用程序 https://github.com/saeedvaziry/laravel-vue-polling-app.git 但是当我运行命令时 npm run watch 在README.md文件中,我得到以下错误 ERROR in ./resources/js/app.js Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: Package exports for 'C:

我正在尝试运行此应用程序

https://github.com/saeedvaziry/laravel-vue-polling-app.git
但是当我运行命令时

npm run watch
在README.md文件中,我得到以下错误

ERROR in ./resources/js/app.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Package exports for 'C:\Users\user\Desktop\laravel-vue-polling-app\node_modules\@babel\helper-compilation-targets' do not define a '.' subpath
    at applyExports (internal/modules/cjs/loader.js:485:15)
    at resolveExports (internal/modules/cjs/loader.js:508:12)
    at Function.Module._findPath (internal/modules/cjs/loader.js:577:20)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:879:27)
    at Function.Module._load (internal/modules/cjs/loader.js:785:27)
    at Module.require (internal/modules/cjs/loader.js:956:19)
    at require (C:\Users\user\Desktop\laravel-vue-polling-app\node_modules\v8-compile-cache\v8-compile-cache.js:161:20)
...........
导致此错误的原因是网页包配置无效,我在这里缺少什么,请帮助解决

查看github上的以下内容尝试删除
节点模块
目录并使用

npm安装

查看github上的以下内容,尝试删除
节点模块
目录,然后使用


npm安装

暗中拍摄,但这在这里可能很有用:确保您正在运行最新的npm,删除lock and node_modules文件夹,然后重试。请尝试通过
npm install--no bin links
Shot in dark安装依赖项,但此处可能有用:确保您正在运行最新的npm,删除lock和node_modules文件夹,然后重试。尝试通过
npm安装来安装依赖项--无bin链接