Pour résoudre l'erreur connot /get sur le localhost, vous devez installer le paquet ci-dessous.
sudo npm install --save-dev --unsafe-perm node-sass
Installer homebrew pour gradle
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
installer gradle
brew install gradle
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
Corriger l'erreur “TypeError: fsevents is not a constructor”
npm audit fix --force
sudo npm i fsevents --unsafe-perm=true --allow-root
Problème d'installation bibliothèque :
Remove nodejs sur osx :
sudo rm -rf /usr/local/lib/dtrace/node.d /usr/local/lib/node_modules /usr/local/bin/npm /usr/local/bin/nodemon /usr/local/bin/node /usr/local/include/node ~/.npm* ~/.node* /usr/local/share/man/*/node* /usr/local/share/man/*/npm*
npm version -6.14.9
node version -14.15.3
ionic version 6.12.3
Erreur : bash: /usr/local/bin/node: No such file or directory
Solution
brew link --overwrite node
Downgrading
npm
/node
did not work for me, but uninstallyarn
worked.It is quite possible that you have Yarn is clashing with NPM. I tried removing Yarn, and
node_modules
and re-installing.For example, if you are using Brew, you could do the following:
# Uninstall Yarn brew uninstall yarn brew update brew doctor
# Uprade Node & NPM brew upgrade node npm install -g npm@latest
Then in your project directory:
cd my-cordova-project rm -rf node_modules
Then I found broken links in my
package.json
for example: package dependancies with no version number that linger from installs that did not complete.Then l installed everything again with
npm
:Here is my version info: