{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/8226","labels_url":"https://api.github.com/repos/npm/npm/issues/8226/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/8226/comments","events_url":"https://api.github.com/repos/npm/npm/issues/8226/events","html_url":"https://github.com/npm/npm/issues/8226","id":74877231,"number":8226,"title":"Can't install packets in a virtual machine that runs on Windows because of path size limitation in windows","user":{"login":"ovidiubadita","id":5288324,"avatar_url":"https://avatars.githubusercontent.com/u/5288324?v=3","gravatar_id":"","url":"https://api.github.com/users/ovidiubadita","html_url":"https://github.com/ovidiubadita","followers_url":"https://api.github.com/users/ovidiubadita/followers","following_url":"https://api.github.com/users/ovidiubadita/following{/other_user}","gists_url":"https://api.github.com/users/ovidiubadita/gists{/gist_id}","starred_url":"https://api.github.com/users/ovidiubadita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ovidiubadita/subscriptions","organizations_url":"https://api.github.com/users/ovidiubadita/orgs","repos_url":"https://api.github.com/users/ovidiubadita/repos","events_url":"https://api.github.com/users/ovidiubadita/events{/privacy}","received_events_url":"https://api.github.com/users/ovidiubadita/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-10T09:23:25Z","updated_at":"2015-05-10T12:22:47Z","closed_at":null,"body":"Hello,\r\nif I try to install this in my virtual machine, it will fail but it will work on windows directly. The problem is that I need it to work on my virtual machine. Is there a way to make npm install packages without using such large paths?\r\n\r\nnpm ERR! Error: ENAMETOOLONG, open '/home/vagrant/Code/razvan/node_modules/laravel-elixir/node_modules/main-bower-files/node_modules/vinyl-fs/node_modules/glob-stream/node_modules/unique-stream/node_modules/es6-set/node_modules/es6-iterator/node_modules/es6-symbol/test/is-native-implemented.js'\r\nnpm ERR! If you need help, you may report this *entire* log,\r\nnpm ERR! including the npm and node versions, at:\r\nnpm ERR!     <http://github.com/npm/npm/issues>\r\n\r\nnpm ERR! System Linux 3.16.0-23-generic\r\nnpm ERR! command \"/usr/bin/node\" \"/usr/bin/npm\" \"install\"\r\nnpm ERR! cwd /home/vagrant/Code/razvan\r\nnpm ERR! node -v v0.10.33\r\nnpm ERR! npm -v 1.4.28\r\nnpm ERR! path /home/vagrant/Code/razvan/node_modules/laravel-elixir/node_modules/main-bower-files/node_modules/vinyl-fs/node_modules/glob-stream/node_modules/unique-stream/node_modules/es6-set/node_modules/es6-iterator/node_modules/es6-symbol/test/is-native-implemented.js\r\nnpm ERR! code ENAMETOOLONG\r\nnpm ERR! errno 49\r\nnpm WARN optional dep failed, continuing mime@1.3.4\r\nnpm WARN optional dep failed, continuing image-size@0.3.5\r\nnpm WARN optional dep failed, continuing errno@0.1.2\r\nnpm WARN optional dep failed, continuing mkdirp@0.5.0\r\nnpm WARN optional dep failed, continuing request@2.55.0\r\n"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/100633109","html_url":"https://github.com/npm/npm/issues/8226#issuecomment-100633109","issue_url":"https://api.github.com/repos/npm/npm/issues/8226","id":100633109,"user":{"login":"smikes","id":5124609,"avatar_url":"https://avatars.githubusercontent.com/u/5124609?v=3","gravatar_id":"","url":"https://api.github.com/users/smikes","html_url":"https://github.com/smikes","followers_url":"https://api.github.com/users/smikes/followers","following_url":"https://api.github.com/users/smikes/following{/other_user}","gists_url":"https://api.github.com/users/smikes/gists{/gist_id}","starred_url":"https://api.github.com/users/smikes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smikes/subscriptions","organizations_url":"https://api.github.com/users/smikes/orgs","repos_url":"https://api.github.com/users/smikes/repos","events_url":"https://api.github.com/users/smikes/events{/privacy}","received_events_url":"https://api.github.com/users/smikes/received_events","type":"User","site_admin":false},"created_at":"2015-05-10T12:22:47Z","updated_at":"2015-05-10T12:22:47Z","body":"Thanks for reporting this.\r\n\r\nUnfortunately, this is a longstanding problem on Windows in general and especially with virtual machines.  You may also encounter problems with symbolic links -- the virtual machine may not support them, even though the underlying filesystem does.\r\n\r\nThe next version of npm -- `npm@3` will automatically flatten and deduplicate dependencies, which will mitigate this problem somewhat.  `npm@3` is feature-complete, and is currently being tested.\r\n\r\nIn the meantime, I notice that you are running `npm@1.4.28`.  There have been a lot of improvements to npm -- especially around conflicts and race conditions during install -- since 1.4. Can you try updating your npm installation?\r\n\r\nTo update npm, run `sudo npm -g install npm@latest`.\r\n\r\nFor some Linux distributions (Debian/Ubuntu and RedHat/CentOS), the latest node version provided by the distribution may lag behind the stable version. [Here are instructions from NodeSource](https://github.com/nodesource/distributions) on getting the latest node.\r\n\r\nWe are trying to clean up older npm issues, so if we don't hear back from you within a week, we will close this issue. (Don't worry -- you can always come back again and open a new issue!)\r\n\r\nThanks!\r\n"}}