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.

npm start does not work on windows

See original GitHub issue

Hello! Checked out your repo, npm install worked fine. However, npm start gives me

D:\Documents\node-express-mongoose>npm start
> node-express-mongoose@0.0.1 start D:\Documents\node-express-mongoose
> NODE_PATH=./app/controllers NODE_ENV=development ./node_modules/.bin/nodemon server.js

Der Befehl "NODE_PATH" ist entweder falsch geschrieben oder
konnte nicht gefunden werden. [Translation: The command "NODE_PATH" has a typo or couldn't be found]
npm ERR! weird error 1
npm ERR! not ok code 0

Windows 7 64 Bit, Node 0.10.15, npm 1.3.7 Node.exe & nmp are in PATH

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
oscar-gcommented, Dec 16, 2013

Here is how I got it running:

First, make sure you have MongoDB installed and set in your path. Next, make a new folder at the root of the project named data Now open a cmd and do mongod --dbpath C:\path\to\the\folder\data Keep this window open, it is the MongoDB daemon

Now, edit the package.json and change "start": "NODE_PATH=./app/controllers NODE_ENV=development ./node_modules/.bin/nodemon server.js", to "start": "node server.js",

Next, open up config\routes.js Edit var home = require('home') to: var home = require('../app/controllers/home')

Now run npm start and point your browser to localhost:3000

Good luck, let me know if you need help installing MongoDB and setting it on your path Cheers

0reactions
madhumscommented, Dec 31, 2013

you need to set NODE_ENV and NODE_PATH in windows env. Here’s a link on how to set them for windows

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm start does not work - node.js - Stack Overflow
The error says that you are running npm start in this path C:\WINDOWS\System32\WindowsPowerShell\v1.0\package.json but it seems that inside that ...
Read more >
npm start issue solved 100% | react project not getting started
npm start not working issue fixed | npm start issue solved 100% | react project not getting started | BiT TechnoDetails:This video is...
Read more >
npm start not working / How to fix npm error React ... - YouTube
code #coding # npm #react #coders #computerscience #cs #javascript #javaprogramming #react #reactjs if still not working please watch ...
Read more >
npm start on Windows does not work #3142 - GitHub
The error that's happening is a file is not found. You can open .\tools\start.js and see the command that gets run which fails....
Read more >
Npm start on react app not working windows
I have found the solution for my problem by setting the path value for system32. You can do this by the following steps....
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