Skip to content
This repository was archived by the owner on Sep 11, 2021. It is now read-only.
This repository was archived by the owner on Sep 11, 2021. It is now read-only.

Cannot find module 'npm-windows-upgrade.js' #166

@wayaway-jtm

Description

@wayaway-jtm
PS C:\Users\jmccarthy> npm-windows-upgrade
node:internal/modules/cjs/loader:926
  throw err;
  ^

Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm-windows-upgrade\bin\npm-windows-upgrade.js'
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:923:15)
    at Function.Module._load (node:internal/modules/cjs/loader:768:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
    at node:internal/main/run_main_module:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

This folder is missing: C:\Program Files\nodejs\node_modules\npm-windows-upgrade even after re-installing.

The package is listed in npm ls -g

I am using NVM for Windows (repo)

I found the file in C:\Users\jmccarthy\AppData\Roaming\npm\node_modules\npm-windows-upgrade\bin so it might just be a problem with NVM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions