Mac OS – A Weblog of Priyank Maniar https://priyank.rocks Articles on web development & mobile app development Thu, 06 Oct 2022 15:37:03 +0000 en-US hourly 1 https://wordpress.org/?v=6.6.2 Issues post Macbook Pro M1 Upgrade https://priyank.rocks/issues-post-macbook-pro-m1-upgrade/ Thu, 06 Oct 2022 15:28:37 +0000 https://priyank.rocks/?p=9176 The first issue was, the npm install for my project suddenly stopped working. In the past, I have used the same project across multiple computers (mac included) but this was never an issue.

The solution was quite easy though. If found sooner 😉


1
2
3
4
rm -rf package-lock.json
rm -rf node_modules

npm install

That’s it. That did it. Before that I was lost in errors with no clue. Following were the errors that I was getting.

Error 1: fibers@4.0.1

Error 2: node-gyp error

Error 3: “Make Failed with Exit Code 2” Error

Note: I had to then later use node 16 (nvm use 16) In order to make the npm run watch-poll work but yes, it’s all working now. This was because node not supporting something old in their latest version. No real threat.

]]>
Mac OS Increasing Priority for a Task/Process https://priyank.rocks/mac-os-increasing-priority-for-a-task-process/ Tue, 27 Sep 2022 14:09:00 +0000 https://priyank.rocks/?p=9151 Open the Activitiy monitor. In the cpu/memory tab you will see a column for PID. That’s the process ID.

To set that as a high priority run the following


1
sudo renice -n -10 14394

I read somewhere that mac assigns process from -10 to 10. So should be nice to be within those bounds.

Renice is to be run second time but it worked for me. Read more here.

]]>
All About Switching PHP Versions on Mac https://priyank.rocks/all-about-switching-php-versions-on-mac/ Wed, 22 Dec 2021 11:21:26 +0000 https://priyank.rocks/?p=8715 How to switch off php 8.1 on mac installed through brew?

Sometimes it is necessary to manually turn off a PHP version. sphp alone does not do the job. Here’s how to do it.


1
brew unlink php@8.1

Switching the versions when we have a different homebrew PHP tap!


1
brew link --overwrite --force shivammathur/php/php@8.0
]]>
Unable to locate DeviceSupport directory https://priyank.rocks/unable-to-locate-devicesupport-directory/ Mon, 18 Sep 2017 13:15:55 +0000 http://priyank.rocks/?p=34 https://stackoverflow.com/questions/22757700/unable-to-locate-devicesupport-directory-ios-7-1

]]>