Skip to content

Unable to start on MacOS #13

@usptact

Description

@usptact

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions