`tabris run` and `tabris build` Raises Error
I have a working TabrisJs app (via tabris serve).
The Problem
When I use tabris build or tabris run for iOS platform, npm raises error as the following:
jokorivai@Buyuts-2 id.co.jamkridasulsel-sbapp-tjs3.8.1 % tabris build ios
[./] npm run --if-present build:ios
[./] npm run --if-present build
[./] Copying Cordova files to build/cordova ...
[./] Removing old JavaScript files in build/cordova/www/app ...
[./] Copying JavaScript files to build/cordova/www/app ...
[build/cordova/www/app] npm ci --production
Usage: npm <command>
where <command> is one of:
access, adduser, bin, bugs, c, cache, completion, config,
ddp, dedupe, deprecate, dist-tag, docs, doctor, edit,
explore, get, help, help-search, i, init, install,
install-test, it, link, list, ln, login, logout, ls,
outdated, owner, pack, ping, prefix, profile, prune,
publish, rb, rebuild, repo, restart, root, run, run-script,
s, se, search, set, shrinkwrap, star, stars, start, stop, t,
team, test, token, tst, un, uninstall, unpublish, unstar,
up, update, v, version, view, whoami
npm <command> -h quick help on <command>
npm -l display full usage info
npm help <term> search for help on <term>
npm help npm involved overview
Specify configs in the ini-formatted file:
/Users/jokorivai/.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config
[email protected] /usr/local/lib/node_modules/npm
Did you mean one of these?
c
i
The command npm exited with 1
Tabris Version
** Tabris -V shows 3.8.1 ** The package.json has the following content (used to compile succesfully on TabrisJs-v3.6): ** OSX Catalina ** Node v3.9.0 ** NPM v5.5.1
{
"main": "src/app.js",
"private": true,
"scripts": {
"test": "eslint .",
"start": "tabris serve -a"
},
"dependencies": {
"tabris": "~3.8.0",
"typescript": "3.8.x",
"tabris-decorators": "3.5.0",
"chart.js": "1.0.1",
"elementtree": "^0.1.7",
"shelljs": "^0.8.2",
"xcode": "^1.0.0",
"xml2js": "^0.4.22"
},
"devDependencies": {
"eslint": "^7.1.0"
}
}
Please aid me. Thank you 🙏
Just found out that my npm version was too old. Updating node to latest LTS version (including compatible NPM) solves the problem. Thank you.
Sorry for reopening this issue. I am stuck with this issue #2238 and did follow cookieguru's comment but the issue remains.
Any advice will be highly appreciated. Thank you.
@jokorivai Are you really using node version 3.9.0?
@jokorivai Are you really using node version 3.9.0?
No. It was a typo. I believe I was using 9.3.0 at the time.
No update fixes the problem and I had to rollback to npm 6.14.17, combined with Node 16.17.1 and Cordova 11.0.0.
The problem is gone now.