I have been experiencing with this issue, since i install composer perfectly and then requiring laravel/valet
globally.
When I hit
'valet' on iterm/zsh
what returns is as below.
module.js:540
throw err;
^
Error: Cannot find module './node_modules/coffee-script'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/usr/local/lib/node_modules/valet. /node_modules/express.io/switch.js:5:5)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
I also tried to:
npm i coffee-script
npm i coffeescript
nothing works.
I don't know what code I should I share with you.
I followed the path on error thrown by npm and deleted node_modules folder.
Afterwards valet install worked.
Thank you for your time.