what's the difference between running commands from ssh and without

Posted 1 month ago by mostafalaravel

Hello , First I'm using laravel Homestead (vmbox , vagrant ...)

I try to run : npm run dev but it returns me :

> @ dev /home/vagrant/code/laraspace-master
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

sh: 1: cross-env: not found
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! @ dev: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the @ dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/vagrant/.npm/_logs/2019-07-03T09_27_24_036Z-debug.log
[1]+  Done                    clear
[email protected]:~/code/laraspace-master$

1st question: should I run ´npm install --global cross-env´ to solve this error ?

2nd question: what is the difference between running this command from : vagrant SSH like :

[email protected]:~/code/laraspace-master$

AND from windows command like :

[email protected] MINGW64 ~/code/laraspace-master (master)


Please sign in or create an account to participate in this conversation.