Hello, I need to add the Cordova-sqlite-storage’s plugin to provide a database based on SQLite in my new project.
I installed it with this command :
ionic start SWMG blank -app-name="NewProject"
Secondly I tryed to add the plugin several times by typing this… I received each time the same error :
cordova plugin add cordova-sqlite-storage --save
Error: Failed to fetch plugin cordova-sqlite-storage@2.0.4 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 4294963248 Error output:
npm ERR! path c:\Users\PC\Documents\Apache www\Projets Ionic\SWMG\no
de_modules\fsevents\node_modules\dashdash\node_modules
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall scandir
npm ERR! Error: EPERM: operation not permitted, scandir ‘c:\Users\PC\Documents\Apache www\Projets Ionic\SWMG\node_modules\fsevents\node_modules\dashdash\node_modules’
npm ERR! { Error: EPERM: operation not permitted, scandir ‘c:\Users\PC\Documents\Apache www\Projets Ionic\SWMG\node_modules\fsevents\node_modules\dashdash\node_modules’
npm ERR! stack: ‘Error: EPERM: operation not permitted, scandir 'c:\Users\PC\Documents\Apache www\Projets Ionic\SWMG\node_modules\
fsevents\node_modules\dashdash\node_modules'’,
npm ERR! errno: -4048,
npm ERR! code: ‘EPERM’,
npm ERR! syscall: ‘scandir’,
npm ERR! path: ‘c:\Users\PC\Documents\Apache www\Projets Ionic\SWMG\node_modules\fsevents\node_modules\dashdash\node_modules’ }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\PC\AppData\Roaming\npm-cache_logs\2017-12-06T12_17_47_077Z-debug.log[ERROR] An error occurred while running cordova plugin add
cordova-sqlite-storage@2.0.4 --save (exit code 1).So I try with this command it’s the same bad message :
cordova plugin add cordova-sqlite-storage@2.0.4 --save
I don’t understand because all any plugin adding works.
Moreover in this log I find the repository where is downloaded the plugin files :
https://registry.npmjs.org/cordova-sqlite-storage
…When it’s opened in a browser the repository don’t seem to be offline !
Thank you to help.
Ionic info :
cli packages: (C:\Users\PC\AppData\Roaming\nvm\v8.1.2\node_modules)
@ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0
global packages:
cordova (Cordova CLI) : not installed
local packages:
@ionic/app-scripts : 3.1.4
Cordova Platforms : none
Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 25.2.5
Node : v8.1.2
npm : 5.5.1
OS : Windows 8.1
Environment Variables:
ANDROID_HOME : C:\android-sdk-windows
Misc:
backend : pro