I am unable to install the Gatsby plugin for Netlify CMS to my blog. I've been following a tutorial of adding Netlify CMS to existing blog and also referred to this doc.
run npm install --save netlify-cms-app gatsby-plugin-netlify-cms
Expected result
Gatsby plugin for Netlify CMS installed successfully.
Actual result
Error in installing Gatsby plugin for Netlify CMS.
Here's the error log I got from the terminal:
npm ERR! code EPERM
npm ERR! syscall unlink
npm ERR! path C:\Users\User\Desktop\Mohd Projects\blogger\node_modules\@emotion\weak-memoize\dist
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\Users\User\Desktop\Mohd Projects\blogger\node_modules\@emotion\weak-memoize\dist'
npm ERR! [OperationalError: EPERM: operation not permitted, unlink 'C:\Users\User\Desktop\Mohd Projects\blogger\node_modules\@emotion\weak-memoize\dist'] {
npm ERR! cause: [Error: EPERM: operation not permitted, unlink 'C:\Users\User\Desktop\Mohd Projects\blogger\node_modules\@emotion\weak-memoize\dist'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: 'C:\\Users\\User\\Desktop\\Mohd Projects\\blogger\\node_modules\\@emotion\\weak-memoize\\dist'
npm ERR! },
npm ERR! stack: "Error: EPERM: operation not permitted, unlink 'C:\\Users\\User\\Desktop\\Mohd Projects\\blogger\\node_modules\\@emotion\\weak-memoize\\dist'",
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: 'C:\\Users\\User\\Desktop\\Mohd Projects\\blogger\\node_modules\\@emotion\\weak-memoize\\dist',
npm ERR! parent: 'blogger'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
Hello @mohammedasker I'm sure it's not Gatsby related issue. It's File system issue caused by OS such windows. syscall unlink is not related issue. I suggest to ask npm community for such issues :)
Description
I am unable to install the
Gatsby plugin for Netlify CMS
to my blog. I've been following a tutorial of adding Netlify CMS to existing blog and also referred to this doc.Steps to reproduce
Here's a link to my repo: https://github.com/mohammedasker/blogger
npm install --save netlify-cms-app gatsby-plugin-netlify-cms
Expected result
Gatsby plugin for Netlify CMS
installed successfully.Actual result
Error in installing Gatsby plugin for Netlify CMS.
Here's the error log I got from the terminal:
Environment