{"id":30375517,"url":"https://github.com/pnpm/plugin-esm-node-path","last_synced_at":"2025-08-20T12:15:56.266Z","repository":{"id":300935148,"uuid":"1006756638","full_name":"pnpm/plugin-esm-node-path","owner":"pnpm","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-09T12:11:34.000Z","size":12,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-09T01:31:00.545Z","etag":null,"topics":["pnpm-config"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pnpm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-22T23:58:20.000Z","updated_at":"2025-07-29T04:53:37.000Z","dependencies_parsed_at":"2025-07-13T06:25:44.330Z","dependency_job_id":"1514186f-edf9-43e3-805b-3704b03d1f56","html_url":"https://github.com/pnpm/plugin-esm-node-path","commit_stats":null,"previous_names":["pnpm/node-path-for-esm","pnpm/plugin-esm-node-path"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/pnpm/plugin-esm-node-path","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnpm%2Fplugin-esm-node-path","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnpm%2Fplugin-esm-node-path/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnpm%2Fplugin-esm-node-path/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnpm%2Fplugin-esm-node-path/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pnpm","download_url":"https://codeload.github.com/pnpm/plugin-esm-node-path/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnpm%2Fplugin-esm-node-path/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271314723,"owners_count":24738227,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pnpm-config"],"created_at":"2025-08-20T12:15:54.991Z","updated_at":"2025-08-20T12:15:56.260Z","avatar_url":"https://github.com/pnpm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @pnpm/plugin-esm-node-path\n\n## Why is it needed\n\nNode.js ESM (ES modules) doesn't support the `NODE_PATH` environment variable, unlike CommonJS modules. This creates [issues](https://github.com/pnpm/pnpm/issues/9618) when using pnpm with a [global virtual store](https://pnpm.io/settings#enableglobalvirtualstore). Many packages are importing other packages that are not actually in their dependnecies. To make these package work with pnpm, pnpm creates a directory with semi-hoisted packages at `node_modules/.pnpm/node_modules`. However, when a global virtual store is used, the dependnecies are symlinked from a different directory outside of the project's directory, so dependnecies from this hoisted `node_modules` are not used by Node.js during resolution. To solve this, pnpm adds this hoisted `node_modules` to `NODE_PATH`. This tells Node.js to search the hoisted `node_modules` for dependnecies. This works fine for dependnecies using the CommonJS module system. However, ESM stopped reading the `NODE_PATH` environment variable. That is why this config dependnecy was created. This config dependency registers an ES module loader that will look up dependencies in `NODE_PATH`.\n\n## Installation\n\n```\npnpm add --config @pnpm/plugin-esm-node-path\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpnpm%2Fplugin-esm-node-path","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpnpm%2Fplugin-esm-node-path","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpnpm%2Fplugin-esm-node-path/lists"}