Cannot Install Npm Package (fsevents) On Mac Os Catalina
When I run npm install express --save this command, I'm getting an error. Can anyone please help me with this issue? Error: > fsevents@1.2.11 install /Users/delowar/Desktop/ytd
Solution 1:
Problem solved by reinstalling xcode command line tools.
Open Terminal & paste these code:
sudo rm -rf /Library/Developer/CommandLineTools
then
xcode-select--install
Note: - Be Careful using
rm
command
Solution 2:
I don't like to use the rm -rf command so an alternative option when you have brew installed with the "trash" formulae you can do on your terminal is :
trash Library/Developer/CommandLineTools
And then
xcode-select--install
If you don't have trash installed then you can do it on your terminal : https://formulae.brew.sh/formula/trash
brew install trash
Solution 3:
For me the instructions above didn't work. So, I came across a different solution:
> xcode-select -print-path /Library/Developer/CommandLineTools
> sudo xcode-select --reset
> xcode-select -print-path /Applications/Xcode.app/Contents/Developer
Post a Comment for "Cannot Install Npm Package (fsevents) On Mac Os Catalina"