[英]Laravel Jetstream install Bootstrap and Jquery
我已將 Jetstream 和 Livewire 安裝到我的 Laravel 8 項目中。 但我不知道如何將 JQuery 和 Bootstrap 包含到我的項目中。 我怎樣才能做到這一點?
編輯:引導部分已被理解,但仍無法安裝 Jquery。
JQUERY 零件
正如@codedge 所說,我試圖在我的項目文件夾和其他地方運行npm require jquery
命令,它給了我這個 output:
Usage: npm <command>
where <command> is one of:
access, adduser, audit, bin, bugs, c, cache, ci, cit,
clean-install, clean-install-test, completion, config,
create, ddp, dedupe, deprecate, dist-tag, docs, doctor,
edit, explore, fund, get, help, help-search, hook, i, init,
install, install-ci-test, install-test, it, link, list, ln,
login, logout, ls, org, outdated, owner, pack, ping, prefix,
profile, prune, publish, rb, rebuild, repo, restart, root,
run, run-script, s, se, search, set, shrinkwrap, star,
stars, start, stop, t, team, test, token, tst, un,
uninstall, unpublish, unstar, up, update, v, version, view,
whoami
npm <command> -h quick help on <command>
npm -l display full usage info
npm help <term> search for help on <term>
npm help npm involved overview
Specify configs in the ini-formatted file:
C:\Users\YARKIN\.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config
npm@6.14.10 D:\nodejs\node_modules\npm
Did you mean this?
rebuild
EDIT-2:我無法將 Jquery 添加到我的 public\js\app.js 中,盡管我已經安裝並需要它 resources\js\app.js。
Jetstream 不支持 Bootstrap 和 jQuery - 這是有意的,如此Github 問題中所述。
有一個 package 為 Jetstream 帶來了對 Bootstrap 的支持: https://github.com/nascent-africa/jetstrap
jQuery 可以通過npm install jquery
並在您的app.js
中required
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.