PP

pubky/pubky-app

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

26 stars 质量 67 趋势 31MIT

- Node.js(推荐版本请参见 .nvmrc)

概览

- Node.js(推荐版本请参见 .nvmrc) 首先,安装依赖并运行开发服务器: 用浏览器打开http://localhost:3000查看结果。 npm 11.16+ 在 package.json 的 allowScripts 字段后方对依赖生命周期脚本(预装/安装/后安装)进行门禁:npm 11 警告未批准脚本但仍执行,npm 12 跳过。其中列出的包按名称(任何版本)批准,符合项目一直安装的方式。Cypress 需要其脚本来下载 Cypress 二进制文件;@sentry/CLI 脚本是一个备用,只有在其预构建的平台包缺失时才有效;browser-tabs-lock 只打印一条消息。运行 npm 安装脚本 prune 以删除已离开依赖树的包条目。

概述(AI 翻译)

先修条件

  • Node.js(推荐版本请参见 .nvmrc)

开始

首先,安装依赖并运行开发服务器:

用浏览器打开http://localhost:3000查看结果。

依赖安装脚本

npm 11.16+ 在 package.json 字段后面设置依赖生命周期脚本(preinstall / install / postinstall):npm 11 警告未批准脚本但仍执行,npm 12 跳过。该文件列出的包按名称批准(任意版本),与项目一直安装的方式一致。cypress 需要其脚本来下载 Cypress 二进制文件;@sentry/cli 脚本是一个备用程序,只有在其预构建的平台包缺失时才有效;browser-tabs-lock 只打印一条消息。运行 npm install-scripts prune 以删除已离开依赖树的包条目。任何带有安装脚本的新依赖仍会被标记(npm 11 警告,npm 12 跳过该程序,安装可能出问题);用npm install-scripts ls审查,如果合法,再加npm install-scripts approve --no-allow-scripts-pin。

环境变量

本页由 AI 翻译,技术细节请以原文为准。

README

Pubky web app

Prerequisites

  • Node.js (see .nvmrc for the recommended version)

Getting Started

First, install the dependencies and run the development server:

npm install
npm run dev

Open http://localhost:3000 with your browser to see the result.

Dependency install scripts

npm 11.16+ gates dependency lifecycle scripts (preinstall / install / postinstall) behind the allowScripts field in package.json: npm 11 warns about unapproved scripts but still runs them, npm 12 skips them. The packages listed there are approved by name (any version), which matches how the project has always installed. cypress needs its script to download the Cypress binary; the @sentry/cli script is a fallback that only does work when its prebuilt platform package is missing; browser-tabs-lock only prints a message. Run npm install-scripts prune to drop entries for packages that have left the dependency tree. Any new dependency with an install script is still flagged (npm 11 warns, npm 12 skips it and the install may break); review it with npm install-scripts ls and, if it is legitimate, add it with npm install-scripts approve --no-allow-scripts-pin.

Environment Variables

Copy the example environment file and adjust the values as needed:

cp .env.example .env

See docs/environment.md for more details.

Common Workflows

License

This project is licensed under the MIT License.
See the LICENSE file for more details.

在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add pubky/pubky-app
新手?先看 mcpskill.org 教程 →