EPERM, operation not permitted error, config store

后端 未结 7 1322
名媛妹妹
名媛妹妹 2020-12-30 03:53

I know this is a common error with node but all my troubleshooting techniques seem to be failing.

  • Windows 7 (32-bit)
  • Node@0.10.10
相关标签:
7条回答
  • 2020-12-30 04:31

    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.

    0 讨论(0)
  • 2020-12-30 04:35

    Just change windows rights for "all users" onto the "configstore" directory and bower will correctly install the package

    0 讨论(0)
  • 2020-12-30 04:37

    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.

    0 讨论(0)
  • 2020-12-30 04:48

    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.

    0 讨论(0)
  • 2020-12-30 04:50

    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.

    0 讨论(0)
  • 2020-12-30 04:51

    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.

    0 讨论(0)
提交回复
热议问题