Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Clean install on Windows does not work #18

Closed
spgennard opened this issue Sep 1, 2020 · 1 comment
Closed

Clean install on Windows does not work #18

spgennard opened this issue Sep 1, 2020 · 1 comment

Comments

@spgennard
Copy link

# npm i -g coboldoc
C:\Users\Stephen Gennard\AppData\Roaming\npm\coboldoc -> C:\Users\Stephen Gennard\AppData\Roaming\npm\node_modules\coboldoc\lib\index.js
+ coboldoc@1.2.0
added 26 packages from 63 contributors in 6.889s


   ╭────────────────────────────────────────────────────────────────╮
   │                                                                │
   │      New patch version of npm available! 6.14.7 -> 6.14.8      │
   │   Changelog: https://github.com/npm/cli/releases/tag/v6.14.8   │
   │               Run npm install -g npm to update!                │
   │                                                                │
   ╰────────────────────────────────────────────────────────────────╯


o:\R16
# coboldoc
internal/modules/cjs/loader.js:614
  throw e;
  ^

Error: No valid exports main found for 'C:\Users\Stephen Gennard\AppData\Roaming\npm\node_modules\coboldoc\node_modules\kleur'
←[90m    at resolveExportsTarget (internal/modules/cjs/loader.js:611:9)←[39m
←[90m    at applyExports (internal/modules/cjs/loader.js:492:14)←[39m
←[90m    at resolveExports (internal/modules/cjs/loader.js:541:12)←[39m
←[90m    at Function.Module._findPath (internal/modules/cjs/loader.js:643:22)←[39m
←[90m    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:941:27)←[39m
←[90m    at Function.Module._load (internal/modules/cjs/loader.js:847:27)←[39m
←[90m    at Module.require (internal/modules/cjs/loader.js:1016:19)←[39m
←[90m    at require (internal/modules/cjs/helpers.js:69:18)←[39m
    at Object.<anonymous> (C:\Users\Stephen Gennard\AppData\Roaming\npm\node_modules\←[4mcoboldoc←[24m\lib\controllers\cli.js:7:41)
←[90m    at Module._compile (internal/modules/cjs/loader.js:1121:30)←[39m {
  code: ←[32m'MODULE_NOT_FOUND'←[39m
}
@spgennard
Copy link
Author

Fixed by update nodejs, you might want to update the docs.

Now, kleur specifically, will still work for Node >= 6 and Node >= 13.7. Only the early 13.x versions will fail.

lukeed/kleur#32

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant