[英]Internal Error: EACCES: permission denied, symlink '../lib/node_modules/corepack/dist/pnpm.js' -> '/usr/local/bin/pnpm'
I'm trying to enable 'corepack' by running我正在尝试通过运行来启用“corepack”
corepack enable
according to the directions here: https://yarnpkg.com/getting-started/install根据此处的说明: https://yarnpkg.com/getting-started/install
but getting this error但收到此错误
Internal Error: EACCES: permission denied, symlink '../lib/node_modules/corepack/dist/pnpm.js' -> '/usr/local/bin/pnpm'内部错误:EACCES:权限被拒绝,符号链接 '../lib/node_modules/corepack/dist/pnpm.js' -> '/usr/local/bin/pnpm'
How to fix this?如何解决这个问题?
For whatever reason the downloaded node
gave me all sorts of permission issues.无论出于何种原因,下载的node
给了我各种权限问题。 What does work is using nvm
to install node
. nvm
安装node
。
First install nvm
using these directions https://tecadmin.net/install-nvm-macos-with-homebrew/首先使用这些说明安装nvm
https://tecadmin.net/install-nvm-macos-with-homebrew/
Then follow these next steps:然后按照以下步骤操作:
nvm install --lts nvm安装--lts
corepack enable核心包启用
yarn纱
Encountered this myself and it seems like the issue was that the circleci environment doesn't allow access to the default location corepack adds it's binary symlinks ( /usr/local/bin/...
).我自己遇到过这个问题,似乎问题是 circleci 环境不允许访问默认位置 corepack 添加它的二进制符号链接( /usr/local/bin/...
)。 For me it was fixed by instead using ~/bin
for the corepack install directory:对我来说,它是通过使用~/bin
作为 corepack 安装目录来修复的:
corepack enable --install-directory ~/bin
I experienced it today.我今天经历了。 Adding sudo worked fine for me.添加 sudo 对我来说效果很好。 sudo corepack enable sudo corepack 启用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.