3
votes

Can anyone suggest the proper command to write on Terminal window in OSX to update minimatch script. I tried the following:

$ sudo npm update -g minimatch

It looks like commands got executed with no result messages . Then later checked with the command:

$ sudo minimatch --version

it else end in a error:

-bash: minimatch: command not found

I don't know exactly , but i feel something is wrong. Could anyone tell me if anything wrong made in above 2 syntax.

I tried a lot searching for articles , but not a one specific to my problem . Thanks ahead for your advice to find a fix for my problem

Thanks!

2
minimatch doesn't install a CLI tool, it's a Node module that you can use from your own code.robertklep
You shouldn't sudo all the things either. docs.npmjs.com/getting-started/fixing-npm-permissionsSeth
Seeing every post here on SO says to use sudo with the npm update like commands on osx.ficuscr
Command to update minimatch $ npm update -g minimatch Check the updated version of minimatch $ npm view minimatch versionADJ

2 Answers

0
votes

I tried this, it will update minimatch at the same time:

$ npm install npm -g
-1
votes
$ sudo npm install -g minimatch

worked for me !