Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I've installed Jetstream and Livewire to my Laravel 8 project. But i couldn't figure out how to include JQuery and Bootstrap to my project. How can i do that?

EDIT: Bootstrap part is understood but still can't install Jquery.

JQUERY part

As @codedge said i tried to run npm require jquery command both in my project folder and in somewhere else and it gave me this 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:UsersYARKIN.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:
odejs
ode_modules
pm

Did you mean this?
    rebuild

EDIT-2: I can't add Jquery to my publicjsapp.js eventhough i have is installed and required it it resourcesjsapp.js.

question from:https://stackoverflow.com/questions/65937220/laravel-jetstream-install-bootstrap-and-jquery

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
451 views
Welcome To Ask or Share your Answers For Others

1 Answer

Jetstream does not support Bootstrap and jQuery - this is by intention as explained in this Github issue.

There is a package that brings the support for Bootstrap to Jetstream: https://github.com/nascent-africa/jetstrap

jQuery can be installed via npm install jquery and required in your app.js.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...