You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related Issue (Required): Fixes #issue_number](fix: use npm replace npx when installing package)
Type of change
Please delete options that are not relevant.
Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to not work as expected)
Refactor (does not change functionality, e.g. code style improvements, linting)
Documentation update
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Unit Test
Test Script Or Test Steps (please provide)
Pipeline Automated API Test (please provide)
Checklist
I have performed a self-review of my own code | 我已自行检查了自己的代码
I have commented my code in hard-to-understand areas | 我已在难以理解的地方对代码进行了注释
I have added tests that prove my fix is effective or that my feature works | 我已添加测试以证明我的修复有效或功能正常
I have created related documentation issue/PR in MemOS-Docs (if applicable) | 我已在 MemOS-Docs 中创建了相关的文档 issue/PR(如果适用)
I have linked the issue to this PR (if applicable) | 我已将 issue 链接到此 PR(如果适用)
I have mentioned the person who will review this PR | 我已提及将审查此 PR 的人
Reviewer Checklist
closes #xxxx (Replace xxxx with the GitHub issue number)
This PR adds two new install scripts (install.sh for Linux/macOS, install.ps1 for Windows) that replace npx with direct npm commands for plugin installation. The scripts handle Node.js version checking (>=22), auto-installation via brew/apt/dnf/winget, plugin download via npm pack, tarball extraction, dependency installation, and OpenClaw config update. The bash script uses set -euo pipefail with proper error handling. Additionally, the PR modifies index.ts to use createRequire and improve native module loading, postinstall.cjs with path normalization and shell: false, and updates package.json and SKILL.md.
The install scripts are comprehensive and well-written. However, the PowerShell script forcibly kills processes occupying the target port (Stop-Process -Id ... -Force), which could be disruptive if another service is using that port. The broad scope — combining install scripts + native module improvements + SKILL.md metadata — also makes this a higher-risk merge.
Remove or guard the port-killing logic in install.ps1 (around line 230-240). Instead of unconditionally killing processes on the target port, either remove that block entirely or add a confirmation prompt (-Confirm) before proceeding. Users can manually stop the gateway if needed.
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
use npm replace npx when installing package
Related Issue (Required): Fixes #issue_number](fix: use npm replace npx when installing package)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist
Reviewer Checklist