when i call npm run watch i get the following error message
Could not scan for classes inside "/var/www/vhosts/com2gay.com/zf2/vendor/rongeb/dynamiclayout/./Module.php" which does not appear to be a file nor a folder> @ watch /var/www/vhosts/com2gay.com/laravel
cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
sh: 1: cross-env: not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! @ watch: cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the @ watch script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-07-02T10_19_23_333Z-debug.log
when I try to reinstall with sudo npm install --global cross-env cross-env I get the message
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/cross-enc - Not found
npm ERR! 404
npm ERR! 404 'cross-enc@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-07-02T10_19_34_999Z-debug.log