Modern Full-Stack Development


Auditing Package Security



Download 5,64 Mb.
Pdf ko'rish
bet28/107
Sana06.08.2021
Hajmi5,64 Mb.
#140576
1   ...   24   25   26   27   28   29   30   31   ...   107
Bog'liq
Modern Full-Stack Development Using TypeScript, React, Node

 Auditing Package Security
The sad reality is that, sometimes, packages you use will be discovered to have security 
vulnerabilities, just like any other software you use. But, being aware of this, the NPM 
team has constructed a useful command for dealing with this:
npm audit
Running this command will scan your package.json file (or global packages if you 
use -g) and submit the list of dependencies to the default NPM registry requesting a 
report on any known vulnerabilities in them. This report will also include information on 
how to remediate. But, if you want the quick answer, execute this command:
npm audit fix
That will cause NPM to update any vulnerable packages with the newest available 
version that hasn’t had the vulnerability reported in it.
If you’d like to see a detailed audit report, execute
npm audit --json
or, if you prefer plain text
npm audit --readable
Finally, if you’d like to see what npm audit fix would do but without literally doing 
it, you can use
npm audit fix --dry-run

Download 5,64 Mb.

Do'stlaringiz bilan baham:
1   ...   24   25   26   27   28   29   30   31   ...   107




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish