nodejs的权限显示为空白。我不知道它是怎么变的。我无法删除或启动节点。怎么解决这个问题?
/usr/bin# ls -la | grep node
lrwxrwxrwx 1 root root 45 Feb 1 14:40 corepack -> ../lib/node_modules/corepack/dist/corepack.js
---------- 1 root root 75421096 Feb 1 08:05 node
lrwxrwxrwx 1 root root 4 Jun 26 00:44 nodejs -> node
lrwxrwxrwx 1 root root 38 Feb 1 14:40 npm -> ../lib/node_modules/npm/bin/npm-cli.js
lrwxrwxrwx 1 root root 38 Feb 1 14:40 npx -> ../lib/node_modules/npm/bin/npx-cli.js/usr/bin# node
-bash: /usr/bin/node: Permission denied/usr/bin# chmod -v 777 node
chmod: changing permissions of 'node': Operation not permitted
failed to change mode of 'node' from 0000 (---------) to 0777 (rwxrwxrwx)发布于 2022-06-27 07:07:34
对我来说,用NVM重新安装节点解决了这个问题:
安装nvm
nvm安装14
nvm使用14
https://stackoverflow.com/questions/72766980
复制相似问题