Skip to content

Error: EPERM: operation not permitted, unlink 'node_modules\.node-sass.DELETE\vendor\win32-x64-57\binding.node' #14369

@subhasishnath45

Description

@subhasishnath45

When trying to execute the following command:
$ npm install @ionic-native/native-storage or $ npm install --save @ionic-native/native-storage@4
I'm getting the following errors:

npm ERR! path e:\ionicApps\khonjkhoborApp\khonjkhobor\node_modules\.node-sass.DELETE\vendor\win32-x64-57\binding.node
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'e:\ionicApps\khonjkhoborApp\khonjkhobor\node_modules\.node-sass.DELETE\vendor\win32-x64-57\binding.node'
npm ERR!  { Error: EPERM: operation not permitted, unlink 'e:\ionicApps\khonjkhoborApp\khonjkhobor\node_modules\.node-sass.DELETE\vendor\win32-x64-57\binding.node'
npm ERR!   cause:
npm ERR!    { Error: EPERM: operation not permitted, unlink 'e:\ionicApps\khonjkhoborApp\khonjkhobor\node_modules\.node-sass.DELETE\vendor\win32-x64-57\binding.node'
npm ERR!      errno: -4048,
npm ERR!      code: 'EPERM',
npm ERR!      syscall: 'unlink',
npm ERR!      path: 'e:\\ionicApps\\khonjkhoborApp\\khonjkhobor\\node_modules\\.node-sass.DELETE\\vendor\\win32-x64-57\\binding.node' },
npm ERR!   stack: 'Error: EPERM: operation not permitted, unlink \'e:\\ionicApps\\khonjkhoborApp\\khonjkhobor\\node_modules\\.node-sass.DELETE\\vendor\\win32-x64-57\\binding.node\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'unlink',
npm ERR!   path: 'e:\\ionicApps\\khonjkhoborApp\\khonjkhobor\\node_modules\\.node-sass.DELETE\\vendor\\win32-x64-5\\binding.node',
npm ERR!   parent: 'khonjkhobor' }
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\Subhasish Nath\AppData\Roaming\npm-cache\_logs\2019-05-08T05_31_31_092Z-debug.log

I have the following output given by ionic info

Ionic:

   ionic (Ionic CLI)  : 4.1.1 (C:\Users\Subhasish Nath\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.3

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : android 7.1.4
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.4.1, (and 6 other plugins)

System:

   NodeJS : v8.9.3 (C:\Program Files\nodejs\node.exe)
   npm    : 5.5.1
   OS     : Windows 8.1

I tried cleaning cache, but didn't work :
$ npm cache verify

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions