[英]Error running “npm install && npm run dev” when setting up Laravel 8
I'm trying to set up Laravel 8, and I'm getting this error.我正在尝试设置 Laravel 8,但出现此错误。 What do I need to do to fix it?
我需要做什么来修复它?
PS C:\wamp64\www\edularavel\Eduzone> php artisan ui vue --auth
Vue scaffolding installed successfully.
Please run "npm install && npm run dev" to compile your fresh scaffolding.
Authentication scaffolding generated successfully.
PS C:\wamp64\www\edularavel\Eduzone> npm install && npm run dev
At line:1 char:13
+ npm install && npm run dev
+ ~~
The token '&&' is not a valid statement separator in this version.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : InvalidEndOfLine
PS C:\wamp64\www\edularavel\Eduzone>
You're running the commands in PowerShell, but the instructions assume you're running in a standard Unix shell.您在 PowerShell 中运行命令,但说明假设您在标准 Unix shell 中运行。
In a Unix shell, a && b
means "run a
, and if it's successful, run b
".在 Unix shell 中,
a && b
表示“运行a
,如果成功,运行b
”。
So you can follow the instructions just by running the two separate commands yourself:因此,您只需自己运行两个单独的命令即可按照说明进行操作:
npm install
npm run dev
You might want to find some tutorials on basic command-line syntax, both to handle situations like this, and so that you don't accidentally run a command you didn't understand, and find you can't undo it.您可能希望找到一些有关基本命令行语法的教程,既可以处理此类情况,又可以避免意外运行您不理解的命令,并且发现无法撤消它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.