GithubHelp home page GithubHelp logo

oulae-admin-cli's Introduction

写在前面

该项目是脚手架的联系项目,如果想要学习实现一个脚手架,请看下面的: 如何设计并实现一个脚手架?

如何设计并实现一个脚手架?

  1. 中高级前端必备:如何设计并实现一个脚手架
  2. cli-template

发布

$ npm run lint
$ npm run build
$ npm publish

如何使用

$ npm install oulae-admin-cli -g

# 创建项目:./Test
$ oulae-admin-cli create Test

# 创建项目: ./admin/Test
$ oulae-admin-cli create Test --context=admin

npm 发布问题

在发布这个包时,遇到下面这个问题:

npm ERR! 403 403 Forbidden - PUT https://registry.npmjs.org/oulae-admin-cli - You cannot publish over the previously published versions: 0.1.3.
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy, or
npm ERR! 403 on a server you do not have access to.

查询了这个链接:You cannot publish over the previously published versions

解决方案是,我要将下面这条指令删掉:

script: {
  "publish": "npm run build && npm publish",
}

这样就解决问题了

oulae-admin-cli's People

Contributors

ouleworld avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.