protobuf.js icon indicating copy to clipboard operation
protobuf.js copied to clipboard

Cannot find module 'protobufjs' after attempting install in every way I can possibly think of

Open IronFoxGaming opened this issue 7 months ago • 2 comments

I'm trying to use the protobufjs for a script that turns a vpd into a json, but no matter what I do, I always get the error "Cannot find module 'protobufjs'". I've tried using all of the following in order to attempt to install protobufjs

  • npm install protobufjs --save (followed by) npm install -g [email protected]
  • npm install protobufjs
  • npm install node-modules
  • npm i protobufjs
  • npm i [email protected]
  • rm -rf node_modules (rm apparently doesn't exist, but was followed by) npm install

as well as trying to uninstall and reinstall node.js, uninstall and downgrade node.js, and reinstall node.js again along with protobufjs each time, in addition to trying to download the files off of Github manually, which doesn't seem to work since I can only find the entire source code zip file instead of what I assume is just a .js that I need. Throughout the entire thing, attempting to put just "protobufjs" or "node protobufjs" into the command prompt would say that no such command or file exists of that name. I've also ran fix --force commands whenever an install of either had issues, attempting to run the script I wanted to use both before and after.

I have tried everything I can think of, as well as everything the one person I know who knows anything about this can think of, and we've completely reached a dead end. I'm hoping the devs could give some insight on what else I could attempt to do, or at least let me know if I'm somehow cursed to only ever own machines that can never install protobufjs at any point ever, since I've had this same issue across two different Windows computers.

IronFoxGaming avatar Apr 30 '25 02:04 IronFoxGaming

npm config list what does this say? could be an issue with the incorrect registry.

mridshri avatar May 05 '25 16:05 mridshri

Image Gives me this when I run it, not sure what it means

IronFoxGaming avatar May 07 '25 15:05 IronFoxGaming