keystonejs / keystone-classic

Node.js CMS and web app framework
http://v4.keystonejs.com
MIT License
14.64k stars 2.2k forks source link

npm ERR! registry error parsing json? #1068

Closed bardiharborow closed 9 years ago

bardiharborow commented 9 years ago

Keystone hates me... :(

bardiharborow@pc:~/workspace $ yo keystone

Welcome to KeystoneJS.

? What is the name of your project? Test
? Would you like to use Jade, Swig, Nunjucks or Handlebars for templates? [jade | swig | nunjucks | hbs] jade
? Would you like to use LESS or SASS for stylesheets? [less | sass] sass
? Would you like to include a Blog? No
? Would you like to include an Image Gallery? No
? Would you like to include a Contact Form? Yes
? What would you like to call the User model? User
? Enter an email address for the first Admin user: <REDACTED TO STOP SPAM>
? Enter a password for the first Admin user: admin
? Would you like to include gulp or grunt? [gulp | grunt] 
? Would you like to create a new directory for your project? Yes
? ------------------------------------------------
    KeystoneJS integrates with Mandrill (from Mailchimp) for email sending.
    Mandrill accounts are free for up to 12k emails per month.
    Would you like to include Email configuration in your project? Yes
? ------------------------------------------------
    Please enter your Mandrill API Key (optional).
    See http://keystonejs.com/guide/config/#mandrill for more info.

    You can skip this for now (we'll include a test key instead)

    Your Mandrill API Key: 
? ------------------------------------------------
    Finally, would you like to include extra code comments in
    your project? If you're new to Keystone, these may be helpful. Yes
   create package.json
   create .env
   create .jshintrc
   create keystone.js
   create .editorconfig
   create .gitignore
   create Procfile
   create models/User.js
   create models/Enquiry.js
   create routes/index.js
   create routes/middleware.js
   create routes/emails.js
   create routes/views/index.js
   create routes/views/contact.js
   create templates/layouts/default.jade
   create templates/mixins/flash-messages.jade
   create templates/views/errors/404.jade
   create templates/views/errors/500.jade
   create templates/views/index.jade
   create templates/views/contact.jade
   create templates/emails/enquiry-notification.jade
   create updates/0.0.1-admins.js
   create public/fonts/glyphicons-halflings-regular.eot
   create public/fonts/glyphicons-halflings-regular.svg
   create public/fonts/glyphicons-halflings-regular.ttf
   create public/fonts/glyphicons-halflings-regular.woff
   create public/images/logo-email.gif
   create public/images/logo.svg
   create public/js/lib/bootstrap/affix.js
   create public/js/lib/bootstrap/alert.js
   create public/js/lib/bootstrap/bootstrap-3.2.0.js
   create public/js/lib/bootstrap/bootstrap-3.2.0.min.js
   create public/js/lib/bootstrap/button.js
   create public/js/lib/bootstrap/carousel.js
   create public/js/lib/bootstrap/collapse.js
   create public/js/lib/bootstrap/dropdown.js
   create public/js/lib/bootstrap/modal.js
   create public/js/lib/bootstrap/popover.js
   create public/js/lib/bootstrap/scrollspy.js
   create public/js/lib/bootstrap/tab.js
   create public/js/lib/bootstrap/tooltip.js
   create public/js/lib/bootstrap/transition.js
   create public/js/lib/jquery/jquery-1.11.1.js
   create public/js/lib/jquery/jquery-1.11.1.min.js
   create public/js/lib/jquery/jquery-2.1.1.js
   create public/js/lib/jquery/jquery-2.1.1.min.js
   create public/favicon.ico
   create public/styles/bootstrap/_bootstrap-compass.scss
   create public/styles/bootstrap/_bootstrap-mincer.scss
   create public/styles/bootstrap/_bootstrap-sprockets.scss
   create public/styles/bootstrap/_bootstrap.scss
   create public/styles/bootstrap/bootstrap/_alerts.scss
   create public/styles/bootstrap/bootstrap/_badges.scss
   create public/styles/bootstrap/bootstrap/_breadcrumbs.scss
   create public/styles/bootstrap/bootstrap/_button-groups.scss
   create public/styles/bootstrap/bootstrap/_buttons.scss
   create public/styles/bootstrap/bootstrap/_carousel.scss
   create public/styles/bootstrap/bootstrap/_close.scss
   create public/styles/bootstrap/bootstrap/_code.scss
   create public/styles/bootstrap/bootstrap/_component-animations.scss
   create public/styles/bootstrap/bootstrap/_dropdowns.scss
   create public/styles/bootstrap/bootstrap/_forms.scss
   create public/styles/bootstrap/bootstrap/_glyphicons.scss
   create public/styles/bootstrap/bootstrap/_grid.scss
   create public/styles/bootstrap/bootstrap/_input-groups.scss
   create public/styles/bootstrap/bootstrap/_jumbotron.scss
   create public/styles/bootstrap/bootstrap/_labels.scss
   create public/styles/bootstrap/bootstrap/_list-group.scss
   create public/styles/bootstrap/bootstrap/_media.scss
   create public/styles/bootstrap/bootstrap/_mixins.scss
   create public/styles/bootstrap/bootstrap/_modals.scss
   create public/styles/bootstrap/bootstrap/_navbar.scss
   create public/styles/bootstrap/bootstrap/_navs.scss
   create public/styles/bootstrap/bootstrap/_normalize.scss
   create public/styles/bootstrap/bootstrap/_pager.scss
   create public/styles/bootstrap/bootstrap/_pagination.scss
   create public/styles/bootstrap/bootstrap/_panels.scss
   create public/styles/bootstrap/bootstrap/_popovers.scss
   create public/styles/bootstrap/bootstrap/_print.scss
   create public/styles/bootstrap/bootstrap/_progress-bars.scss
   create public/styles/bootstrap/bootstrap/_responsive-embed.scss
   create public/styles/bootstrap/bootstrap/_responsive-utilities.scss
   create public/styles/bootstrap/bootstrap/_scaffolding.scss
   create public/styles/bootstrap/bootstrap/_tables.scss
   create public/styles/bootstrap/bootstrap/_theme.scss
   create public/styles/bootstrap/bootstrap/_thumbnails.scss
   create public/styles/bootstrap/bootstrap/_tooltip.scss
   create public/styles/bootstrap/bootstrap/_type.scss
   create public/styles/bootstrap/bootstrap/_utilities.scss
   create public/styles/bootstrap/bootstrap/_variables.scss
   create public/styles/bootstrap/bootstrap/_wells.scss
   create public/styles/bootstrap/bootstrap/mixins/_alerts.scss
   create public/styles/bootstrap/bootstrap/mixins/_background-variant.scss
   create public/styles/bootstrap/bootstrap/mixins/_border-radius.scss
   create public/styles/bootstrap/bootstrap/mixins/_buttons.scss
   create public/styles/bootstrap/bootstrap/mixins/_center-block.scss
   create public/styles/bootstrap/bootstrap/mixins/_clearfix.scss
   create public/styles/bootstrap/bootstrap/mixins/_forms.scss
   create public/styles/bootstrap/bootstrap/mixins/_gradients.scss
   create public/styles/bootstrap/bootstrap/mixins/_grid-framework.scss
   create public/styles/bootstrap/bootstrap/mixins/_grid.scss
   create public/styles/bootstrap/bootstrap/mixins/_hide-text.scss
   create public/styles/bootstrap/bootstrap/mixins/_image.scss
   create public/styles/bootstrap/bootstrap/mixins/_labels.scss
   create public/styles/bootstrap/bootstrap/mixins/_list-group.scss
   create public/styles/bootstrap/bootstrap/mixins/_nav-divider.scss
   create public/styles/bootstrap/bootstrap/mixins/_nav-vertical-align.scss
   create public/styles/bootstrap/bootstrap/mixins/_opacity.scss
   create public/styles/bootstrap/bootstrap/mixins/_pagination.scss
   create public/styles/bootstrap/bootstrap/mixins/_panels.scss
   create public/styles/bootstrap/bootstrap/mixins/_progress-bar.scss
   create public/styles/bootstrap/bootstrap/mixins/_reset-filter.scss
   create public/styles/bootstrap/bootstrap/mixins/_resize.scss
   create public/styles/bootstrap/bootstrap/mixins/_responsive-visibility.scss
   create public/styles/bootstrap/bootstrap/mixins/_size.scss
   create public/styles/bootstrap/bootstrap/mixins/_tab-focus.scss
   create public/styles/bootstrap/bootstrap/mixins/_table-row.scss
   create public/styles/bootstrap/bootstrap/mixins/_text-emphasis.scss
   create public/styles/bootstrap/bootstrap/mixins/_text-overflow.scss
   create public/styles/bootstrap/bootstrap/mixins/_vendor-prefixes.scss
   create public/styles/site.scss
   create public/styles/site/_layout.scss
   create public/styles/site/_variables.scss
|
npm ERR! registry error parsing json
^Cbardiharborow@pc:~/workspace $ 

This freezes, so I gave up and ^Ced it. Any thoughts?

Update 1: npm install produces:

bardiharborow@pc:~/workspace/test $ npm install
npm ERR! registry error parsing json
npm ERR! registry error parsing json

> node-sass@1.0.3 install /home/ubuntu/workspace/test/node_modules/node-sass
> node build.js

`linux-x64-v8-3.14` exists; testing
|

․․․․․․․․․․․․․․․․․․․/

  27 passing (63ms)

Binary is fine; exiting
npm ERR! fetch failed https://registry.npmjs.org/knox/-/knox-0.9.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/csv/-/csv-0.3.7.tgz
npm ERR! fetch failed https://registry.npmjs.org/knox/-/knox-0.9.2.tgz
npm ERR! registry error parsing json

Update 2: npm install --registry http://registry.npmjs.org/ is a little more happy but still has some npm ERR! registry error parsing json issues.

bardiharborow@pc:~/workspace/phone $ npm install  --registry http://registry.npmjs.org/

> node-sass@1.0.3 install /home/ubuntu/workspace/phone/node_modules/node-sass
> node build.js

`linux-x64-v8-3.14` exists; testing
-

․ ․․․․․․․․․․․․․․․․․․․․․․․․․․\

  27 passing (51ms)

Binary is fine; exiting
npm ERR! registry error parsing json
npm ERR! registry error parsing json
npm ERR! registry error parsing json
-
> kerberos@0.0.7 install /home/ubuntu/workspace/test/node_modules/keystone/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory `/home/ubuntu/workspace/test/node_modules/keystone/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build'
  CXX(target) Release/obj.target/kerberos/lib/kerberos.o
  CXX(target) Release/obj.target/kerberos/lib/worker.o
  CC(target) Release/obj.target/kerberos/lib/kerberosgss.o
  CC(target) Release/obj.target/kerberos/lib/base64.o
  CXX(target) Release/obj.target/kerberos/lib/kerberos_context.o
  SOLINK_MODULE(target) Release/obj.target/kerberos.node
  SOLINK_MODULE(target) Release/obj.target/kerberos.node: Finished
  COPY Release/kerberos.node
make: Leaving directory `/home/ubuntu/workspace/test/node_modules/keystone/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build'

> bson@0.2.18 install /home/ubuntu/workspace/test/node_modules/keystone/node_modules/mongoose/node_modules/mongodb/node_modules/bson
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory `/home/ubuntu/workspace/test/node_modules/keystone/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build'
  CXX(target) Release/obj.target/bson/ext/bson.o
  SOLINK_MODULE(target) Release/obj.target/bson.node
  SOLINK_MODULE(target) Release/obj.target/bson.node: Finished
  COPY Release/bson.node
make: Leaving directory `/home/ubuntu/workspace/test/node_modules/keystone/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build'
dotenv@0.4.0 node_modules/dotenv

underscore@1.7.0 node_modules/underscore

async@0.9.0 node_modules/async

node-sass-middleware@0.4.0 node_modules/node-sass-middleware
└── mkdirp@0.5.0 (minimist@0.0.8)

node-sass@1.0.3 node_modules/node-sass
├── object-assign@1.0.0
├── get-stdin@3.0.2
├── node-watch@0.3.4
├── nan@1.3.0
├── mkdirp@0.5.0 (minimist@0.0.8)
├── shelljs@0.3.0
├── chalk@0.5.1 (escape-string-regexp@1.0.2, ansi-styles@1.1.0, supports-color@0.2.0, has-ansi@0.1.0, strip-ansi@0.3.0)
├── meow@2.1.0 (object-assign@2.0.0, minimist@1.1.0, camelcase-keys@1.0.0, indent-string@1.2.0)
├── mocha@1.21.5 (escape-string-regexp@1.0.2, diff@1.0.8, growl@1.8.1, commander@2.3.0, debug@2.0.0, jade@0.26.3, glob@3.2.3)
└── sinon@1.10.3 (util@0.10.3, formatio@1.0.2)

keystone@0.3.1 node_modules/keystone
├── vkey@1.0.0
├── bytes@1.0.0
├── connect-flash@0.1.1
├── classnames@1.1.3
├── scmp@1.0.0
├── queryfilter@0.0.4
├── bcrypt-nodejs@0.0.3
├── mpromise@0.5.5
├── cookie-parser@1.3.3 (cookie@0.1.2, cookie-signature@1.0.5)
├── marked@0.3.3
├── debug@2.1.1 (ms@0.6.2)
├── semver@4.3.0
├── mandrill-api@1.0.41
├── method-override@2.3.1 (methods@1.1.1, vary@1.0.0, parseurl@1.3.0)
├── pikaday@1.3.1
├── caller-id@0.1.0 (stack-trace@0.0.9)
├── fs-extra@0.16.3 (jsonfile@2.0.0, rimraf@2.2.8, graceful-fs@3.0.5)
├── morgan@1.5.1 (basic-auth@1.0.0, depd@1.0.0, on-finished@2.2.0)
├── express-session@1.10.2 (cookie@0.1.2, utils-merge@1.0.0, cookie-signature@1.0.5, on-headers@1.0.0, parseurl@1.3.0, crc@3.2.1, depd@1.0.0, uid-safe@1.0.3)
├── keystone-utils@0.1.13 (html-stringify@0.0.2, i@0.3.2)
├── serve-favicon@2.2.0 (fresh@0.2.4, ms@0.7.0, parseurl@1.3.0, etag@1.5.1)
├── react-select@0.3.2 (react-input-autosize@0.3.1)
├── embedly@1.0.4 (sprintf@0.1.1, batbelt@0.0.2, hashish@0.0.4)
├── numeral@1.5.3
├── bluebird@2.9.9
├── superagent@0.21.0 (extend@1.2.1, methods@1.0.1, cookiejar@2.0.1, component-emitter@1.1.2, reduce-component@1.0.1, qs@1.2.0, mime@1.2.11, readable-stream@1.0.27-1, form-data@0.1.3, formidable@1.0.14)
├── body-parser@1.11.0 (media-typer@0.3.0, raw-body@1.3.2, qs@2.3.3, on-finished@2.2.0, depd@1.0.0, type-is@1.5.7, iconv-lite@0.4.6)
├── csv@0.3.7
├── compression@1.4.0 (on-headers@1.0.0, vary@1.0.0, compressible@2.0.2, accepts@1.2.4)
├── gulp-streamify@0.0.5 (plexer@0.0.2, readable-stream@1.0.33, gulp-util@2.2.20)
├── range_check@0.0.5 (ipaddr.js@0.1.1)
├── cloudinary@1.1.1 (q@1.1.2, underscore@1.4.4)
├── errorhandler@1.3.3 (escape-html@1.0.1, accepts@1.2.4)
├── express@4.11.2 (utils-merge@1.0.0, methods@1.1.1, cookie@0.1.2, fresh@0.2.4, escape-html@1.0.1, merge-descriptors@0.0.2, cookie-signature@1.0.5, range-parser@1.0.2, vary@1.0.0, parseurl@1.3.0, finalhandler@0.3.3, serve-static@1.8.1, content-disposition@0.5.0, path-to-regexp@0.1.3, media-typer@0.3.0, on-finished@2.2.0, depd@1.0.0, qs@2.3.3, proxy-addr@1.0.6, send@0.11.1, etag@1.5.1, type-is@1.5.7, accepts@1.2.4)
├── moment@2.9.0
├── jquery@2.1.3
├── gulp-uglify@1.1.0 (deepmerge@0.2.7, through2@0.6.3, vinyl-sourcemaps-apply@0.1.4, gulp-util@3.0.3, uglify-js@2.4.16)
├── knox@0.9.2 (stream-counter@1.0.0, mime@1.3.4, debug@1.0.4, once@1.3.1, xml2js@0.4.5)
├── multer@0.1.7 (qs@1.2.2, mkdirp@0.3.5, type-is@1.5.7, busboy@0.2.9)
├── codemirror@4.12.0
├── react@0.12.2 (envify@3.2.0)
├── jade@1.9.2 (character-parser@1.2.1, void-elements@2.0.1, commander@2.6.0, mkdirp@0.5.0, transformers@2.1.0, with@4.0.1, constantinople@3.0.1)
├── mongoose@3.8.23 (regexp-clone@0.0.1, sliced@0.0.5, muri@0.3.1, hooks@0.2.1, mpath@0.1.1, mpromise@0.4.3, ms@0.1.0, mquery@0.8.0, mongodb@1.4.28)
├── browserify@8.1.3 (https-browserify@0.0.0, tty-browserify@0.0.0, builtins@0.0.7, constants-browserify@0.0.1, process@0.10.0, path-browserify@0.0.0, isarray@0.0.1, inherits@2.0.1, os-browserify@0.1.2, string_decoder@0.10.31, commondir@0.0.1, stream-browserify@1.0.0, defined@0.0.0, shell-quote@0.0.1, xtend@3.0.0, domain-browser@1.1.4, shallow-copy@0.0.1, deep-equal@0.2.2, assert@1.3.0, querystring-es3@0.2.1, timers-browserify@1.3.0, punycode@1.2.4, util@0.10.3, events@1.0.2, vm-browserify@0.0.4, console-browserify@1.1.0, url@0.10.2, parents@1.0.1, readable-stream@1.0.33, subarg@1.0.0, deps-sort@1.3.5, http-browserify@1.7.0, resolve@0.7.4, shasum@1.0.1, through2@1.1.1, buffer@3.0.2, concat-stream@1.4.7, glob@4.3.5, labeled-stream-splicer@1.0.2, browser-resolve@1.7.0, JSONStream@0.8.4, duplexer2@0.0.2, browser-pack@3.2.0, crypto-browserify@3.9.12, umd@2.1.0, insert-module-globals@6.2.0, syntax-error@1.1.2, browserify-zlib@0.1.4, module-deps@3.6.4)
├── browserify-shim@3.8.2 (through@2.3.6, resolve@0.6.3, mothership@0.2.0, exposify@0.2.0, rename-function-calls@0.1.1)
├── azure@0.10.4 (azure-mgmt-subscription@0.9.15, azure-gallery@2.0.0-pre.14, azure-mgmt-hdinsight@0.9.13, node-uuid@1.2.0, mime@1.2.11, azure-mgmt-storage@0.9.15, azure-mgmt-authorization@0.9.0-pre.5, azure-mgmt@0.9.15, azure-mgmt-scheduler@0.9.1-pre.15, underscore@1.4.4, azure-mgmt-resource@2.0.0-pre.15, azure-mgmt-sql@0.9.16, azure-mgmt-sb@0.9.15, azure-mgmt-vnet@0.9.16, request@2.27.0, azure-sb@0.9.15, azure-common@0.9.10, azure-mgmt-compute@0.9.15, azure-storage@0.3.3, azure-monitoring@0.9.1-pre.15, azure-mgmt-website@0.9.15, azure-rm-website@0.9.0-pre.9, azure-scheduler@0.9.1-pre.15)
└── less-middleware@1.0.4 (mkdirp@0.3.5, node.extend@1.0.10, less@1.7.5)
JedWatson commented 9 years ago

Unfortunately it looks like npm hates you (not Keystone)

That's an npm issue, usually a transient one when there's a problem connecting to the servers.

In good news your project has been created successfully, it's just the npm install step that's failing. Try deleting your node_modules directory, then run npm install again.

If it doesn't work wait a few minutes, then try again. npm usually comes back online pretty quickly.

bardiharborow commented 9 years ago

Edited OP with a HTTP only try per SO suggestion. NPM Status Page not showing any downtime. Hmmm...

bardiharborow commented 9 years ago

Issue seems to be fixed now. NPM status page still isn't showing downtime though... Looks like I was a little too fast at creating an issue. =) Anyway, I'm going to go and try Keystone, if it's all the reviews say it is, I'm going to be very happy. (insert more ego-grooming content here to make up for annoying you with support requests) =)

JedWatson commented 9 years ago

No problem, those transient issues often don't show up as downtime. Hope Keystone works well for you :)