Hello blockstack tutorial error


#1

Hello I am new to coding and don’t know much. I am following the instructions on this tutorial https://blockstack.org/tutorials/hello-blockstack. While following the steps I got stuck at “npm run start” and keep on getting this error:

hello-blockstack@0.0.0 start C:\Users\PC\hello-blockstack
npm run browserify; node server.js

npm ERR! missing script: browserify;

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\PC\AppData\Roaming\npm-cache_logs\2017-11-12T20_12 _10_958Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! hello-blockstack@0.0.0 start: npm run browserify; node server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the hello-blockstack@0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\PC\AppData\Roaming\npm-cache_logs\2017-11-12T20_12_11_022Z-debug.log

Any help on what might be the error and how to fix it? Thanks


#2

Working on Windows 10

I found a solution to this issue on github see below. Thanks.

"Make following change to package.json (replace ; with && in start script command). I also rename the command browserify to build but you do not need to do that.

“scripts”: {
“build”: “browserify requires.js -o public/bundle.js”,
“start”: “npm run build && node server.js”
},"


#3
  • @kncogic - I notice you are also working with windows 10.
    I am wondering if you have the same result after clicking
    ’sign in with blockstack’ and open ProtocolHandler:

    • This application requires Gaia … not yet supported in Windows

    • Additional note: the hello app works when launched from the Blockstack
      browser - I suppose because it is running from https://helloblockstack.com
      from a Linux server which implements Gaia (?)

  • I address this question to anyone - why is Gaia needed for the
    Hello app? Isn’t the sign-in authentication done directly on
    the underlying blockchain and without the need for additional
    central storage?

  • I am trying to bootstrap my dApp writing by using a known working
    example, but both tutorials fail on windows for lack of Gaia - could
    not the hello app be written to avoid the use of Gaia?

  • I will begin to look at blockstack.js and see if I can find some
    point which can be sidestepped to allow the app to work on windows.
    If someone has this working already please post a solution.