Migrating to rinkeby using truflle and openzeppelin upgradeable contracts

Im having trouble migrating my smart contract to rinkeby testnet.
I am using truffle and the upgradebable contracts from openzeppelin.
I can develop and compile the contracts successfully but when I migrate to rinkeby (i use migrate --network rinkeby) when im inside the truffle develop I can migrate the 1_initail_migration.js file, and I even see the ethereum being charged in my rinkeby testnet in metamask. But when 2_deploy_contracts.js is migrating, I get the following error:

Do you need me to share any code with you to get a better idea?

The errors i get are the following:

internal/modules/cjs/loader.js:983
  throw err;
  ^

internal/modules/cjs/loader.js:983
  throw err;
  ^

Error: Cannot find module '@openzeppelin/truffle-upgrades'
Require stack:
- C:\Users\arman\AppData\Roaming\npm\node_modules\truffle\node_modules\original-require\index.js
- C:\Users\arman\AppData\Roaming\npm\node_modules\truffle\build\consoleChild.bundled.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
    at Function.Module._load (internal/modules/cjs/loader.js:862:27)
    at Module.require (internal/modules/cjs/loader.js:1042:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at require (C:\Users\arman\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\require\require.js:79:1)
    at Script.runInContext (vm.js:131:20)
    at Script.runInNewContext (vm.js:137:17)
    at Object.file (C:\Users\arman\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\require\require.js:94:1)
    at Migration._load (C:\Users\arman\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:44:1)
    at Migration.run (C:\Users\arman\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:217:1)
    at Object.runMigrations (C:\Users\arman\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js:150:1)
    at Object.runFrom (C:\Users\arman\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js:110:1)
    at Object.run (C:\Users\arman\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js:87:1)
    at runMigrations (C:\Users\arman\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\commands\migrate.js:258:1)
    at Object.run (C:\Users\arman\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\commands\migrate.js:223:1)
    at Command.run (C:\Users\arman\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\command.js:172:1)

But on my package.json I do have it the package installed as a devDependency:
this is how i installed it:
npm install --save-dev @openzeppelin/truffle-upgrades

Thank you

Can you try migrate against a local Ganache network?

it works when I migrate to my local ganache network

Sorry for the delay. We haven't seen this problem before, and it sounds like a problem in your local setup. I would urge you to tinker with it some more to see if you can find more information since I don't have time to dig into it to debug.