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.

I am getting this error

λ npm start

server@1.0.0 start c:\www\Homestead\projects\sermonapp\server ./node_modules/nodemon/bin/nodemon.js src/app.js --exec ‘npm run lint && node’

‘.’ is not recognized as an internal or external command, operable program or batch file. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! server@1.0.0 start: ./node_modules/nodemon/bin/nodemon.js src/app.js --exec 'npm run lint && node' npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the server@1.0.0 start 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\Danre Visser\AppData\Roaming\npm-cache_logs\2017-09-19T13_45_31_696Z-debug.log

I am running local on windows system.I guess its got something to do with windows

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

23reactions
Alaevcommented, Sep 19, 2017

That’s great, looks like it’s a problem with windows ./ path format Can you modify the package.json after you done with npm install to: "start":"nodemon src/app.js"

5reactions
rebosantecommented, Jun 22, 2018

This error happens because some windows terminals misunderstand single quotes, So there’s some parsing errors in node

You can easily detect it by errors like this

'npm is not recognized (...)

Showing a single quote before the command that is not recognized

In this case I used escaped double quotes instead of single ones in the scripts I used in package.json:

"scripts": {
    "start": "nodemon src/app.js --exec \"npm run lint && node\"",
    "lint": "eslint **/*.js"
  }

And it works now. Hope this helps…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Starting and Stopping the Application Server
Using Windows Program Group Items. On Windows, the easiest means of starting the entire application server is to use the Start button on...
Read more >
server start command :: Open Liberty Docs
The server start command starts the named Open Liberty server as a background process. ... Start the myserver server without persistent cached data:....
Read more >
Starting and stopping a server from the command line - IBM
Use the following command to start the server: server start serverName where serverName is the name of the server. · Use the following...
Read more >
start-server-and-test - npm
Starts server, waits for URL, then runs test command; when the tests end, shuts down server. Latest version: 1.15.2, last published: 21 days ......
Read more >
How do you set up a local testing server? - MDN Web Docs
Install Python. · Open your command prompt (Windows) / terminal (macOS/ Linux). · This should return a version number. · Enter the command...
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