Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module 'laravel-mix' after npm install #236

Open
dlabedz opened this issue Dec 10, 2024 · 0 comments
Open

Error: Cannot find module 'laravel-mix' after npm install #236

dlabedz opened this issue Dec 10, 2024 · 0 comments

Comments

@dlabedz
Copy link

dlabedz commented Dec 10, 2024

Npm version: 10.9.2
Node version: v18.20.5
PHP version: 8.1.29
Mac OS: 14.6.1

I'm using Local (from WPEngine) for local development environment. I installed Tailpress using the git clone method. After completing npm install and then running the npm run watch command, I get the following error:

[webpack-cli] Error: Cannot find module 'laravel-mix'

Is there something else I'm missing?

Full error message:

[webpack-cli] Error: Cannot find module 'laravel-mix'
Require stack: /Users/labedzde/Documents/Repositories/hdc_test/app/public/wp-content/themes/tailpress/webpack.mix.js /Users/labedzde/.nvm/versions/node/v18.20.5/lib/node_modules/laravel-mix/setup/webpack.config.js /Users/labedzde/.nvm/versions/node/v18.20.5/lib/node_modules/webpack-cli/lib/webpack-cli.js /Users/labedzde/.nvm/versions/node/v18.20.5/lib/node_modules/webpack-cli/lib/bootstrap.js /Users/labedzde/.nvm/versions/node/v18.20.5/lib/node_modules/webpack-cli/bin/cli.js /Users/labedzde/.nvm/versions/node/v18.20.5/lib/node_modules/webpack/bin/webpack.js at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15) at Module._load (node:internal/modules/cjs/loader:981:27) at Module.require (node:internal/modules/cjs/loader:1231:19) at require (node:internal/modules/helpers:177:18) at Object.<anonymous> (/Users/labedzde/Documents/Repositories/hdc_test/app/public/wp-content/themes/tailpress/webpack.mix.js:1:11) at Module._compile (node:internal/modules/cjs/loader:1364:14) at Module._extensions..js (node:internal/modules/cjs/loader:1422:10) at Module.load (node:internal/modules/cjs/loader:1203:32) at Module._load (node:internal/modules/cjs/loader:1019:12) at Module.require (node:internal/modules/cjs/loader:1231:19) { code: 'MODULE_NOT_FOUND', requireStack: [ '/Users/labedzde/Documents/Repositories/hdc_test/app/public/wp-content/themes/tailpress/webpack.mix.js', '/Users/labedzde/.nvm/versions/node/v18.20.5/lib/node_modules/laravel-mix/setup/webpack.config.js', '/Users/labedzde/.nvm/versions/node/v18.20.5/lib/node_modules/webpack-cli/lib/webpack-cli.js', '/Users/labedzde/.nvm/versions/node/v18.20.5/lib/node_modules/webpack-cli/lib/bootstrap.js', '/Users/labedzde/.nvm/versions/node/v18.20.5/lib/node_modules/webpack-cli/bin/cli.js', '/Users/labedzde/.nvm/versions/node/v18.20.5/lib/node_modules/webpack/bin/webpack.js' ] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant