Skip to content

The installation documentation is confusing with the yarn and npm usage #287

@gundamftw

Description

@gundamftw

First I follow the first installation page and installed node.js, yarn manager and did the install at the root of my project folder

composer require encore
yarn install

As I proceeded to the first example page, get the webpack.config.js setup and do the command, but then I was encountered by the "code 1" error.
yarn run encore dev

Since the installation page mentioned about installing webpack with npm, I decided not to even bother with yarn. So I uninstall it from my project with command
npm uninstall -g yarn

and then uninstall the yarn manager from my computer. But then where should I go from here? There're no tutorial on how to do it with npm except the first page. When I ran
npm run encore dev

I get "npm ERR! missing script: encore".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions