Node.js · Middle · Question 68 of 75

What is a risk of postinstall scripts in dependencies?

Explanation

Pin versions with a lock file, review new dependencies and consider --ignore-scripts or an allow list for packages that really need install scripts.

Further reading

Problem with a question

Node.js · Middle · question 68

Test yourself

Take the Node.js · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz