安装cordova-sqlite-storage时出错

问题描述 投票:0回答:1

我正在尝试使用以下命令在cordova中安装sqlite插件:'ionic cordova plugin add cordova-sqlite-storage'但是收到错误'无法读取属性'堆栈'未定义'。

NPM版本:3.5.2,nodejs版本:v8.10.0,cordova verion:8.1.2([email protected]),离子版本:4.10.3

错误日志如下:

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 ]
sqlite cordova npm cordova-plugins cordova-sqlite-storage
1个回答
1
投票

解决了它。问题是因为安装了较旧的npm。更新了npm,它正在运行。

© www.soinside.com 2019 - 2024. All rights reserved.