@flun/windows 3.0.6 → 3.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -1
- package/README.md +13 -14
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -20,18 +20,7 @@
|
|
|
20
20
|
- _权限检测_:检测当前用户是否具有管理员权限
|
|
21
21
|
- _进程列表_:列出运行中的 Windows 进程/服务
|
|
22
22
|
- _终止进程_:通过 PID 终止特定进程
|
|
23
|
-
|
|
24
|
-
## 安装
|
|
25
|
-
|
|
26
|
-
推荐通过 npm 全局安装:`npm i -g @flun/windows`
|
|
27
|
-
|
|
28
|
-
然后在项目根目录执行:`npm link @flun/windows`
|
|
29
|
-
|
|
30
|
-
局部安装:`npm i @flun/windows`
|
|
31
|
-
|
|
32
|
-
## 无原生模块依赖
|
|
33
|
-
|
|
34
|
-
Windows 上的原生 Node 模块安装复杂,通常需要 Visual Studio 和 node-gyp 进行编译;@flun/windows **不依赖任何原生模块**,所有二进制工具均已预打包,无需安装 Visual Studio 等编译环境;
|
|
23
|
+
---
|
|
35
24
|
|
|
36
25
|
## 配置
|
|
37
26
|
|
|
@@ -52,10 +41,20 @@ Windows 上的原生 Node 模块安装复杂,通常需要 Visual Studio 和 node
|
|
|
52
41
|
|
|
53
42
|
> 如果你信任所有安装包,也可以直接在项目 `.npmrc` 中设置 `allow-scripts = false`(表示关闭脚本拦截,所有脚本均允许执行),或删除/设为 `ignore-scripts = false`;
|
|
54
43
|
|
|
55
|
-
配置后,再次运行 `npm install` 即可正常执行所有安装钩子;
|
|
56
|
-
|
|
57
44
|
---
|
|
58
45
|
|
|
46
|
+
## 安装
|
|
47
|
+
|
|
48
|
+
推荐通过 npm 全局安装:`npm i -g @flun/windows`
|
|
49
|
+
|
|
50
|
+
然后在项目根目录执行:`npm link @flun/windows`
|
|
51
|
+
|
|
52
|
+
局部安装:`npm i @flun/windows`
|
|
53
|
+
|
|
54
|
+
## 无原生模块依赖
|
|
55
|
+
|
|
56
|
+
Windows 上的原生 Node 模块安装复杂,通常需要 Visual Studio 和 node-gyp 进行编译;@flun/windows **不依赖任何原生模块**,所有二进制工具均已预打包,无需安装 Visual Studio 等编译环境;
|
|
57
|
+
|
|
59
58
|
# Windows 服务管理
|
|
60
59
|
|
|
61
60
|
@flun/windows 可将 Node.js 脚本转换为 Windows 服务;注意:创建服务需要管理员权限!!
|