Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Viewing all articles
Browse latest Browse all 3920

Symfony4 : ./node_modules/.bin/encore: No such file or directory

$
0
0

I try to use webpack to generate assets on Symfony4

I started by adding it using yarn :

yarn add @symfony/webpack-encore --dev

On the installation I get this error

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'".

After a search on the net, I found that the solution is by adding --no-bin-links, so I try it and the installation ended without any error.

but when I want to generate the assets by this command

./node_modules/.bin/encore dev

I get this error (.bin folder not found)

-bash: ./node_modules/.bin/encore: No such file or directory

and when I try to use this command yarn encore dev or yarn run encore dev

error Command "encore" not found.

I searched a lot on the net, but nothing works, is there any solution to fix this problem ?

PS : I use Vagrant and Homestead


Viewing all articles
Browse latest Browse all 3920

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>