I know this is a common error with node
but all my troubleshooting techniques seem to be failing.
I solved the problem by just deleting the file at C:\Users\<your username>\.config\configstore\insight-bower.yml
, bower will recreate it upon running.
Just change windows rights for "all users" onto the "configstore" directory and bower will correctly install the package
running npm cache clean --force
helped me.
npm cache clean
by itself with node 5+ gives this warning:
npm ERR! As of npm@5, the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use 'npm cache verify' instead. npm ERR! npm ERR! If you're sure you want to delete the entire cache, rerun this command with --force.
NPM cache documentation.
Note: my real problem was the package-lock.json file. I had done some things locally and thought they were removed, but got to the build agent and got this error. It would probably help to delete the node_modules folder and do a fresh npm install
.
I was getting this error when running Yeoman generators on Windows. McAfee real-time scanning was preventing file system changes. Setting the real-time scanning to "Programs and documents only" worked for me.
For me navigating to the file with the File Explorer caused a pop up to appear which granted me permission to access the file.
After that nodemon
ran without problems.
For me there were three files at C:\Users\myusername\.config\configstore
(bower-github.yml, insight-bower.json, update-notifier-bower.yml) delted all three
Also disabled the antivirus.
Note: Don't forget to show hidden files.