Reinstalled ionic , cordova and node js completly , after this Deprication error of node js promise is generating. this not able to perform cordova add platform or any plugin. System not adding platform android
ionic cordova platform add android
Using cordova-fetch for cordova-android@~7.0.0
(node:6352) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): CordovaError: Failed to fetch platform cordova-android@~7.0.0
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: cmd: Command failed with exit code 1 Error output:
The filename, directory name, or volume label syntax is incorrect.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})
(node:6352) [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.
i have resinstalled the node version, codova n ionic. ionic project is working as ionic serve , when goin to add cordova platform or anything related to cordova this unhandled promise appears .
ionic info --verbose
[DEBUG] Reason for not using local CLI: LOCAL_CLI_NOT_FOUND
[DEBUG] CLI flags: { interactive: true, confirm: false }
[DEBUG] { cwd: ‘D:\india’, local: false, binPath:
‘C:\Users\Sahil\AppData\Roaming\npm\node_modules\ionic\bin\ionic’, libPath:
‘C:\Users\Sahil\AppData\Roaming\npm\node_modules\ionic\dist\index.js’ }
[DEBUG] Daemon found (pid: 10588)
Here is the add platform command with verbose. As far as i know that cordova not fetching any thing and given some promise issue.
ionic cordova platform add android --verbose
[DEBUG] Reason for not using local CLI: LOCAL_CLI_NOT_FOUND
[DEBUG] CLI flags: { interactive: true, confirm: false }
[DEBUG] { cwd: ‘D:\india’, local: false, binPath:
‘C:\Users\Sahil\AppData\Roaming\npm\node_modules\ionic\bin\ionic’, libPath:
‘C:\Users\Sahil\AppData\Roaming\npm\node_modules\ionic\dist\index.js’ }
[DEBUG] Daemon found (pid: 9580)
cordova platform add android --save
Using cordova-fetch for cordova-android@6.0.0
(node:9676) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): CordovaError: Failed to fetch platform cordova-android@6.0.0
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: cmd: Command failed with exit code 1 Error output:
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})
(node:9676) [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.
that looking something different now i downgraded the cordova cli and getting this msj in win10, please take a look.
Error: Failed to fetch platform cordova-android@6.0.0
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: cmd: Command failed with exit code 1 Error output:
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
┌────────────────────────────────────────────────────────────┐
│ npm update check failed │
│ Try running with sudo or get access │
│ to the local update config store via │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\Sahil.config │
└────────────────────────────────────────────────────────────┘
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})