I'm running yarn in a project created with create-react-app, but I'm getting this error:
Exit code: 1
Command: start /B node compile.js & node compile.js
Arguments:
Directory: uber-web/node_modules/coa
Output:
/bin/sh: 1: start: not found
internal/modules/cjs/loader.js:905
throw err;
^
Error: Cannot find module 'uber-web/node_modules/coa/compile.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
at Function.Module._load (internal/modules/cjs/loader.js:746:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
at internal/main/run_main_module.js:17:47 {
I've already uninstalled all the .lock and node_module folder, but it still doesn't work.
CodePudding user response:
The problem is being addressed on the Github page of the coa package: https://github.com/veged/coa/issues/99
An attacker published a corrupted version of the package, do not install it especially if you are on Windows !
CodePudding user response:
Update: NPM removed the malicious version and the latest version is 2.0.2 again. Everything should be back to normal.
As mentioned in the previous answer. It is due to a new release that is broken and malicious (confirmed).
As mentioned in https://github.com/veged/coa/issues/99:
Short-term fix