Reputation: 1310
i'm following the tutorials on W3schools but i've hit an error - cannot find module 'upper-case': https://www.w3schools.com/nodejs/nodejs_npm.asp
I installed the package and can see it located here:
M:\Program Files\nodejs\node_modules\npm\node_modules\upper-case
Using Windows 10
Upvotes: 1
Views: 1570
Reputation: 424
Had the same issue with require not found whenever I executed node
(even without the js file!)
Downgraded the upper-case
lib from 3.0.0
to 2.0.2
. That has resolved the issue. Seems like 3 is buggy.
https://github.com/dotansimha/graphql-code-generator/issues/3246
Upvotes: 0
Reputation: 445
You need to install the dependency in your project, go into your project root folder and run npm i upper-case --save
this will add the dependency into your package.json file
Upvotes: 3