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

npm run watch fails #21

Open
WDSB opened this issue Jul 2, 2021 · 0 comments
Open

npm run watch fails #21

WDSB opened this issue Jul 2, 2021 · 0 comments

Comments

@WDSB
Copy link

WDSB commented Jul 2, 2021

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

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