Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM install fails on Windows #781

Open
CDFriend opened this issue Feb 13, 2023 · 0 comments
Open

NPM install fails on Windows #781

CDFriend opened this issue Feb 13, 2023 · 0 comments

Comments

@CDFriend
Copy link

Type of issue

Bug.


My environment

  • OS version/details: Windows 11 22H2 64-bit
  • Node version: 16.18.1
  • npm version: 8.9.2
  • Version of yo : 4.3.1

Expected behavior

When I install yo via npm, the package should install without issue.

Current behavior

Install fails due to (what appears to be) an error in duplexer3.

Steps to reproduce the behavior

See command line steps below.

Command line output

PS C:\users\cfriend\mswork\fhl-outlook-addin-poc> npm install -g [email protected]
npm ERR! code 1
npm ERR! path C:\ProgramData\nvm\v16.18.1\node_modules\yo
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c yodoctor
npm ERR! node:internal/modules/cjs/loader:401
npm ERR!       throw err;
npm ERR!       ^
npm ERR!
npm ERR! Error: Cannot find module 'C:\ProgramData\nvm\v16.18.1\node_modules\yo\node_modules\duplexer3\index.js'. Please verify that the package.json has a valid "main" entry
npm ERR!     at tryPackage (node:internal/modules/cjs/loader:393:19)
npm ERR!     at Function.Module._findPath (node:internal/modules/cjs/loader:606:18)
npm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:971:27)
npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:833:27)
npm ERR!     at Module.require (node:internal/modules/cjs/loader:1057:19)
npm ERR!     at require (node:internal/modules/cjs/helpers:103:18)
npm ERR!     at Object.<anonymous> (C:\ProgramData\nvm\v16.18.1\node_modules\yo\node_modules\yeoman-doctor\node_modules\got\index.js:8:19)
npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1155:14)
npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
npm ERR!     at Module.load (node:internal/modules/cjs/loader:1033:32) {
npm ERR!   code: 'MODULE_NOT_FOUND',
npm ERR!   path: 'C:\\ProgramData\\nvm\\v16.18.1\\node_modules\\yo\\node_modules\\duplexer3\\package.json',
npm ERR!   requestPath: 'duplexer3'
npm ERR! }

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\cfriend\AppData\Local\npm-cache\_logs\2023-02-13T22_03_11_930Z-debug-0.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant