Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Aarthi

macrumors newbie
Original poster
May 2, 2021
3
0
Hi all,

I'm trying to set up my MacBook Pro to run automation scripts for both iOS and Android.
To do so, I installed npm and node. But since I didn't have the latest java version, I deleted some of the softwares which is already installed like home-brew, Carthage,node, npm, Appium-doctor, removed Xcode, Appium desktop sw and then tried re-install everything again...At this time when I provide any npm commands, I get "Killed 9" error.

$ npm -v
Killed: 9
$ npm install -g appium
Killed: 9

Hardware/SW details:
MacBook Pro
macOS Big Sur Version 11.2.3
Chip: Apple M1

I have been trying to resolve this for a very long time. But unable to get a solution.
Please help. Thanks.
 
Follow this. Then run find / '*node*' and delete all related node files. Do the same for all find / '*npm*'.

Then run brew doctor and then brew prune. uninstall homebrew and restart your machine.

Then do a clean install of brew, node, npm, whatever.
 
  • Like
Reactions: Aarthi
Follow this. Then run find / '*node*' and delete all related node files. Do the same for all find / '*npm*'.

Then run brew doctor and then brew prune. uninstall homebrew and restart your machine.

Then do a clean install of brew, node, npm, whatever.
Thanks for your suggestions... I can find a lot of node files with find / '*node*' command. Can you provide the command to delete both node files and npm?
Sorry I'm very new to Mac. Thanks.
 
Thanks for your suggestions... I can find a lot of node files with find / '*node*' command. Can you provide the command to delete both node files and npm?
Sorry I'm very new to Mac. Thanks.
 

Attachments

  • Screenshot 2021-05-02 at 4.01.21 PM.png
    Screenshot 2021-05-02 at 4.01.21 PM.png
    1,006.3 KB · Views: 237
  • Screenshot 2021-05-02 at 4.01.00 PM.png
    Screenshot 2021-05-02 at 4.01.00 PM.png
    963.3 KB · Views: 218
You do not have a lot of node files - see last line your second screenshot.
so uninstall homebrew, reboot, install brew, install node, install npm.
 
Last edited:
  • Like
Reactions: Aarthi
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.