Kikobeats / uno-urban

Simple and Elegant personal theme for Ghost.
https://kikobeats.github.io/uno-urban
8 stars 0 forks source link

Issues during theme upload #16

Closed abaustin1 closed 7 years ago

abaustin1 commented 7 years ago

When I try to the upload the theme to my fresh install of Ghost, I get the following error.

Uploaded with warnings 

"uno-urban - 3.3.7" uploaded successfully but some warnings were generated... 
package.json file must be valid. 
package.json: Invalid version range for dependency algolia-webcrawler: latest
package.json: Invalid version range for dependency browser-sync: latest
package.json: Invalid version range for dependency coffee-script: latest
package.json: Invalid version range for dependency gulp: latest
package.json: Invalid version range for dependency gulp-add-src: latest
package.json: Invalid version range for dependency gulp-autoprefixer: latest
package.json: Invalid version range for dependency gulp-changed: latest
package.json: Invalid version range for dependency gulp-coffee: latest
package.json: Invalid version range for dependency gulp-concat: latest
package.json: Invalid version range for dependency gulp-cssnano: latest
package.json: Invalid version range for dependency gulp-gh-pages: latest
package.json: Invalid version range for dependency gulp-header: latest
package.json: Invalid version range for dependency gulp-if: latest
package.json: Invalid version range for dependency gulp-sass: latest
package.json: Invalid version range for dependency gulp-strip-css-comments: latest
package.json: Invalid version range for dependency gulp-uglify: latest
package.json: Invalid version range for dependency gulp-util: latest
Kikobeats commented 7 years ago

Interesting, apparently Ghost hosting doesn't resolve latest version of the dependency.

Try this: Open the package.json file and replace devDependencies for this:

"devDependencies": {
    "algolia-webcrawler": "~1.0.2",
    "browser-sync": "~2.18.2",
    "coffee-script": "~1.11.1",
    "gulp": "~3.9.1",
    "gulp-add-src": "~0.2.0",
    "gulp-autoprefixer": "~3.1.1",
    "gulp-changed": "~1.3.2",
    "gulp-coffee": "~2.3.3",
    "gulp-concat": "~2.6.1",
    "gulp-cssnano": "~2.1.2",
    "gulp-gh-pages": "~0.5.4",
    "gulp-header": "~1.8.8",
    "gulp-if": "~2.0.2",
    "gulp-sass": "~2.3.2",
    "gulp-strip-css-comments": "~1.2.0",
    "gulp-uglify": "~2.0.0",
    "gulp-util": "~3.0.7"
  },

If it works fine I can release a new version with this setup.