2khc / Meeting-Scheduler-Server

The server for the VSTS Meeting Scheduler
1 stars 0 forks source link

'DEBUG' is not recognized as an internal or external command #1

Open pabrams opened 6 years ago

pabrams commented 6 years ago

Trying to follow the instructions in the readme. The first command, npm install, generates a couple of warnings, but the second command fails completely.

Here's the output:

Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Paul.Abrams>cd C:\Users\Paul.Abrams\Source\Repos\Meeting-Scheduler-Serv er-master

C:\Users\Paul.Abrams\Source\Repos\Meeting-Scheduler-Server-master>npm install npm WARN deprecated jade@1.11.0: Jade has been renamed to pug, please install th e latest version of pug instead of jade npm WARN deprecated transformers@2.1.0: Deprecated, use jstransformer npm notice created a lockfile as package-lock.json. You should commit this file.

added 123 packages in 11.9s

C:\Users\Paul.Abrams\Source\Repos\Meeting-Scheduler-Server-master>DEBUG=*:server node ./bin/www 'DEBUG' is not recognized as an internal or external command, operable program or batch file.

C:\Users\Paul.Abrams\Source\Repos\Meeting-Scheduler-Server-master>

pabrams commented 6 years ago

Found this: https://stackoverflow.com/questions/23408910/how-to-use-nodes-debug-module-windows

So, the following seems to work instead of DEBUG=*:server node ./bin/www

set DEBUG=*:server & node ./bin/www

C:\Users\Paul.Abrams\Source\Repos\Meeting-Scheduler-Server-master>set DEBUG=*:se rver & node ./bin/www server:server Listening on port 3000 +0ms

`