Imprimer

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 :

Downgrading npm/node did not work for me, but uninstall yarn 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.

    {
        "name": "helloworld",
        "displayName": "HelloCordova",
        "version": "1.0.0",
        "description": "A sample Apache Cordova application that responds to the deviceready event.",
        "main": "index.js",
        "dependencies": {
            "cordova-android": "^6.2.3",
    
            // FAILED INSTALL MIGHT CREATE EMPTY VERSION
            "cordova-plugin-app-version": ""
        },
        "cordova": {
            "plugins": {
                "de.appplant.cordova.plugin.local-notification": {},
                "cordova-plugin-app-version": {}
            }
        }
    }

Then l installed everything again with npm:

npm install

Here is my version info:

node --version
v8.1.4
npm --version
5.3.0
cordova --version
7.0.1
 
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

Affichages : 1249