npm run dev
。我安装了新的Laravel项目,使用SSR和团队支持安装了Laravel JetStream,执行了'npm install'命令。
每次我运行
npm run dev
时都会显示这个:
如果我打开本地链接,它会显示这个:
为什么我不能使用npm run dev
来编译我的文件?这是我全新的Laravel应用程序的package.json。
{
"private": true,
"scripts": {
"dev": "vite",
"build": "vite build && vite build --ssr"
},
"devDependencies": {
"@inertiajs/inertia": "^0.11.0",
"@inertiajs/inertia-vue3": "^0.6.0",
"@inertiajs/progress": "^0.2.7",
"@inertiajs/server": "^0.1.0",
"@tailwindcss/forms": "^0.5.2",
"@tailwindcss/typography": "^0.5.2",
"@vitejs/plugin-vue": "^2.3.3",
"@vue/server-renderer": "^3.2.31",
"autoprefixer": "^10.4.7",
"axios": "^0.25",
"laravel-vite-plugin": "^0.2.1",
"lodash": "^4.17.19",
"postcss": "^8.4.14",
"tailwindcss": "^3.1.0",
"vite": "^2.9.11",
"vue": "^3.2.31"
}
}
如果我尝试在终端中输入'vite',我会得到以下结果: