npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

npm-test-gutai

v1.0.0

Published

'用于自己熟悉打包上传到npm的流程!'

Readme

用于测试npm上传功能。

1. 生成配置项 npm init

npm init 的配置项,也可以通过package.json文件进行配置,具体package.json属性介绍请查看:https://docs.npmjs.com/cli/v8/configuring-npm/package-json

> npm init

package name: // 项目名称 
version: (1.0.0)  // 版本号,默认是1.0.0。对于npm包的版本号有着一系列的规则,模块的版本号采用X.Y.Z的格式,具体体现为
// 1、修复bug,小改动,增加z。
// 2、增加新特性,可向后兼容,增加y
// 3、有很大的改动,无法向下兼容,增加x
description: // 项目的描述
entry point: (index.js) // 入口文件,默认是Index.js,可以修改成自己的文件 
test command: // 测试命令
git repository: // git仓库
keywords: // 关键字,可以通过关键字来搜索你的包
author: // 作者
license: (ISC) // 开源协议,也可以是MIT

2. npm adduser,第一次发布包(非第一次可忽略)

在终端输入npm adduser,提示输入账号,密码和邮箱,然后将提示创建成功,具体如下图。 npm adduser成功的时候默认你已经登陆了,非第一次登录使用npm login,成功提示Logged in as gu_tai on https://registry.npmjs.org/.

当登录报错403时,

403 Forbidden - PUT https://registry.npmmirror.com/-/user/org.couchdb.user:gu_tai - [FORBIDDEN] Public registration is not allowed

切换npm镜像为npm官方的 npm config set registry https://registry.npmjs.org/

3. npm publish 发包

403 Forbidden - PUT https://registry.npmjs.org/npm-test - You do not have permission to publish "npm-test". Are you logged in as the correct user?

出现错误,包名重复,更换包名