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

Unable to start on MacOS #13

Open
usptact opened this issue Feb 8, 2023 · 0 comments
Open

Unable to start on MacOS #13

usptact opened this issue Feb 8, 2023 · 0 comments

Comments

@usptact
Copy link

usptact commented Feb 8, 2023

Installed all the dependencies such as Postgres server, .NET 6.0 and node+npm.
Got twitter secrets (btw, do I need to create a new app? created one). For redirect, set up the redirect URL to the value suggested.

Ran npm install in the ConsoleApp directory; got lots of warnings but apparently no errors.

Modified appsettings.json to include twitter secrets and postgres DB password (user is farland).

When running dotnet run seeing this in the loop once I access http://localhost:5000/:

'Users/vlad/git/Furland/bin/Debug/net6.0/266a8a3fdf2b45599680fb60003d8ca0.sh: line 1: syntax error near unexpected token `{
'Users/vlad/git/Furland/bin/Debug/net6.0/266a8a3fdf2b45599680fb60003d8ca0.sh: line 1: `function list_child_processes(){

> furlandweb@0.1.0 prestart /Users/vlad/git/Furland/ClientApp
> node aspnetcore-https && node aspnetcore-react

/Users/vlad/git/Furland/ClientApp/aspnetcore-https.js:11
const certificateArg = process.argv.map(arg => arg.match(/--name=(?<value>.+)/i)).filter(Boolean)[0];
                                                   ^

SyntaxError: Invalid regular expression: /--name=(?<value>.+)/: Invalid group
    at process.argv.map.arg (/Users/vlad/git/Furland/ClientApp/aspnetcore-https.js:11:52)
    at Array.map (<anonymous>)
    at Object.<anonymous> (/Users/vlad/git/Furland/ClientApp/aspnetcore-https.js:11:37)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Function.Module.runMain (module.js:694:10)
    at startup (bootstrap_node.js:204:16)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! furlandweb@0.1.0 prestart: `node aspnetcore-https && node aspnetcore-react`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the furlandweb@0.1.0 prestart script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
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