René's URL Explorer Experiment


Title: Permission denied error when trying to install pnpm via Corepack as node user · Issue #1732 · nodejs/docker-node · GitHub

Open Graph Title: Permission denied error when trying to install pnpm via Corepack as node user · Issue #1732 · nodejs/docker-node

X Title: Permission denied error when trying to install pnpm via Corepack as node user · Issue #1732 · nodejs/docker-node

Description: Environment Node.js Version: 16.15.0 Image Tag: lts-alpine Expected Behavior I should be able to install pnpm using Corepack as a non-privilegied user. Current Behavior When I try to install pnpm via Corepack (corepack enable) as non-pri...

Open Graph Description: Environment Node.js Version: 16.15.0 Image Tag: lts-alpine Expected Behavior I should be able to install pnpm using Corepack as a non-privilegied user. Current Behavior When I try to install pnpm v...

X Description: Environment Node.js Version: 16.15.0 Image Tag: lts-alpine Expected Behavior I should be able to install pnpm using Corepack as a non-privilegied user. Current Behavior When I try to install pnpm v...

Opengraph URL: https://github.com/nodejs/docker-node/issues/1732

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Permission denied error when trying to install pnpm via Corepack as node user","articleBody":"\u003c!--\r\nThank you for reporting an issue with the Node.js image.\r\n\r\nPlease fill in as much of the template below as you're able.\r\n--\u003e\r\n\r\n## Environment\r\n\r\n* **Node.js Version**: 16.15.0\r\n* **Image Tag**: lts-alpine\r\n\r\n## Expected Behavior\r\n\r\n\u003c!--\r\nTell us what should happen. If possible please provide textual output instead of screenshots.\r\n--\u003e\r\n\r\nI should be able to install pnpm using Corepack as a non-privilegied user.\r\n\r\n## Current Behavior\r\n\r\n\u003c!--\r\nTell us what happens instead of the expected behavior. If possible please provide textual output instead of screenshots.\r\n--\u003e\r\n\r\nWhen I try to install pnpm via Corepack (`corepack enable`) as non-privilegied user (`-u node`), I get the following error:\r\n\r\n```txt\r\n/app $ corepack enable\r\nInternal Error: EACCES: permission denied, symlink '../lib/node_modules/corepack/dist/pnpm.js' -\u003e '/usr/local/bin/pnpm'\r\nError: EACCES: permission denied, symlink '../lib/node_modules/corepack/dist/pnpm.js' -\u003e '/usr/local/bin/pnpm'\r\n/app $ \r\n```\r\n\r\nRunning `corepack enable` as `root` work as expected.\r\n\r\n```\r\ndocker run -it -v $(pwd):/app node:lts-alpine /bin/sh\r\n```\r\n\r\n![image](https://user-images.githubusercontent.com/675238/171863662-4777b880-8a0c-447d-b3d6-423277c5acb9.png)\r\n\r\n\r\n## Steps to Reproduce\r\n\r\n\u003c!--\r\nTell us about the steps you took to encounter this bug with the image.\r\n--\u003e\r\n\r\n1. Create an empty project with the following `package.json`. The `packageManager` property is important here.\r\n\r\n    ```json\r\n    {\r\n        \"name\": \"docker-node-pnpm\",\r\n        \"version\": \"1.0.0\",\r\n        \"private\": true,\r\n        \"packageManager\": \"pnpm@7.1.7\"\r\n    }\r\n    ```\r\n2. Run the container as a non-privilegied user: `docker run -it -v $(pwd):/app -u node node:lts-alpine /bin/sh`\r\n3. `cd /app`\r\n4. `corepack enable` \u003c-- This should fail\r\n5. `corepack prepare`\r\n6. `pnpm install`\r\n","author":{"url":"https://github.com/bgondy","@type":"Person","name":"bgondy"},"datePublished":"2022-06-03T13:29:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/1732/docker-node/issues/1732"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9b78e862-fe9a-9245-6b8c-e0458bb0662c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB870:3007FC:931D1F:CE57AA:6A4E7BA5
html-safe-nonce58c7a0f1c7520d78e8040489ab3ff1c004332e77e3b3c95789938507ef13c3a6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODcwOjMwMDdGQzo5MzFEMUY6Q0U1N0FBOjZBNEU3QkE1IiwidmlzaXRvcl9pZCI6IjQzNTA3ODM4NTk1Mzg2ODg5MzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2f0361979974111c4979a6e6dafbdb86b8319468426f71a3c58140e22e67e546
hovercard-subject-tagissue:1259919727
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/docker-node/1732/issue_layout
twitter:imagehttps://opengraph.githubassets.com/aba9a7429e004c747cd420429b06df98f7ddcb1a07783ab730abe033169cd811/nodejs/docker-node/issues/1732
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/aba9a7429e004c747cd420429b06df98f7ddcb1a07783ab730abe033169cd811/nodejs/docker-node/issues/1732
og:image:altEnvironment Node.js Version: 16.15.0 Image Tag: lts-alpine Expected Behavior I should be able to install pnpm using Corepack as a non-privilegied user. Current Behavior When I try to install pnpm v...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebgondy
hostnamegithub.com
expected-hostnamegithub.com
None41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c
turbo-cache-controlno-preview
go-importgithub.com/nodejs/docker-node git https://github.com/nodejs/docker-node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27929056
octolytics-dimension-repository_nwonodejs/docker-node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27929056
octolytics-dimension-repository_network_root_nwonodejs/docker-node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6a744804e8e70f97b4d5a18a94dcc63db22f97a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/docker-node/issues/1732#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fdocker-node%2Fissues%2F1732
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fdocker-node%2Fissues%2F1732
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fdocker-node
Reloadhttps://github.com/nodejs/docker-node/issues/1732
Reloadhttps://github.com/nodejs/docker-node/issues/1732
Reloadhttps://github.com/nodejs/docker-node/issues/1732
Please reload this pagehttps://github.com/nodejs/docker-node/issues/1732
nodejs https://github.com/nodejs
docker-nodehttps://github.com/nodejs/docker-node
Notifications https://github.com/login?return_to=%2Fnodejs%2Fdocker-node
Fork 2k https://github.com/login?return_to=%2Fnodejs%2Fdocker-node
Star 8.6k https://github.com/login?return_to=%2Fnodejs%2Fdocker-node
Code https://github.com/nodejs/docker-node
Issues 37 https://github.com/nodejs/docker-node/issues
Pull requests 15 https://github.com/nodejs/docker-node/pulls
Discussions https://github.com/nodejs/docker-node/discussions
Actions https://github.com/nodejs/docker-node/actions
Security and quality 0 https://github.com/nodejs/docker-node/security
Insights https://github.com/nodejs/docker-node/pulse
Code https://github.com/nodejs/docker-node
Issues https://github.com/nodejs/docker-node/issues
Pull requests https://github.com/nodejs/docker-node/pulls
Discussions https://github.com/nodejs/docker-node/discussions
Actions https://github.com/nodejs/docker-node/actions
Security and quality https://github.com/nodejs/docker-node/security
Insights https://github.com/nodejs/docker-node/pulse
Permission denied error when trying to install pnpm via Corepack as node userhttps://github.com/nodejs/docker-node/issues/1732#top
permissionsFile or other permissionshttps://github.com/nodejs/docker-node/issues?q=state%3Aopen%20label%3A%22permissions%22
https://github.com/bgondy
bgondyhttps://github.com/bgondy
on Jun 3, 2022https://github.com/nodejs/docker-node/issues/1732#issue-1259919727
https://user-images.githubusercontent.com/675238/171863662-4777b880-8a0c-447d-b3d6-423277c5acb9.png
permissionsFile or other permissionshttps://github.com/nodejs/docker-node/issues?q=state%3Aopen%20label%3A%22permissions%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.