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

create-trade-vue-web

v0.1.6

Published

接入sso认证的快速项目,项目内配置了常用的vue插件和组件,如vue-router、vuex、element-plus、axios、tailwindcss、aggrid等组件和库

Readme

create-trade-vue-web

项目介绍

接入sso认证的快速项目,项目内配置了常用的vue插件和组件,如vue-router、vuex、element-plus、axios、tailwindcss、aggrid等组件和库

快速构建项目

npx --registry=http://223.105.70.235:13011/repository/asset-tech-npm/ create-trade-vue-web my-app

发布到公司私服仓库流程

  1. 包配置
  • package.json 设置:
    • name: 建议使用 create-trade-vue-web
    • version: 语义化版本(如 0.1.0)
    • private: false(允许发布)
    • bin: { "create-trade-vue-web": "bin/create-trade-vue-web.mjs" }
    • files: ["bin"](如后续拆分模板目录,再将 "template" 加入)
  1. 私服 .npmrc 配置
  • 在项目根或用户级 .npmrc 中配置:
    • registry=http://223.105.70.235:13011/repository/asset-tech-npm/
  • 登录:npm login --registry=http://223.105.70.235:13011/repository/asset-tech-npm/
  1. 发布命令
  • pnpm publish --registry=http://223.105.70.235:13011/repository/asset-tech-npm/
  • 若使用作用域包名(@your-scope/create-trade-vue-web),请确保作用域指向私服 registry
  1. 使用方式
  • 私服拉取并执行: npx --registry=http://223.105.70.235:13011/repository/asset-tech-npm/ create-trade-vue-web my-app --name <项目名> --pm <pnpm|npm|yarn> --install
  • 本地直接运行:node bin/create-trade-vue-web.mjs <目标目录> --name <项目名> --pm <pnpm|npm|yarn>
  1. CLI 参数
  • 位置参数 <目标目录>:生成到的目录;未提供时默认为当前目录
  • --name <项目名>:目标项目包名;未提供时交互式提示,默认用目标目录名
  • --pm <pnpm|npm|yarn>:选择包管理器;默认 pnpm
  • --install:生成后自动安装依赖
  1. 复制与初始化逻辑(当前实现)
  • 从仓库根复制代码,自动忽略:node_modules、.git、bin、构建产物(trade-vue-web)以及目标目录自身(避免递归复制)
  • 重写目标 package.json:name/private/version,移除 bin/files 字段;安装依赖可由 CLI 自动执行
  1. 常见问题
  • 403 或鉴权失败:检查 .npmrc registry 与 _authToken
  • 模板缺失:若后续引入 template 目录,记得将其加入 package.json files
  • 依赖安装脚本受限:执行 pnpm approve-builds 允许相关脚本运行
  • 公司的私服npm仓库缺少很多必要的依赖,请安装时切换到公网的npm仓库