framework7io / framework7

Full featured HTML framework for building iOS & Android apps
http://framework7.io
MIT License
18.04k stars 3.23k forks source link

rimraf error when: npm run build-cordova #4137

Open kylex opened 1 year ago

kylex commented 1 year ago

A thorough description of the bug can be found on the forum, along with a potential fix: https://forum.framework7.io/t/error-rimraf-when-npm-run-build-cordova/16112/7

Basic error is, when running npm run build-cordova or npm run build-cordova-ios or npm run build-cordova-android

The following error occurs:

/Users/myinfo/Sites/my-app/node_modules/rimraf/dist/cjs/src/index.js:21
        throw new Error('invalid rimraf options');
              ^

Error: invalid rimraf options
    at assertRimrafOptions (/Users/myinfo/Sites/my-app/node_modules/rimraf/dist/cjs/src/index.js:21:15)
    at exports.default (/Users/myinfo/Sites/my-app/node_modules/rimraf/dist/cjs/src/opt-arg.js:5:40)
    at /Users/myinfo/Sites/my-app/node_modules/rimraf/dist/cjs/src/index.js:32:46
    at Object.<anonymous> (/Users/myinfo/Sites/my-app/build/build.js:21:1)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47
mydldlt commented 1 year ago

"rimraf": "^3.0.2",