install packages on MacOS m1 Monterey - macos

I have a problem with installation packages on my macOS Monterey machine with m1 chip. My project has been created using Vue2/NuxtJS. And when I try to install packages with command sudo npm i - I get errors:
Please help, what I'm doing wrong?

I ran into same issue. In my case, I had to downgrade npm version.

Related

Mac (M1 Monterey) cant open application Reactotron using dmg install

After downloading Reactotron (v2.17.1), I am getting a Mac error The application "Reactotron" can't be opened.
I was able to get it to install and run using homebrew with:
brew install --cask reactotron
Thanks to the Reactotron help forum.

cocoapods not installed in macos big sur flutter

it's my first using macOS I downloaded big sur version and I had install flutter
when I run flutter doctor I see this problem
Idk how to solve it
and i saw many answers here but still not working
it fixed when i install homebrow
If you are using an M1 mac, you can download ffi first by this command:
sudo arch -x86_64 gem install ffi
then run pod commands like this :
arch -x86_64 pod install

homebrew php install on El Capitan fails # nghttp2 dependency

Following the Laravel guide to install valet on MacOS 10.11 El Capitan using homebrew, fails during php install # nghttp2 dependency
Specifically php install depends on httpd which in turn depends on nghttp2.
nghttp2 installation fails with (Brew was unable to install [nghttp2].)
Last 15 lines from /Users/<username>/Library/Logs/Homebrew/nghttp2/02.make: _LIBCPP_INLINE_VISIBILITY unique_ptr(unique_ptr&& __u) _NOEXCEPT shrpx_client_handler.cc:1002:10: error: no viable conversion from returned value of type 'unique_ptr
Do not report this issue to Homebrew/brew or Homebrew/core!
Homebrew does warn that my OS is out of date and unsupported, however, El Capitan is the latest OS that will install on my hardware.
I have tried brew installing an older version of nghttp2, thinking that might compile on El Cap, but no luck.
I'm not sure what to try next.
install before
brew install gcc
brew install --cc=gcc-8 nghttp2

Install Ionic Cordova Error

I am trying to install Ionic 2 on a OSx machine. I did install Node.js. When I run the following:
$ npm install -g ionic cordova
I get this error:
If anyone can assist, I would appreciate it.
UPDATE:
Downgraded Node to v6.9.1 and still get the same error:
UPDATE
As suggested below, I tried:
npm cache clean
But still get the same error:
UPDATE
If I try install a specific version, I get the following error:
sudo npm install -g ionic#2.0.0-beta.20 cordova
to install ionic in mac
you have to install nodejs .
to install ionic as per the official doc if you are using linux or mac you should use sudo command
try
sudo npm install -g ionic cordova
note
your npm version should be greater then 3.x
that version of node its the current so maybe its nos stable at all. I recommend to instal NVM (node version manager) from here this is like a "sand-box" where you have all node version you want and can switch between them.
You only need to run nvm install 5.11.0 and nvm will download that node version for you. Then to use a specific node version you need to run nvm use 5.11.0 and thats all.
I recommend to install 5.11.0 for example, its the node version that im using atm and its working fine with ionic2 RC3.
After downgrading your node.js clean npm cache.
npm cache clean
and try the installation again

Unable to install appium 1.6.0-beta3 using npm as error(refer to attached screenshot) arises

problem screenshotDetails:
Xcode version 8.0 Mac OS sierra 10.12
Did you run the npm command with sudo before? In my windows machine I had same problem with 1.6.0-beta2. But when I executed using elevated login it worked. If this is mac I would suggest using avm.
I will try the same with AVM on my mac later today and I will update you if I see same problem.
Try installing with Brew.
Run these commands at the terminal one after one:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install node
npm install -g appium
(Running this will install the latest stable version, but if you want to install a specific verstion then run e.g. npm install -g appium#1.4.16)
Hope it helps :)

Resources