Async-Await are new keywords that are introduced in ES2017 to write async functions. Basically, what it means is that you can write promises in a more readable way. Let’s take a look at this with an example.
- Détails
- Écrit par Richard GAUTHIER
- Affichages : 1251
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: