Error installing ionic cloud package via npm command


#1

I was following this setup guide:
Ionic Cloud services integration setup

On running this command:

npm install @ionic/cloud-angular --save

I am getting this error message:

askGanesha@0.0.1 C:\Users\aksha\Desktop\ionic_apps\askGanesha
`-- (empty)

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {“os”:“darwin”,“arch”:“any
”} (current: {“os”:“win32”,“arch”:“x64”})
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\aksha\Desktop\ionic_apps\askGanesha\node_modules@ioni
c\cloud\package.json’
npm ERR! Windows_NT 10.0.15063
npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “ins
tall” “@ionic/cloud-angular” "–save"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
npm ERR! path C:\Users\aksha\Desktop\ionic_apps\askGanesha\node_modules.staging\rxjs-41b0b4f9
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename

npm ERR! Error: EPERM: operation not permitted, rename ‘C:\Users\aksha\Desktop\ionic_apps\askGanesha\node_modules.stagi
ng\rxjs-41b0b4f9’ -> 'C:\Users\aksha\Desktop\ionic_apps\askGanesha\node_modules\ionic-native\node_modules\rxjs’
npm ERR! at destStatted (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:25:7)
npm ERR! at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:264:29
npm ERR! at FSReqWrap.oncomplete (fs.js:123:15)
npm ERR!
npm ERR! Error: EPERM: operation not permitted, rename ‘C:\Users\aksha\Desktop\ionic_apps\askGanesha\node_modules.stagi
ng\rxjs-41b0b4f9’ -> 'C:\Users\aksha\Desktop\ionic_apps\askGanesha\node_modules\ionic-native\node_modules\rxjs’
npm ERR! at Error (native)
npm ERR! { Error: EPERM: operation not permitted, rename ‘C:\Users\aksha\Desktop\ionic_apps\askGanesha\node_modules.st
aging\rxjs-41b0b4f9’ -> 'C:\Users\aksha\Desktop\ionic_apps\askGanesha\node_modules\ionic-native\node_modules\rxjs’
npm ERR! at destStatted (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:25:7)
npm ERR! at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:264:29
npm ERR! at FSReqWrap.oncomplete (fs.js:123:15)
npm ERR!
npm ERR! Error: EPERM: operation not permitted, rename ‘C:\Users\aksha\Desktop\ionic_apps\askGanesha\node_modules.stagi
ng\rxjs-41b0b4f9’ -> 'C:\Users\aksha\Desktop\ionic_apps\askGanesha\node_modules\ionic-native\node_modules\rxjs’
npm ERR! at Error (native) parent: ‘ionic-native’ }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\aksha\Desktop\ionic_apps\askGanesha\npm-debug.log
npm ERR! code 1

Note: askGanesha is the name of the app, my app directory is desktop/ionic_apps/askGanesha

Till now all npm packages were being installed without any error.

Ionic info output:

global packages:

    @ionic/cli-utils : 1.4.0
    Cordova CLI      : 7.0.1
    Ionic CLI        : 3.4.0

local packages:

    @ionic/app-scripts              : 1.3.7
    @ionic/cli-plugin-cordova       : 1.4.0
    @ionic/cli-plugin-ionic-angular : 1.3.1
    Cordova Platforms               : android 6.2.3
    Ionic Framework                 : ionic-angular 3.2.1

System:

    Node       : v6.10.3
    OS         : Windows 10
    Xcode      : not installed
    ios-deploy : not installed
    ios-sim    : not installed
    npm        : 3.10.10

Please help,
Thanks and Regards.


#2

Visual Studio Code or another IDE open? Close it while the command runs.


#3

Thank you it worked, I closed my VS code and ran. :smiley: