Higher NPM World Set up


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.

In my ~/.dotfiles listing I’ve a node folder with a bundle.json. Each time I want a software I set up it to this challenge.

In my ~/.zshrc I add ~/.dotfiles/node/node_modules/.bin to my $PATH.

export PATH="$HOME/.dotfiles/node/node_modules/.bin:$PATH"

Now I can entry these npm command line instruments and maintain them versioned.

Brian Sunter
Brian Sunter

I’ve spent all my life on high of a mountain, studying the best way of the Ninja Dev.

Article supply :=> Read More


Please enter your comment!
Please enter your name here