-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
599bd5f
commit 54f22a4
Showing
4 changed files
with
33 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1346,15 +1346,15 @@ koa2 run dev 项目名称 | |
|
||
``` | ||
#### | ||
## Nest 框架 | ||
Nest 是一个用于构建高效,可拓展的 Node.js 服务端应用程序的框架。它使用渐进式JavaScript,内置并完全支持TypeScript(但仍然允许开发人员使用纯JavaScript编写代码)并结合了OOP(面向对象编程)。FP(函数式编程)和FRP(函数时响应编程)的元素。 | ||
**安装使用** | ||
#### 安装使用 | ||
```sh | ||
|
||
|
@@ -1374,13 +1374,17 @@ git clone https://github.com/nestjs/typescript-starter.git <项目名> | |
### Volta | ||
## Volta | ||
Volta 是一种管理 JavaScript 命令行工具的便捷方式。 | ||
Volta 的优点就是:速度、无缝,每个项目的版本切换、跨平台支持、支持多个包管理器、稳定的工具安装、可拓展性。 | ||
缺点:安装其他的工具时,老是报一些莫名其妙的错误 <span style="color: red">Volta error: Could not create shared environment for package</span> | ||
**常见问题:** 安装其他的工具时,老是报一些莫名其妙的错误 <span style="color: red">Volta error: Could not create shared environment for package</span> | ||
**解决方法:** 用管理员权限打开终端 | ||
```sh | ||
|
||
|
@@ -1393,6 +1397,8 @@ volta install [email protected] | |
# 为一个项目选择节点引擎和包管理器, 这个命令需在项目目录下使用,该命令会记录版本号到 package.json 文件中 | ||
# 固定项目的运行时或包管理器 | ||
volta pin node@14.18.0 | ||
# 然后切换当前项目node版本 | ||
node -v | ||
|
||
# 从工具链中删除 | ||
volta uninstall node@14.18.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters