Source: pineco.de

Update npm Dependencies
Updating npm dependencies isn’t a big task, but sometimes it can be more complicated depending on our needs. To understand the package updating mechanism, first, we have to understand the versioning of the packages and the nature of npm.

It will only update to an allowed, close-by version (which is determined by the prefix character: ^, ~): npm update "dependencies": {"sass": "^1.45.2", }

With npm update, we can’t update to a major version (the first number). We should use the npm install command with the latest keyword (using the @ character, we can specify version numbers).
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners