zsh - bash spawn bin/zsh ENOENT error
Hello!
I am having problems with npm packages installed on my MacOS big sur 11.6.3.
Each time I try to install an npm package using terminal on VSCode or Simple Terminal I have an installation fail with this output:
---------------------------------------------
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn bin/zsh
npm ERR! file bin/zsh
npm ERR! path bin/zsh
npm ERR! errno -2
npm ERR! core-js-pure@3.20.3 postinstall: `node -e "try{require('./postinstall')}catch(e){}"`
npm ERR! spawn bin/zsh ENOENT
npm ERR!
npm ERR! Failed at the core-js-pure@3.20.3 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
I have tried different approaches to install the packages but with no success, not quite sure if it's a permission problem, or environment....not very well versed on these 2 topics.
But on my MacBook air running a late version of macOS I believe it's 10.11, no such problems exist....I have developed a complete application there using the same packages I am trying to install on my iMac.
Anyone come across this problem and can point me to a solution?
Many Thanks
R.V
iMac 27″ 5K, macOS 11.6