[英]Why Laravel 7 Does not accept bootstrap effect? and shows error=>> “npm install && npm run dev” to compile your fresh scaffolding
At first, I run the command: that install laravel package for the web.首先,我运行命令:为 web 安装 laravel package。
composer require laravel/ui
Then we Write another command, that create log-in and registration view,然后我们编写另一个命令,创建登录和注册视图,
php artisan ui:auth
and then I follow the other commands然后我按照其他命令
php artisan ui bootstrap
php artisan ui vue
php artisan ui react
now when I run: php artisan ui bootstrap command it shown error=>please run "npm install && npm run dev" to compile your fresh scaffolding现在当我运行:php artisan ui bootstrap 命令显示错误=>请运行“npm install && npm run dev”来编译你的新脚手架
Then I install the Nodejs setup from [ https://nodejs.org/en/download/][1]然后我从 [ https://nodejs.org/en/download/][1]安装 Nodejs 设置
I also added the Environment variable path on my computer.我还在我的计算机上添加了环境变量路径。
Steps :步骤:
press windows key => Type 'environment variabl' => press ok.按 windows 键 => 键入“环境变量” => 按确定。 => click on-environment variables => select path => edit => new => C:\Program Files\nodejs (according to your path) => ok
=> 点击环境变量 => select 路径 => 编辑 => 新 => C:\Program Files\nodejs (根据你的路径) => 好的
still when I run php artisan ui bootstrap
, it shows the same error,仍然当我运行
php artisan ui bootstrap
时,它显示相同的错误,
please run "npm install && npm run dev" to compile your fresh scaffolding请运行“npm install && npm run dev”来编译你的新脚手架
Help me for this problem...帮我解决这个问题...
Simply run these commands after installing node.js and setting Environment,安装 node.js 并设置环境后,只需运行这些命令,
npm install
npm run dev
the actual source is,实际来源是,
https://www.techiediaries.com/laravel/laravel-7-6-authentication-tutorial-login-register-password-reset-example/ https://www.techiediaries.com/laravel/laravel-7-6-authentication-tutorial-login-register-password-reset-example/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.