{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/10826","repository_url":"https://api.github.com/repos/npm/npm","labels_url":"https://api.github.com/repos/npm/npm/issues/10826/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/10826/comments","events_url":"https://api.github.com/repos/npm/npm/issues/10826/events","html_url":"https://github.com/npm/npm/issues/10826","id":122265957,"number":10826,"title":"npm install fails on Windows: \"Error: EPERM: operation not permitted, rename\"","user":{"login":"barbalex","id":669783,"avatar_url":"https://avatars.githubusercontent.com/u/669783?v=3","gravatar_id":"","url":"https://api.github.com/users/barbalex","html_url":"https://github.com/barbalex","followers_url":"https://api.github.com/users/barbalex/followers","following_url":"https://api.github.com/users/barbalex/following{/other_user}","gists_url":"https://api.github.com/users/barbalex/gists{/gist_id}","starred_url":"https://api.github.com/users/barbalex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barbalex/subscriptions","organizations_url":"https://api.github.com/users/barbalex/orgs","repos_url":"https://api.github.com/users/barbalex/repos","events_url":"https://api.github.com/users/barbalex/events{/privacy}","received_events_url":"https://api.github.com/users/barbalex/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":34,"created_at":"2015-12-15T12:51:22Z","updated_at":"2016-11-19T07:54:29Z","closed_at":"2015-12-16T14:31:30Z","body":"I work on Windows 10, up to date installation.\n`npm i` runs in powershell\nnode v5.2.0\nnpm v3.3.12\n\nThis error occures every time. I have repeated 5 times, deleting the node_modules folder beforehand.\nI have also run it twice as administrator.\nIt works on my OsX notebook.\n\nHere the error message in powershell:\n\n```\nnpm WARN EPACKAGEJSON ae@1.0.0 No repository field.\nnpm ERR! Windows_NT 10.0.10586\nnpm ERR! argv \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Program Files\\\\nodejs\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"i\"\nnpm ERR! node v5.2.0\nnpm ERR! npm  v3.3.12\nnpm ERR! path C:\\Users\\alex\\ae\\node_modules\\.staging\\escope-b5ac5ca528edb372dbff854e4a2941fb\nnpm ERR! code EPERM\nnpm ERR! errno -4048\nnpm ERR! syscall rename\n\nnpm ERR! Error: EPERM: operation not permitted, rename 'C:\\Users\\alex\\ae\\node_modules\\.staging\\escope-b5ac5ca528edb372db\nff854e4a2941fb' -> 'C:\\Users\\alex\\ae\\node_modules\\escope'\nnpm ERR!     at Error (native)\nnpm ERR!  { [Error: EPERM: operation not permitted, rename 'C:\\Users\\alex\\ae\\node_modules\\.staging\\escope-b5ac5ca528edb3\n72dbff854e4a2941fb' -> 'C:\\Users\\alex\\ae\\node_modules\\escope']\nnpm ERR!   errno: -4048,\nnpm ERR!   code: 'EPERM',\nnpm ERR!   syscall: 'rename',\nnpm ERR!   path: 'C:\\\\Users\\\\alex\\\\ae\\\\node_modules\\\\.staging\\\\escope-b5ac5ca528edb372dbff854e4a2941fb',\nnpm ERR!   dest: 'C:\\\\Users\\\\alex\\\\ae\\\\node_modules\\\\escope',\nnpm ERR!   parent: 'ae' }\nnpm ERR!\nnpm ERR! Please try running this command again as root/Administrator.\n\nnpm ERR! Please include the following file with any support request:\nnpm ERR!     C:\\Users\\alex\\ae\\npm-debug.log\n```\n\nThis is the complete log from npm-debug.log: https://gist.github.com/barbalex/da6100299bf5b76f19c2\n\nThis is the project: https://github.com/barbalex/ae\nThis is package.json: https://github.com/barbalex/ae/blob/master/package.json\n"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/261699922","html_url":"https://github.com/npm/npm/issues/10826#issuecomment-261699922","issue_url":"https://api.github.com/repos/npm/npm/issues/10826","id":261699922,"user":{"login":"njanmelbin","id":11364889,"avatar_url":"https://avatars.githubusercontent.com/u/11364889?v=3","gravatar_id":"","url":"https://api.github.com/users/njanmelbin","html_url":"https://github.com/njanmelbin","followers_url":"https://api.github.com/users/njanmelbin/followers","following_url":"https://api.github.com/users/njanmelbin/following{/other_user}","gists_url":"https://api.github.com/users/njanmelbin/gists{/gist_id}","starred_url":"https://api.github.com/users/njanmelbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/njanmelbin/subscriptions","organizations_url":"https://api.github.com/users/njanmelbin/orgs","repos_url":"https://api.github.com/users/njanmelbin/repos","events_url":"https://api.github.com/users/njanmelbin/events{/privacy}","received_events_url":"https://api.github.com/users/njanmelbin/received_events","type":"User","site_admin":false},"created_at":"2016-11-19T07:54:29Z","updated_at":"2016-11-19T07:54:29Z","body":"I got the previous error cleared but i am getting new error now. still windows\r\n\r\n```\r\n(node:8384) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.\r\n\r\n> bcrypt@0.8.7 install C:\\Users\\Thomas\\my-api\\node_modules\\bcrypt\r\n> node-gyp rebuild\r\n\r\n\r\nC:\\Users\\Thomas\\my-api\\node_modules\\bcrypt>if not defined npm_config_node_gyp (node \"C:\\Users\\Thomas\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\node-gyp-bin\\\\..\\..\\node_modules\\node-gyp\\bin\\node-gyp.js\" rebuild )  else (node  rebuild )\r\n(node:8104) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.\r\ngyp WARN install got an error, rolling back install\r\ngyp ERR! configure error\r\ngyp ERR! stack Error: 404 status code downloading 64-bit node.lib\r\ngyp ERR! stack     at Request.<anonymous> (C:\\Users\\Thomas\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\lib\\install.js:403:20)\r\ngyp ERR! stack     at emitOne (events.js:101:20)\r\ngyp ERR! stack     at Request.emit (events.js:188:7)\r\ngyp ERR! stack     at Request.onRequestResponse (C:\\Users\\Thomas\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\request\\request.js:985:10)\r\ngyp ERR! stack     at emitOne (events.js:96:13)\r\ngyp ERR! stack     at ClientRequest.emit (events.js:188:7)\r\ngyp ERR! stack     at HTTPParser.parserOnIncomingClient (_http_client.js:474:21)\r\ngyp ERR! stack     at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)\r\ngyp ERR! stack     at TLSSocket.socketOnData (_http_client.js:363:20)\r\ngyp ERR! stack     at emitOne (events.js:96:13)\r\ngyp ERR! System Windows_NT 6.3.9600\r\ngyp ERR! command \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Users\\\\Thomas\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\npm\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd C:\\Users\\Thomas\\my-api\\node_modules\\bcrypt\r\ngyp ERR! node -v v6.9.1\r\ngyp ERR! node-gyp -v v2.0.1\r\ngyp ERR! not ok\r\nnpm ERR! Windows_NT 6.3.9600\r\nnpm ERR! argv \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Users\\\\Thomas\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"install\"\r\nnpm ERR! node v6.9.1\r\nnpm ERR! npm  v2.12.1\r\nnpm ERR! code ELIFECYCLE\r\n\r\nnpm ERR! bcrypt@0.8.7 install: `node-gyp rebuild`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the bcrypt@0.8.7 install script 'node-gyp rebuild'.\r\nnpm ERR! This is most likely a problem with the bcrypt package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node-gyp rebuild\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls bcrypt\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     C:\\Users\\Thomas\\my-api\\npm-debug.log\r\n\r\n```"}}
{"actor":{"display_login":"njanmelbin"}}