usr/bin/env: "node": 没有那个文件或目录

安装完yarn后同理也要设置镜像源:

yarn config set registry https://registry.npm.taobao.org --global
执行命令出现:
usr/bin/env: "node": 没有那个文件或目录

解决办法
https://stackoverflow.com/questions/18130164/nodejs-vs-node-on-ubuntu-12-04

You need to manually create a symlink /usr/bin/node. Shortcut for bash compatible shells:

sudo ln -s which nodejs /usr/bin/node
Or if you use non-standard shells, just hardcode the path you find with which nodejs:

sudo ln -s /usr/bin/nodejs /usr/bin/node

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容