kentcdodds / cross-env

🔀 Cross platform setting of environment scripts
https://www.npmjs.com/package/cross-env
MIT License
6.32k stars 243 forks source link

Fresh Laravel v8.12 install, node.js - TypeError: commandConvert is not a function #256

Closed EarthlingOllie closed 3 years ago

EarthlingOllie commented 3 years ago

What you did:

I created a fresh laravel installation, then ran npm install && npm run dev

What happened:

After a successful npm install, I get an error whilst running npm run dev:

TypeError: commandConvert is not a function

/var/www/x/node_modules/cross-env/src/index.js:15 commandConvert(command, env, true), ^ TypeError: commandConvert is not a function at crossEnv (/var/www/x/node_modules/cross-env/src/index.js:15:7) at Object. (/var/www/x/node_modules/cross-env/src/bin/cross-env.js:5:1) at Module._compile (node:internal/modules/cjs/loader:1102:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1131:10) at Module.load (node:internal/modules/cjs/loader:967:32) at Function.Module._load (node:internal/modules/cjs/loader:807:14) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12) at node:internal/main/run_main_module:17:47

Reproduction repository:

Laravel v8.12

kentcdodds commented 3 years ago

https://github.com/kentcdodds/cross-env/issues/257