I tried nightly, previously cleaned `platforms` and `plugins` folders, but kept `node_modules` and `yarn.lock` intact. Here's the result of running `cordova platform add android`:
<details> <summary>Click to view output</summary> ``` Using cordova-fetch for [email protected] Adding android project... Creating Cordova project for the Android platform: Path: platforms/android Package: com.naturalcycles.cordova Name: Natural_Cycles Activity: MainActivity Android target: android-27 Subproject Path: CordovaLib Subproject Path: app Android project created with [email protected] Android Studio project detected Android Studio project detected *** /Users/kirill/Idea/NCApp3/cordova-hooks/before_prepare.js started *** Command failed: yarn ts-node -r tsconfig-paths/register ./src/scripts/addSourceMappingUrl.ts --dir /Users/kirill/Idea/NCApp3/www/build module.js:549 throw err; ^ Error: Cannot find module 'minimist' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object.<anonymous> (/Users/kirill/Idea/NCApp3/node_modules/ts-node/dist/bin.js:9:16) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) error Command failed with exit code 1. ``` </details> It broke on one of our cordova hooks, because previously it "screwed" `node_modules`, so package `minimist` disappeared (it's not even our dependency, it's some sub-dependency of something). It generated `package-lock.json` as a proof that it used `npm` underneath, and it's known that you cannot run `npm` when you have `node_modules` folder installed by Yarn. So, problem is there. [ Full content available at: https://github.com/apache/cordova-cli/issues/303 ] This message was relayed via gitbox.apache.org for [email protected]
