Upgrade to NODE 8.9.1 failed npm install - requires a peer of @ionic-native/core but none is installed


#1
PS C:\Users\2bher\WebstormProjects\ionic3-angular4_2> npm install @ionic-native/core --save
npm WARN @ionic-native/google-maps@3.12.1 requires a peer of @ionic-native/core@^3.6.0 but none is installed. You must install peer dependencies yourself.

npm ERR! Cannot read property '0' of undefined

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\2bher\AppData\Roaming\npm-cache\_logs\2017-11-19T10_08_51_834Z-debug.log
 verbose unlock done using C:\Users\2bher\AppData\Roaming\npm-cache\_locks\staging-31c922f28ba7a733.lock for C:\Users\2bher\WebstormProjects\ionic3-angular4_2\node_modules\.staging
965 warn @ionic-native/google-maps@3.12.1 requires a peer of @ionic-native/core@^3.6.0 but none is installed. You must install peer dependencies yourself.
966 verbose stack TypeError: Cannot read property '0' of undefined
966 verbose stack     at rmStuff (C:\Program Files\nodejs\node_modules\npm\lib\unbuild.js:61:24)
966 verbose stack     at tryCatcher (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\util.js:16:23)
966 verbose stack     at ret (eval at makeNodePromisifiedEval (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promisify.js:184:12), <anonymous>:13:39)
966 verbose stack     at lifecycle.then.then (C:\Program Files\nodejs\node_modules\npm\lib\install\action\unbuild.js:12:12)
966 verbose stack     at tryCatcher (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\util.js:16:23)
966 verbose stack     at Promise._settlePromiseFromHandler (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:512:31)
966 verbose stack     at Promise._settlePromise (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:569:18)
966 verbose stack     at Promise._settlePromise0 (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:614:10)
966 verbose stack     at Promise._settlePromises (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:693:18)
966 verbose stack     at Promise._fulfill (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:638:18)
966 verbose stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\nodeback.js:42:21
966 verbose stack     at <anonymous>
967 verbose cwd C:\Users\2bher\WebstormProjects\ionic3-angular4_2
968 verbose Windows_NT 10.0.15063
969 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "@ionic-native/core" "--save"
970 verbose node v8.9.1
971 verbose npm  v5.5.1
972 error Cannot read property '0' of undefined
973 verbose exit [ 1, true ]

How can I solve it quickly ?


#2

I personaly delete the node_modules folder an then do npm install when such an error is appearing.


#3

Like @user5555 after a node upgrade, always remove all node_modules and reinstall the libs

rm -r node_modules
npm install

Sometimes, when I want to be sure to get the last versions, I also remove package-lock.json

rm package-lock.json
rm -r node_modules
npm install

If not successful, maybe “force” use of latest?

npm install @ionic-native/core@latest --save

#4

The problem is it’s getting stucked
Not installing again all the packages and dependencies
Unmet dependencies and failes


#5

can you show us package.json. there is issue with your ionic-native dependencies


#6

I cleaned it and now when I run it it seems ok.
Now I have a new trouble…
1.the signed apk getting white screen of death .
2.if it’s in debug mode with cordova devtools extensions it uploading slow

all my definitions and packages inside –

described here… all help is appreciated . Thanks