-
Notifications
You must be signed in to change notification settings - Fork 16
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
Errors when installing #23
Comments
Nope, but having solved my first issue (needing to set up SSH in GitHub) I get the same error. If I figure it out I'll make a note of how here. |
Managed to solve the first issue by modifying the package.json in /src/Spa.Foundation/ to include dotenv: { Now I get the issue:
npm ERR! A complete log of this run can be found in: |
Adding in "form-data": "^4.0.0" to the package.json in /src/Spa.Foundation/ seems to have resolved the problem. See a site but with lots of issues that looked to be caused providing a public domain during set-up. Loads on http://foundation.local/ (public domain) but then has references in the generated code to http://foundation/ (app name) leading to broken images - even if I try run the whole site on a binding for http://foundation/ I then get CORS issues as its trying to load content on http://foundation.local/. Going to rerun set-up without specifying a public domain to see if it improves things. Updated package.json below: { |
Thank you for the response. I did manage to solve it by adding dotenv and form-data to the package.json as you said. But I still get a lot of errors. I have moved on and will not be using this github repo. But thanks for the help. |
I followed all installation instructions and have all prerequisites installed and done. Still every time I try to install/run setup.cmd I get these errors. I tried it on two different computers with the same result
`Error: Cannot find module 'dotenv'
Require stack:
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15)
at Function.Module._load (internal/modules/cjs/loader.js:745:27)
at Module.require (internal/modules/cjs/loader.js:961:19)
at require (internal/modules/cjs/helpers.js:92:18)
at Object. (C:\dev\FoundationTest\src\Spa.Frontend\node_modules@episerver\webpack\cjs\util\Config.js:9:34)
at Module._compile (internal/modules/cjs/loader.js:1072:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
at Module.load (internal/modules/cjs/loader.js:937:32)
at Function.Module._load (internal/modules/cjs/loader.js:778:12)
at Module.require (internal/modules/cjs/loader.js:961:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\dev\FoundationTest\src\Spa.Frontend\node_modules\@episerver\webpack\cjs\util\Config.js',
'C:\dev\FoundationTest\src\Spa.Frontend\node_modules\@episerver\webpack\cjs\util\CliArguments.js',
'C:\dev\FoundationTest\src\Spa.Frontend\node_modules\@episerver\webpack\cjs\bin\epi-auth.js'
]
}
internal/modules/cjs/loader.js:892
throw err;
^
Error: Cannot find module 'dotenv'
Require stack:
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15)
at Function.Module._load (internal/modules/cjs/loader.js:745:27)
at Module.require (internal/modules/cjs/loader.js:961:19)
at require (internal/modules/cjs/helpers.js:92:18)
at Object. (C:\dev\FoundationTest\src\Spa.Frontend\node_modules@episerver\webpack\cjs\util\Config.js:9:34)
at Module._compile (internal/modules/cjs/loader.js:1072:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
at Module.load (internal/modules/cjs/loader.js:937:32)
at Function.Module._load (internal/modules/cjs/loader.js:778:12)
at Module.require (internal/modules/cjs/loader.js:961:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\dev\FoundationTest\src\Spa.Frontend\node_modules\@episerver\webpack\cjs\util\Config.js',
'C:\dev\FoundationTest\src\Spa.Frontend\node_modules\@episerver\webpack\cjs\util\CliArguments.js',
'C:\dev\FoundationTest\src\Spa.Frontend\node_modules\@episerver\webpack\cjs\bin\epi_sync_models.js'
]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:production:
npx epi-sync-models -e production && npx webpack --env EPI_ENV=production --env NODE_ENV=production && npx epi-sync-models -e development
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build:production 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! C:\Users\Alexander\AppData\Roaming\npm-cache_logs\2021-09-23T14_30_04_474Z-debug.log
Run resetup.cmd to resetup solution
Press any key to continue . . . `
Any idea what might be causing this?
The text was updated successfully, but these errors were encountered: