A greater strategy to handle world npm command line instruments.
I’ve at all times disked operating
npm set up -g create-react-appto have a command line software. I additionally dislike
npx create-react-app as a result of it downloads the dependencies each time. I can not maintain observe of it or lock down the model simply. As a substitute I’ve a challenge in my dotfiles which I add to my path.
~/.dotfiles listing I’ve a
node folder with a
bundle.json. Each time I want a software I set up it to this challenge.
~/.zshrc I add
~/.dotfiles/node/node_modules/.bin to my
Now I can entry these npm command line instruments and maintain them versioned.
Article supply :=> Read More