{"id":109,"hash":"bdf38e1914c677b67969964a5a94e1cca8e8bec5824fb1a55bc7a9e0ec679ed2","pattern":"Yarn install command error No such file or directory: &#39;install&#39;","full_message":"I am installing sylius bundle and while install sylius I need to run yarn install So\nWhile I run the command:\n\nyarn install\n\nI get the error:\n\nERROR: [Errno 2] No such file or directory: 'install'","ecosystem":"npm","package_name":"ubuntu","package_version":null,"solution":"I had the same issue on Ubuntu 17.04.\n\nThis solution worked for me:\n\nsudo apt remove cmdtest\nsudo apt remove yarn\ncurl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -\necho \"deb https://dl.yarnpkg.com/debian/ stable main\" | sudo tee /etc/apt/sources.list.d/yarn.list\nsudo apt-get update\nsudo apt-get install yarn -y\n\nthen\n\nyarn install\n\nresult:\n\nyarn install v1.3.2\nwarning You are using Node \"6.0.0\" which is not supported and may encounter bugs or unexpected behaviour. Yarn supports the following server range: \"^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0\"\ninfo No lockfile found.\n[1/4] Resolving packages...\n[2/4] Fetching packages...\n[3/4] Linking dependencies...\n[4/4] Building fresh packages...\n\ninfo Lockfile not saved, no dependencies.\nDone in 0.20s.","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/46013544/yarn-install-command-error-no-such-file-or-directory-install","votes":472,"created_at":"2026-04-19T04:41:20.062784+00:00","updated_at":"2026-04-19T04:51:01.810754+00:00"}