2017-08-15 44 views
0

Windows Powershellを管理者として実行していますが、以下のすべてを試しました。何も動作しません。それだけでなく、エラーになるまでに20分かかります。 NPMキャッシュここ npm ERR!エラー:EPERM:操作が許可されていません

を確認MPMキャッシュ

  • 清掃

    • アップグレードノード
    • UpgradeingのNPM
    • オフAntiVirusは
    • プロジェクトを作成しようとしてから出力されます。

      PS D:\Documents\js> create-react-app socket-io-client 
      
      Creating a new React app in D:\Documents\js\socket-io-client. 
      
      Installing packages. This might take a couple of minutes. 
      Installing react, react-dom, and react-scripts... 
      
      
      > [email protected] postinstall D:\Documents\js\socket-io-client\node_modules\uglifyjs-webpack-plugin 
      > node lib/post_install.js 
      
      npm ERR! path D:\Documents\js\socket-io-client\node_modules\fsevents\node_modules 
      npm ERR! code EPERM 
      npm ERR! errno -4048 
      npm ERR! syscall rmdir 
      npm ERR! Error: EPERM: operation not permitted, rmdir 'D:\Documents\js\socket-io-client\node_modules\fsevents\node_modules' 
      npm ERR! { Error: EPERM: operation not permitted, rmdir 'D:\Documents\js\socket-io-client\node_modules\fsevents\node_modules' 
      npm ERR! stack: 'Error: EPERM: operation not permitted, rmdir \'D:\\Documents\\js\\socket-io-client\\node_modules\\fsevents\\node_modules\'', 
      npm ERR! errno: -4048, 
      npm ERR! code: 'EPERM', 
      npm ERR! syscall: 'rmdir', 
      npm ERR! path: 'D:\\Documents\\js\\socket-io-client\\node_modules\\fsevents\\node_modules' } 
      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\idf\AppData\Roaming\npm-cache\_logs\2017-08-15T04_50_32_705Z-debug.log 
      
      Aborting installation. 
          npm install --save --save-exact --loglevel error react react-dom react-scripts has failed. 
      
      Deleting generated file... package.json 
      Deleting generated file... node_modules 
      
  • +0

    私はこの問題を理解していると信じています。別のノードアプリケーションを実行していました。私はそれを停止し、作成反応アプリケーションを再試行したとき、問題なくすべてを通り抜けました。私はnode.jsとnpmの考えを更新しましたが、少なくとも1つは必要です。 – Ivan

    答えて

    0

    あなたの問題が解決したと思います。しかし、他の人が同じエラーメッセージを受け取った場合、私のために働いていたのは、これらのフォルダを削除することでした。

    C:\Users\[username]\AppData\Roaming\npm 
    C:\Users\[username]\AppData\Roaming\npm-cache 
    

    それでも問題が解決しない場合は、このスレッドからの修正の一つ試してみてください。https://github.com/npm/npm/issues/10826

    関連する問題