npm start does not work on windows
See original GitHub issueHello! 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:
- Created 10 years ago
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 domongod --dbpath C:\path\to\the\folder\data
Keep this window open, it is the MongoDB daemonNow, 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
Editvar home = require('home')
to:var home = require('../app/controllers/home')
Now run
npm start
and point your browser tolocalhost:3000
Good luck, let me know if you need help installing MongoDB and setting it on your path Cheers
you need to set
NODE_ENV
andNODE_PATH
in windows env. Here’s a link on how to set them for windows