symfony / webpack-encore

A simple but powerful API for processing & compiling assets built around Webpack
https://symfony.com/doc/current/frontend.html
MIT License
2.23k stars 198 forks source link

Error: Cannot find module 'encore.js' #740

Open marems8 opened 4 years ago

marems8 commented 4 years ago

hello,

I try ./node_modules/.bin/encore production, and I got this error

Error: Cannot find module 'new_project_test\node_modules\@symfony\webpack-encore\bin\encore.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15) at Function.Module._load (internal/modules/cjs/loader.js:862:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12) at internal/main/run_main_module.js:18:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } Can anyone help me please?

Yohane07 commented 2 years ago

Hello,

I don't know if you resolve this Try this 1-Make sure you have installed npm? If you don't: npm install

2- npm install @symfony/webpack-encore --save-dev

carsonbot commented 2 weeks ago

Thank you for this issue. There has not been a lot of activity here for a while. Has this been resolved?