Reputation: 624
I'm scaffolding the vue
app frontend
using webpack
:
vue init webpack frontend
cd frontend
For this app, I need - among others - axios
, hence:
npm install axios
Now I push the code to the repo and clone the repo from another computer.
My question is:
How do I make sure all the required npm libraries are there on the new computer so that npm run build
succeeds?
Upvotes: 1
Views: 231
Reputation: 14010
When you check out the repo on a new system, you will run
npm install
to fetch all the node_modules
associated with the project. Make sure your package-lock.json
was checked into git so that you will be guaranteed to fetch the exact same versions as were intended in the commit.
Upvotes: 3