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

标签 node.js nginx centos systemd

我正在关注如何在 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/

相关文章:

node.js - Express 4 的 Node 检查器

javascript - NestJs 如何在特定时间每天运行 3 次 cron 作业

javascript - Webpack 错误 - configuration.node 具有未知属性 'fs'

ruby-on-rails - ubuntu 服务器(nginx+passenger+capistrano)上的 Rails 应用程序日志在哪里?

centos - Podman 图像未使用 podman 图像 ls 显示

linux - 即使安装了软件包,repoquery 也不会输出任何软件包 (yum-utils)

angularjs - 在前端过滤MongoDB数据

haskell - 使用 nginx 通过 https 运行 Haskellservant

http - 是否可以将非 http 连接请求转发到 nginx 中的其他端口?

linux - 文件内容无节标题