1

When I ran the command to update node.js global packages using npm update -g, I got the following error;

npm ERR! code ENOLOCAL
npm ERR! Could not install from "..\..\..\Dropbox\Inv\Programming\node.js\ibkr-api" as it does not contain a package.json file.

However, I found out that the folder "..\..\..\Dropbox\Inv\Programming\node.js\ibkr-api" no longer exists.

Which file does npm look into when global packages are being upgraded? Where is it located? I believe I can fix this error if I know where this file is located and modifying it.

I am using Windows 10, node.js v11.14.

guagay_wk
  • 26,337
  • 54
  • 186
  • 295

1 Answers1

1

Maybe the first answer to this question can help you find the files you are searching

Where does npm install packages?

When you located your npm\node_modules directory you should be able to find in it the folder "..\..\..\Dropbox\Inv\Programming\node.js\ibkr-api"and then modify it.

tarabor
  • 166
  • 1
  • 7