Reputation: 75
I am trying to install sqlite plugin in cordova with the following command : 'ionic cordova plugin add cordova-sqlite-storage' but getting an error 'Cannot read property 'stack' of undefined'.
NPM version : 3.5.2, nodejs version : v8.10.0, cordova verion : 8.1.2 ([email protected]) , ionic version : 4.10.3
The error log is as follows :
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install' ]
2 info using [email protected]
3 info using [email protected]
4 silly loadCurrentTree Starting
...
623 silly idealTree:prePrune +-- [email protected]
623 silly idealTree:prePrune +-- [email protected]
623 silly idealTree:prePrune +-- [email protected]
623 silly idealTree:prePrune +-- [email protected]
623 silly idealTree:prePrune +-- [email protected]
623 silly idealTree:prePrune +-- [email protected]
623 silly idealTree:prePrune +-- [email protected]
623 silly idealTree:prePrune +-- [email protected]
623 silly idealTree:prePrune +-- [email protected]
623 silly idealTree:prePrune +-- [email protected]
623 silly idealTree:prePrune +-- [email protected]
623 silly idealTree:prePrune +-- [email protected]
623 silly idealTree:prePrune `-- [email protected]
624 silly loadIdealTree Finishing
625 silly currentTree [email protected]
626 silly idealTree [email protected]
626 silly idealTree +-- [email protected]
626 silly idealTree +-- [email protected]
626 silly idealTree +-- [email protected]
626 silly idealTree +-- [email protected]
626 silly idealTree +-- [email protected]
626 silly idealTree +-- [email protected]
626 silly idealTree +-- [email protected]
626 silly idealTree +-- [email protected]
626 silly idealTree +-- [email protected]
626 silly idealTree +-- [email protected]
626 silly idealTree +-- [email protected]
626 silly idealTree +-- [email protected]
626 silly idealTree +-- [email protected]
626 silly idealTree +-- [email protected]
626 silly idealTree +-- [email protected]
626 silly idealTree +-- [email protected]
626 silly idealTree `-- [email protected]
627 silly generateActionsToTake Starting
628 silly install generateActionsToTake
629 verbose stack TypeError: Cannot read property 'target' of null
629 verbose stack at module.exports (/usr/share/npm/lib/install/filter-invalid-actions.js:24:36)
629 verbose stack at Array.<anonymous> (/usr/share/npm/node_modules/slide/lib/bind-actor.js:15:8)
629 verbose stack at LOOP (/usr/share/npm/node_modules/slide/lib/chain.js:15:14)
629 verbose stack at /usr/share/npm/node_modules/slide/lib/chain.js:18:7
629 verbose stack at Installer.computeLinked (/usr/share/npm/lib/install.js:411:41)
629 verbose stack at Array.<anonymous> (/usr/share/npm/node_modules/slide/lib/bind-actor.js:15:8)
629 verbose stack at LOOP (/usr/share/npm/node_modules/slide/lib/chain.js:15:14)
629 verbose stack at /usr/share/npm/node_modules/slide/lib/chain.js:18:7
629 verbose stack at module.exports (/usr/share/npm/lib/install/diff-trees.js:50:3)
629 verbose stack at Array.<anonymous> (/usr/share/npm/node_modules/slide/lib/bind-actor.js:15:8)
630 verbose cwd /home/arka/home/ionicProjects/goalTrackingApp/plugins/cordova-sqlite-storage
631 error Linux 4.15.0-45-generic
632 error argv "/usr/bin/node" "/usr/bin/npm" "install"
633 error node v8.10.0
634 error npm v3.5.2
635 error Cannot read property 'target' of null
636 error If you need help, you may report this error at:
636 error <https://github.com/npm/npm/issues>
637 verbose exit [ 1, true ]
Upvotes: 1
Views: 554
Reputation: 75
Solved it. The problem was because of older npm installed. Updated the npm and it is working.
Upvotes: 2