嗨,我有两个项目,一个是 angularjs 4.4.7,另一个是 angular 6 版本。为此,我需要在节点版本之间切换。我尝试使用手动工作的 NVM。如何在 angularjs 程序中处理版本更改以在自动加载最新的 angular 页面时更改节点版本。有没有这种可能的方法。我也通过了 #avn 但如何创建 .node-version 文件。有人可以帮助提供任何链接或正确的示例步骤吗
我尝试使用以下命令在 Mac 上安装 NVM:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
Run Code Online (Sandbox Code Playgroud)
但是,我收到一条错误消息:“语法错误接近意外`(”。下面提供了有关错误日志的更多详细信息。我做错了什么?
VFZ:repo2022 john$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4934 100 4934 0 0 686 0 0:00:07 0:00:07 --:--:-- 686
bash: line 1: syntax error near unexpected token `('
bash: line 1: `<!-- Copyright (C) 2016 Intel Corporation. All rights reserved. -->'
VFZ:repo2022 john$
Run Code Online (Sandbox Code Playgroud)
系统-MAC