Scott
Scott

Reputation: 1310

Node.js - cannot fild module 'upper-case'

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

enter image description here

I installed the package and can see it located here:

M:\Program Files\nodejs\node_modules\npm\node_modules\upper-case

enter image description here

Using Windows 10

Upvotes: 1

Views: 1570

Answers (2)

Aviv
Aviv

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

Sébastien B
Sébastien B

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

Related Questions