我正在尝试对 nodejs 做一些事情,但我收到了这个错误
/usr/bin/env: node: No such file or directory
我现在这个错误是针对nodejs的,它在fedora上的调用方式与'nodejs'相同,我的问题是我如何才能仅为'node'更改它?
提前致谢
Are you sure nodejs is installed? It looks like it's a script or shell trying to launch node but not finding the executable in your path.
Try running "node --version" from a terminal, does that work?
If not, make sure you have nodejs installed. Instructions for Fedora can be found here https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
sudo yum localinstall --nogpgcheck http://nodejs.tchol.org/repocfg/fedora/nodejs-stable-release.noarch.rpm
sudo yum install nodejs-compat-symlinks npm