question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

start npm run watch-server error (fresh install)

See original GitHub issue

Hello,

I clone, install and run npm run watch-server got this error :

var eventName = msg.name === 'error' ? 'errorMessage' : msg.name
                          ^
TypeError: Cannot read property 'name' of undefined

Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
javieravilescommented, Aug 19, 2020
  1. Npm i --save npm that is not the command you used. So the minimum to receive help is providing valid information.
  2. my project works perfectly fine with postgres, if you want to use mysql, you will need a real dependency for mysql drivers and read typeorm documentation to know how to connect to mysql, it is very easy, but you have to at least show the code that did not work for you to again receive help. This is how TypeORM tells you to connect to MySQL:
createConnection({
    type: "mysql",
    host: "localhost",
    port: 3306,
    username: "root",
    password: "admin",
    database: "test",
    synchronize: true,
    logging: false,
    entities: config.dbEntitiesPath,
    extra: {
        ssl: config.dbsslconn, // if not development, will use SSL
    }
})
  1. please before creating an issue and waste other’s time, make the effort of really understanding whether there is a problem or not
0reactions
Paul75commented, Aug 18, 2020

Okay seems not want to help !

Great answer ! It IS n’ont problem of node but yours project !

Another project works fine !

Bad answer …

Read more comments on GitHub >

github_iconTop Results From Across the Web

I get the same error everytime I run npm start - Stack Overflow
it's becuase you must use npm install first to install node_modules in your project and then run the app with npm start.
Read more >
start-server-and-test - npm
Start using start-server-and-test in your project by running `npm i start-server-and-test`. ... Install. Requires Node version 8.9 or above.
Read more >
Start script fails after initial installation. #449 - GitHub
Issue 1: After initial installation via npm run setup or npm install , start script fails. Error output provided below. Error Output:.
Read more >
Boss-machine project - server not starting - Get Help
The error that you are getting is 'nodemon' is not recognized as an internal or external command . When you're running npm run...
Read more >
How To Restart Your Node.js Apps Automatically with nodemon
First, you will need to install nodemon on your machine. Install the utility either globally or locally on your project using npm or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found