Replies: 3 comments 2 replies
-
This is what the link says
It means that most apps have a build script for building the app |
Beta Was this translation helpful? Give feedback.
-
Hello, first, I'd like to apologize for the late response. I ran "ionic build" and I got this message - [ERROR] Sorry! ionic build can only be run in an Ionic project directory. After that, I added to my package.json this code to scripts section: "test": "echo "Error: no test specified" && exit 1", As my next step I ran "npx cap sync" and "ionic build --verbose" I got this message: 'ionic-app-scripts' is not recognized as an internal or external command,
ionic:utils-process onBeforeExit handler: 'process.exit' received +0ms After this message I tried install " npm install @ionic/app-scripts@latest --save-dev" , but I got this message npm ERR! gyp info using [email protected] Python is in .npmrc config file written as and it is in system PATH too. Thanks for your help me. |
Beta Was this translation helpful? Give feedback.
-
It is an Apache Cordova android application. Main folder has this structure .vs WWW folder includes -components After migration main folder structure includes .vs Thanks |
Beta Was this translation helpful? Give feedback.
-
Hello, I tried migrate from Cordova to Capacitor using this instructions on web page URL
https://capacitorjs.com/cordova
After migrations I tried to run command
npm run build
but I got this error
npm ERR! Missing script: "build"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\aldik\AppData\Local\npm-cache_logs\2022-12-12T11_13_29_759Z-debug-0.log (Log file is an attachment)
My package.json includes this section
"scripts": {
"test": "echo "Error: no test specified" && exit 1"
},
Can anybody help me fix this issue - missing build scripts? I have tried multiple tutorials on the internet but without success.
(for example add to this section "ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve" )
Regards
Aldik
log.txt
Beta Was this translation helpful? Give feedback.
All reactions