Error when publish UI packages with Windows 10


#1

I need somebody can help me, thanks! I packaged this package https://github.com/torn4dom4n/atom-chrome-ui but it failed and I don’t know how to fix. I am using Windows 10 build 14393 with nodejs v4.4.7. This is command line showed:


#2

The Atom Flight Manual has information on how to publish a package here:

http://flight-manual.atom.io/hacking-atom/sections/publishing/

Specifically, you should use apm publish minor … you don’t need to include the name of the package to publish on the command line, it should already be in the package.json.


#3

I have tried apm publish minor many times before but pushing version tag show fail same as this:

And this is my package.json:

{
  "name": "atom-chrome-ui",
  "theme": "ui",
  "version": "0.0.0",
  "description": "Atom Chrome UI theme",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/torn4dom4n/atom-chrome-ui.git"
  },
  "homepage": "https://github.com/torn4dom4n/atom-chrome-ui",
  "licenses": [
    {
      "type": "MIT",
      "url": "https://github.com/torn4dom4n/atom-chrome-ui/LICENSE.md"
    }
  ],
  "bugs": {
    "url": "https://github.com/torn4dom4n/atom-chrome-ui/issues"
  },
  "readmeFilename": "README.md",
  "keywords": [
    "atom-chrome-ui"
  ],
  "main": "./lib/main",
  "engines": {
    "atom": ">=1.0.0"
  },
  "configSchema": {
    "fontSize": {
      "title": "Font Size",
      "description": "Change the UI font size. Needs to be between 12 and 24. In Auto mode, the Font Size will automatically change based on the window size.",
      "type": [
        "integer",
        "string"
      ],
      "minimum": 12,
      "maximum": 24,
      "default": "Auto"
    }
  },
  "dependencies": {},
  "devDependencies": {
    "coffeelint": "^1.15.7"
  }
}

This is link to package in atom.io


#4

Is your Git remote for the GitHub repository named origin? Have you run apm login?


#5

Sure! I run apm login and after run apm publish minor but it still show Pushing v0.2.0 tag failed same as this.


#6

Is your Git remote for the GitHub repository named origin?


#7

Yes. This is my repository https://github.com/torn4dom4n/atom-chrome-ui and this is my package.json:

{
  "name": "atom-chrome-ui",
  "theme": "ui",
  "version": "0.4.0",
  "description": "Atom Chrome UI theme",
  "repository": "https://github.com/torn4dom4n/atom-chrome-ui",
  "keywords": [
    "atom-chrome-ui"
  ],
  "main": "./lib/main",
  "engines": {
    "atom": ">=1.0.0 <2.0.0"
  },
  "configSchema": {
    "fontSize": {
      "title": "Font Size",
      "description": "Change the UI font size. Needs to be between 12 and 24. In Auto mode, the Font Size will automatically change based on the window size.",
      "type": [
        "integer",
        "string"
      ],
      "minimum": 12,
      "maximum": 24,
      "default": "Auto"
    }
  },
  "dependencies": {},
  "devDependencies": {
    "coffeelint": "^1.15.7"
  }
}

I publish from ~ .atom/packages/atom-chrome-ui. My package same as reponsitory on Github.


#8

I’m not making myself clear. In Git there is the concept of a “remote”, it is a mapping of a short name to an address of a remote repository, like the GitHub repository where you store your package. If you gave the GitHub remote a short name other than origin, it could cause problems. So what I need to know is: What is the short name of your GitHub remote when you execute the command git remote -v in a terminal window when you are in your project directory?


#9

@leedohm Did this mean?


#10

Yes, thank you. I’ve taken a look at your repository and you have tags numbering all the way up to v1.5.4. apm has a hard time going backwards like you’re trying to do. You should either:

  1. Delete all tags in your repository both locally and remote
  2. Change the version number in your package.json to 1.5.4 and number from there

#11

Thank you very much. I tried and succeeded!