Saturday, 22 April 2017

Error 401 in windows command prompt?

When use npm run dev, which scripts the "node app.js" to run. But when I try to run it, I get this error code:

C:\Users\rfasc\Dropbox\Hackathon\HackCuTwitter>npm run dev

> Tweeter@1.0.0 dev C:\Users\rfasc\Dropbox\Hackathon\HackCuTwitter
> node app.js

Error: Status Code: 401
    at Request.<anonymous (C:\Users\rfasc\Dropbox\Hackathon\HackCuTwitter\node_modules\twitter\lib\twitte
 r.js:274:28)
    at emitOne (events.js:96:13)
    at Request.emit (events.js:188:7)
    at Request.onRequestResponse (C:\Users\rfasc\Dropbox\Hackathon\HackCuTwitter\node_modules\request\request.js:
 1074:10)
    at emitOne (events.js:96:13)
    at ClientRequest.emit (events.js:188:7)
    at HTTPParser.parserOnIncomingClient [as onIncoming] 
(_http_client.js:473:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
    at TLSSocket.socketOnData (_http_client.js:362:20)
    at emitOne (events.js:96:13)

I also get this error when I try to run sudo at all when I use bash in the cmd:

ryryfasch@LAPTOP-9TPB1OJ6:/mnt/c/Users/rfasc/Dropbox/Hackathon/HackCuTwitter$ sudo i
sudo: unable to resolve host LAPTOP-9TPB1OJ6

I have tried looking up many fixes and can't figure it out. Thanks.



via Ryan Fasching

No comments:

Post a Comment