cordova plugin add cordova-plugin-image-picker

npm-weekly

(Adong P) #1

执行cordova plugin add cordova-plugin-image-picker之后,报错:
(node:14452) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Failed to fetch plugin cordova-plugin-image-picker via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: cmd: Command failed with exit code 1 Error output:
Unhandled rejection RangeError: Maximum call stack size exceeded
at RegExp.test ()
at C:\dev\nvm\npm\node_modules\npm\node_modules\aproba\index.js:38:16
at Array.forEach (native)
at module.exports (C:\dev\nvm\npm\node_modules\npm\node_modules\aproba\index.js:33:11)
at flatNameFromTree (C:\dev\nvm\npm\node_modules\npm\lib\install\flatten-tree.js:37:3)
at flatNameFromTree (C:\dev\nvm\npm\node_modules\npm\lib\install\flatten-tree.js:39:14)
at flatNameFromTree (C:\dev\nvm\npm\node_modules\npm\lib\install\flatten-tree.js:39:14)
at flatNameFromTree (C:\dev\nvm\npm\node_modules\npm\lib\install\flatten-tree.js:39:14)
at flatNameFromTree (C:\dev\nvm\npm\node_modules\npm\lib\install\flatten-tree.js:39:14)
at flatNameFromTree (C:\dev\nvm\npm\node_modules\npm\lib\install\flatten-tree.js:39:14)
at flatNameFromTree (C:\dev\nvm\npm\node_modules\npm\lib\install\flatten-tree.js:39:14)
at flatNameFromTree (C:\dev\nvm\npm\node_modules\npm\lib\install\flatten-tree.js:39:14)
at flatNameFromTree (C:\dev\nvm\npm\node_modules\npm\lib\install\flatten-tree.js:39:14)
at flatNameFromTree (C:\dev\nvm\npm\node_modules\npm\lib\install\flatten-tree.js:39:14)
at flatNameFromTree (C:\dev\nvm\npm\node_modules\npm\lib\install\flatten-tree.js:39:14)
at flatNameFromTree (C:\dev\nvm\npm\node_modules\npm\lib\install\flatten-tree.js:39:14)
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! https://npm.community

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Program Files\nodejs\node_cache_logs\2018-10-08T01_33_48_556Z-debug.log
(node:14452) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
node试过的有8.0.0 8.1.0 8.11.0,请问这个问题该怎么解决?


(Jenn Turner) #2

I think this submission might be an error. :confused: