![]() ![]() Maybe we should use the symlink path /opt/homebrew/bin/node instead of the real path /opt/homebrew/Cellar/node/16.10. After a moment of googling for answers, I found this github issue. The global bins should still work after brew upgrade node. This error shows up when npm tries to update itself. Once you have nvm installed you can use the following command to get the latest stable version of Node.js: nvm install stable NPX. ![]() follow the steps you will have the result: brew search node (here you can see the version eg: node10, node12, node14) brew unlink node. This behavior makes the node executable path in bin shims no longer available. I have used brew in mac to downgrade the node. However, this node path won't be preserved after a version upgrade performed by Homebrew.įor example, if we run brew upgrade node that upgrades node from version 16.10.0_1 to 16.11.1 (and also do a brew cleanup), the directory /opt/homebrew/Cellar/node/16.10.0_1 would be removed and a new directory /opt/homebrew/Cellar/node/16.11.1 are created. Which is using an absolute path of node executable. Basedir= $(dirname " $(echo " $0 " | sed -e 's,\\,/,g ' ) " ) case `uname ` in *CYGWIN *) basedir= `cygpath -w " $basedir " ` Įsac "/opt/homebrew/Cellar/node/16.10.0_1/bin/node " " $basedir/./lib/pnpm-global/5/node_modules/wscat/bin/wscat " " " exit $? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |