Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

phpMick's avatar
Level 15

Laravel Mix on Docker container.

Hi,

Does anyone have Mix running on Docker?

I have install Node and NPM but when I try npm run dev I get:

module.js:478
    throw err;
    ^

Error: Cannot find module '../'
    at Function.Module._resolveFilename (module.js:476:15)


Thanks,

Mick

0 likes
2 replies
phpMick's avatar
Level 15

I think I will use a separate image for this task. I can then use one which will use an image which has node already installed.

phpMick's avatar
Level 15

I almost have this working now, but when I try: npm run dev I get:

module.js:549
    throw err;
    ^

Error: Cannot find module '../'

Please or to participate in this conversation.