{"action":"closed","issue":{"url":"https://api.github.com/repos/hapijs/discuss/issues/321","repository_url":"https://api.github.com/repos/hapijs/discuss","labels_url":"https://api.github.com/repos/hapijs/discuss/issues/321/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/discuss/issues/321/comments","events_url":"https://api.github.com/repos/hapijs/discuss/issues/321/events","html_url":"https://github.com/hapijs/discuss/issues/321","id":167757861,"number":321,"title":"npm install - rename joi to .joi.DELETE EPERM rename error","user":{"login":"ttlnow","id":15841351,"avatar_url":"https://avatars.githubusercontent.com/u/15841351?v=3","gravatar_id":"","url":"https://api.github.com/users/ttlnow","html_url":"https://github.com/ttlnow","followers_url":"https://api.github.com/users/ttlnow/followers","following_url":"https://api.github.com/users/ttlnow/following{/other_user}","gists_url":"https://api.github.com/users/ttlnow/gists{/gist_id}","starred_url":"https://api.github.com/users/ttlnow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttlnow/subscriptions","organizations_url":"https://api.github.com/users/ttlnow/orgs","repos_url":"https://api.github.com/users/ttlnow/repos","events_url":"https://api.github.com/users/ttlnow/events{/privacy}","received_events_url":"https://api.github.com/users/ttlnow/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-27T02:52:09Z","updated_at":"2016-07-28T02:07:42Z","closed_at":"2016-07-28T02:07:42Z","body":"I'm running into this problem when I use npm install - all other dependencies are fine and if I perform npm uninstall hapi and then npm install joi followed by npm install hapi it works!  Any thoughts on how I can resolve this?  I've tried npm cache clean and removing node_modules folder with npm install and that didn't work either.\r\n\r\nnpm WARN optional Skipping failed optional dependency /chokidar/fsevents:\r\nnpm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.14\r\nnpm ERR! Windows_NT 10.0.10586\r\nnpm ERR! argv \"D:\\\\Program Files (x86)\\\\nodejs\\\\node.exe\" \"C:\\\\Users\\\\my_account\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"install\"\r\nnpm ERR! node v6.3.1\r\nnpm ERR! npm  v3.10.5\r\nnpm ERR! path C:\\Git\\Projects\\Photon\\server\\node_modules\\hapi\\node_modules\\joi\r\nnpm ERR! code EPERM\r\nnpm ERR! errno -4048\r\nnpm ERR! syscall rename\r\n\r\nnpm ERR! Error: EPERM: operation not permitted, rename 'C:\\Git\\Projects\\Photon\\server\\node_modules\\hapi\\node_modules\\joi' -> 'C:\\Git\\Projects\\Photon\\server\\node_modules\\hapi\\node_modules\\.joi.DELETE'\r\nnpm ERR!     at moveAway (C:\\Users\\my_account\\AppData\\Roaming\\npm\\node_modules\\npm\\lib\\install\\action\\finalize.js:38:5)\r\nnpm ERR!     at destStatted (C:\\Users\\my_account\\AppData\\Roaming\\npm\\node_modules\\npm\\lib\\install\\action\\finalize.js:27:7)\r\nnpm ERR!     at FSReqWrap.oncomplete (fs.js:123:15)\r\nnpm ERR!\r\nnpm ERR! Error: EPERM: operation not permitted, rename 'C:\\Git\\Projects\\Photon\\server\\node_modules\\hapi\\node_modules\\joi' -> 'C:\\Git\\Projects\\Photon\\server\\node_modules\\hapi\\node_modules\\.joi.DELETE'\r\nnpm ERR!     at Error (native)\r\nnpm ERR!  { Error: EPERM: operation not permitted, rename 'C:\\Git\\Projects\\Photon\\server\\node_modules\\hapi\\node_modules\\joi' -> 'C:\\Git\\Projects\\Photon\\server\\node_modules\\hapi\\node_modules\\.joi.DELETE'\r\nnpm ERR!     at moveAway (C:\\Users\\my_account\\AppData\\Roaming\\npm\\node_modules\\npm\\lib\\install\\action\\finalize.js:38:5)\r\nnpm ERR!     at destStatted (C:\\Users\\my_account\\AppData\\Roaming\\npm\\node_modules\\npm\\lib\\install\\action\\finalize.js:27:7)\r\nnpm ERR!     at FSReqWrap.oncomplete (fs.js:123:15)\r\nnpm ERR!\r\nnpm ERR! Error: EPERM: operation not permitted, rename 'C:\\Git\\Projects\\Photon\\server\\node_modules\\hapi\\node_modules\\joi' -> 'C:\\Git\\Projects\\Photon\\server\\node_modules\\hapi\\node_modules\\.joi.DELETE'\r\nnpm ERR!     at Error (native) parent: 'hapi' }\r\nnpm ERR!\r\nnpm ERR! Please try running this command again as root/Administrator.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     C:\\Git\\Projects\\Photon\\server\\npm-debug.log"}}
{"actor":{"display_login":"ttlnow"}}