gpt4 book ai didi

node.js - 缺少 Node.js 的目录

转载 作者:行者123 更新时间:2023-12-04 19:37:24 25 4
gpt4 key购买 nike

我正在关注如何在 CentOS 上使用 Systemd 和 Nginx 部署 Node.js 应用程序的教程,但我坚持要求我运行以下命令的步骤:

光盘
curl https://raw.github.com/creationix/nvm/master/install.sh |嘘
源 ~/.nvm/nvm.sh

运行后,source ~/.nvm/nvm.sh bash 回来了:No such file or directory。

知道我在这里缺少什么吗?

完整的教程可以在这里找到:https://www.digitalocean.com/community/tutorials/how-to-deploy-node-js-applications-using-systemd-and-nginx

谢谢!

最佳答案

它应该是:

curl https://raw.github.com/creationix/nvm/master/install.sh | sh;
source ~/.nvm/nvm.sh

尽管 git repo说要运行:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash

关于node.js - 缺少 Node.js 的目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41066324/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com