[英]Application build: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]
I am currently working with jest for my application and I am having this error when running the test npm run test
我目前正在为我的应用程序使用 jest,并且在运行测试
npm run test
时出现此错误
UnhandledPromiseRejectionWarning: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './internal/Observable' is not defined by "exports" in /Applications/App/node_modules/@nrwl/workspace/node_modules/rxjs/package.json
at applyExports (internal/modules/cjs/loader.js:491:9)
at resolveExports (internal/modules/cjs/loader.js:507:23)
at Function.Module._findPath (internal/modules/cjs/loader.js:635:31)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1007:27)
at Function.Module._load (internal/modules/cjs/loader.js:890:27)
at Module.require (internal/modules/cjs/loader.js:1080:19)
To solve this problem you can try running an audit fix with this command要解决此问题,您可以尝试使用此命令运行审核修复
npm audit fix
This command basically submits a description of the dependencies configured in your package to your default registry and asks for a report of known vulnerabilities.此命令基本上将 package 中配置的依赖项的描述提交到默认注册表,并要求报告已知漏洞。 npm audit checks direct dependencies, devDependencies, bundledDependencies, and optionalDependencies, but does not check peerDependencies.
npm 审计检查直接依赖项、devDependencies、bundledDependencies 和 optionalDependencies,但不检查 peerDependencies。 https://docs.npmjs.com/auditing-package-dependencies-for-security-vulnerabilities
https://docs.npmjs.com/auditing-package-dependencies-for-security-vulnerabilities
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.