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

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/defaults' is not defined by "exports" #4

Open
fcmarcoa opened this issue May 18, 2024 · 1 comment

Comments

@fcmarcoa
Copy link

fcmarcoa commented May 18, 2024

Hello Everyone

Im kind of newbe (Very) with node.js and overall javascript, Im was trying to get enm cli installed on my windows 11 system since I use enm on daily basis for my job and im kind of tired of the slow interface lol, but Im getting bellow error when i try too run the application on windos power shell, is there any workaround?

thanks

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/defaults' is not defined by "exports" in C:\Users<myuser>\Documents\enm-cli-master\node_modules\axios\package.json
at exportsNotFound (node:internal/modules/esm/resolve:304:10)
at packageExportsResolve (node:internal/modules/esm/resolve:651:9)
at resolveExports (node:internal/modules/cjs/loader:592:36)
at Module._findPath (node:internal/modules/cjs/loader:669:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1131:27)
at Module._load (node:internal/modules/cjs/loader:986:27)
at Module.require (node:internal/modules/cjs/loader:1233:19)
at require (node:internal/modules/helpers:179:18)
at Object. (C:\Users<myuser>\Documents\enm-cli-master\node_modules\axios-cookiejar-support\lib\index.js:8:40)
at Module._compile (node:internal/modules/cjs/loader:1358:14) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'

@vvsviridov
Copy link
Owner

Hi, @fcmarcoa. which are your nodejs and enm-cli versions? Current nodejs target is LTS 20.13.

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

2 participants