title: Symfony4 : ./node_modules/.bin/encore: No such file or directory
body: <p>I try to use webpack to generate assets on Symfony4</p>
  
  <p>I started by adding it using yarn :</p>
  
  <pre><code>yarn add @symfony/webpack-encore --dev
  </code></pre>
  
  <p>On the installation I get this error </p>
  
  <blockquote>
    <p>error An unexpected error occurred: "EPROTO: protocol error, symlink
    '../../../parser/bin/babel-parser.js' ->
    '/home/vagrant/Symfony/node_modules/@babel/core/node_modules/.bin/parser'".</p>
  </blockquote>
  
  <p>After a search on the net, I found that the solution is by adding <code>--no-bin-links</code>, so I try it and the installation ended without any error.</p>
  
  <p>but when I want to generate the assets by this command </p>
  
  <pre><code>./node_modules/.bin/encore dev
  </code></pre>
  
  <p>I get this error (.bin folder not found)</p>
  
  <blockquote>
    <p>-bash: ./node_modules/.bin/encore: No such file or directory</p>
  </blockquote>
  
  <p>and when I try to use this command <code>yarn encore dev</code> or <code>yarn run encore dev</code> </p>
  
  <blockquote>
    <p>error Command "encore" not found.</p>
  </blockquote>
  
  <p>I searched a lot on the net, but nothing works, is there any solution to fix this problem ? </p>
  
  <p><strong>PS :</strong> I use Vagrant and Homestead</p>