前端添加node安装
This commit is contained in:
parent
a5c003dcca
commit
3150153637
2
build
2
build
@ -15,4 +15,6 @@ rm -rf ../dist
|
||||
# 执行 mv dist ../
|
||||
mv dist ../
|
||||
|
||||
docker restart book_nginx
|
||||
|
||||
echo "build 完成"
|
@ -1,5 +1,5 @@
|
||||
module.exports = {
|
||||
title: "关于PHP、Docker、FreeSWITCH的技术收藏",
|
||||
title: "关于PHP、Go、Docker、FreeSWITCH的技术收藏",
|
||||
description: "wandoubaba, 一个PHP程序员,在做FreeSWITCH相关应用的开发过程中,积累了一些技术文档,可以当作开发文档,也可以当作技术交流",
|
||||
dest: "dist",
|
||||
base: "/",
|
||||
@ -29,7 +29,8 @@ module.exports = {
|
||||
{ text: 'FreeSWITCH', link: '/freeswitch/' },
|
||||
{ text: 'PHP', link: '/php/' },
|
||||
{ text: 'Docker', link: '/docker/' },
|
||||
{ text: 'Go', link: '/go/' }
|
||||
{ text: 'Go', link: '/go/' },
|
||||
{ text: '前端', link: '/frontend/' }
|
||||
],
|
||||
sidebar: {
|
||||
'/freeswitch/': [
|
||||
@ -79,6 +80,11 @@ module.exports = {
|
||||
'',
|
||||
'proxy',
|
||||
],
|
||||
'/frontend/': [
|
||||
'../',
|
||||
'',
|
||||
'node',
|
||||
],
|
||||
'/': [
|
||||
'',
|
||||
{
|
||||
@ -125,6 +131,14 @@ module.exports = {
|
||||
children: [
|
||||
'/go/proxy',
|
||||
]
|
||||
},
|
||||
{
|
||||
title: '前端', // 必要的
|
||||
collapsable: false, // 可选的, 默认值是 true,
|
||||
sidebarDepth: 1, // 可选的, 默认值是 1
|
||||
children: [
|
||||
'/frontend/node',
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -1,13 +1,15 @@
|
||||
---
|
||||
home: true
|
||||
heroImage: /wandoubaba.png
|
||||
heroText: PHP + Docker + FreeSWITCH
|
||||
tagline: PHP程序员收藏的关于 PHP、Docker、FreeSWITCH 的技术收藏夹
|
||||
heroText: PHP + Go + Docker + FreeSWITCH
|
||||
tagline: 收藏关于 PHP、GoLang、Docker、FreeSWITCH 的技术
|
||||
actionText: 开始 →
|
||||
actionLink: /start.html
|
||||
features:
|
||||
- title: PHP
|
||||
details: 作者仅是一名普通的PHP程序员,主要开发框架是由`walker`发布的`webman`框架。
|
||||
- title: GoLang
|
||||
details: 于2007年由Google创建,PHP的完美补充。
|
||||
- title: Docker
|
||||
details: 拥抱服务容器化思想,包括php、node、nginx、postgres、redis、rabbitmq、elasticsearch、minio、freeswitch等组件一律容器化。
|
||||
- title: FreeSWITCH
|
||||
|
1
docs/frontend/README.md
Normal file
1
docs/frontend/README.md
Normal file
@ -0,0 +1 @@
|
||||
# 前端相关
|
101
docs/frontend/node.md
Normal file
101
docs/frontend/node.md
Normal file
@ -0,0 +1,101 @@
|
||||
# Linux安装node二进制
|
||||
|
||||
> wandoubaba / 2024-08-29
|
||||
|
||||
## 下载
|
||||
|
||||
在 <https://nodejs.org/download/release> 中可以下载到需要的版本和对应平台的安装包。本文写作时的最新版本是`v22.7.0`。
|
||||
|
||||
```sh
|
||||
wget https://nodejs.org/download/release/v22.7.0/node-v22.7.0-linux-x64.tar.xz
|
||||
```
|
||||
|
||||
## 解压安装
|
||||
|
||||
```sh
|
||||
tar xvf node-v22.7.0-linux-x64.tar.xz
|
||||
mv node-v22.7.0-linux-x64 /usr/local/node
|
||||
ln -s /usr/local/node/bin/node /usr/local/bin/node
|
||||
ln -s /usr/local/node/bin/npm /usr/local/bin/npm
|
||||
```
|
||||
|
||||
验证安装
|
||||
|
||||
```sh
|
||||
node --version
|
||||
npm --version
|
||||
```
|
||||
|
||||
## 配置npm源
|
||||
|
||||
淘宝镜像
|
||||
|
||||
```sh
|
||||
npm config set registry https://registry.npmmirror.com
|
||||
```
|
||||
|
||||
阿里云
|
||||
|
||||
```sh
|
||||
npm config set registry https://npm.aliyun.com
|
||||
```
|
||||
|
||||
腾讯云
|
||||
|
||||
```sh
|
||||
npm config set registry http://mirrors.cloud.tencent.com/npm/
|
||||
```
|
||||
|
||||
华为云
|
||||
|
||||
```sh
|
||||
npm config set registry https://mirrors.huaweicloud.com/repository/npm/
|
||||
```
|
||||
|
||||
官方
|
||||
|
||||
```sh
|
||||
npm config set registry https://registry.npmjs.org/
|
||||
```
|
||||
|
||||
## 安装yarn
|
||||
|
||||
Yarn 是一个由 Facebook 贡献的 Javascript 包管理器
|
||||
|
||||
```sh
|
||||
npm install -g yarn
|
||||
ln -s /usr/local/node/bin/yarn /usr/local/bin/yarn
|
||||
```
|
||||
|
||||
验证安装
|
||||
|
||||
```sh
|
||||
yarn --version
|
||||
```
|
||||
## 安装nrm
|
||||
|
||||
nrm 是一个 npm 源管理器,允许你快速地在 npm 源间切换。
|
||||
|
||||
```sh
|
||||
npm install -g nrm
|
||||
ln -s /usr/local/node/bin/nrm /usr/local/bin/nrm
|
||||
```
|
||||
|
||||
查看可选的源
|
||||
|
||||
```sh
|
||||
nrm ls
|
||||
```
|
||||
|
||||
使用taobao源
|
||||
|
||||
```sh
|
||||
nrm use taobao
|
||||
```
|
||||
|
||||
测试速度
|
||||
|
||||
```sh
|
||||
nrm test
|
||||
```
|
||||
|
@ -1,6 +1,6 @@
|
||||
# 前言
|
||||
|
||||
这里包含了由 PHP 程序员创建的技术文档,主要记录在做与 FreeSWITCH 相关的开发过程中所遇到的问题、技能、知识、方法等内容。
|
||||
这里包含了由 PHP 程序员创建的技术文档,主要记录在做与 FreeSWITCH 相关的开发过程中所遇到的问题、技能、知识、方法等内容,也包括学习Go、Docker相关的技术。
|
||||
|
||||
如果这里的内容能帮到您,作者感到很荣幸。
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user