Open anaelleltd opened 3 years ago
I somehow found a quick fix by installing yarn globally with $npm install -g yarn to fix the corrupted installation.
Now I get this error about a missing module:
- C:\Users\atale\subsocial-web-app-master\node_modules\next\dist\bin\next
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
at Function.Module._load (internal/modules/cjs/loader.js:730:27)
at Module.require (internal/modules/cjs/loader.js:957:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.
Not sure why that happens...
OS: Windows 10 x64. NodeJS: 14.17.0 Yarn: 1.22.5
Whenever I run the command $ yarn build, I get this error.
yarn run v1.22.5 $ yarn patch && next build $ ./patch.sh error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I have no idea what exit code 1 is so I checked the docs and it's nothing important. I ran an audit, and lots of severe vulnerabilities were found. I deleted the node_modules folder, reinstalled yarn as per the README.md, but I still got the same error.
Any clue what the issue is? Thanks! :)