简体   繁体   中英

Problems using assets with symfony

I have created a new project and I want to integrate a css sheet within my website

to add the css files I have done it as follows

line code image

and first of all I used the following commands

composer require symfony/webpack-encore-bundle

tells me to use one of the following commands

npm install

or

yarn install

but I have the following errors

npm install error 1 image

yarn install error 2 image

You should install node and yarn in your laptop

https://linuxize.com/post/how-to-install-node.js-on-ubuntu-18.04/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM