W.L.A
W.L.A

Reputation: 31

Cannot find module "qs"

I'm working to setup node on a Windows pc. I'm new to this so figuring this out has been time consuming. The instructions I received were to do "npm install" and then "node index.js".

This is the error I received:

Error: Cannot find module 'qs'
    at Function.Module._resolveFilename (module.js:485:15)
    at Function.Module._load (module.js:437:25)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous>(C:\Users\WLL\Desktop\Coding\WebDev_Code_Test\api\node_modules\express\lib\middleware\query.js:16:10)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)

Any ideas where to start?

Upvotes: 1

Views: 13391

Answers (2)

bereket gebredingle
bereket gebredingle

Reputation: 12996

Just run this command

rm -rf node_modules npm i

Upvotes: 0

klvs
klvs

Reputation: 1177

npm install --save qs

and then run perhaps?

Upvotes: 4

Related Questions