Coder Social home page Coder Social logo

backstopmedia / riot-book-example Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 6.0 1.71 MB

This repo contains sample code for the book, "Building Apps with Riot," by Bleeding Edge Press

Home Page: https://bleedingedgepress.com/building-apps-riot/

License: MIT License

JavaScript 86.70% CSS 9.89% HTML 2.62% Dockerfile 0.78%

riot-book-example's People

Contributors

collingreen avatar jimsparkman avatar josephscript avatar jsdelivrbot avatar neetjn avatar troymott avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

riot-book-example's Issues

npm install generates errors

I'mn guessing this is all due to "bit rot..."

npm -v => 6.9.0
node -v . => v12.4.0
Mac OSX 10.14.5 (18F203)

I did git clone https://github.com/backstopmedia/riot-book-example
I followed the instructions inREADME.md file:

npm install

I got lots of warnings and deprecations, and unfortunately a number of C++ errors

In file included from In file included from ../fsevents.cc../fsevents.cc::66:
:
In file included from In file included from ../../nan/nan.h../../nan/nan.h::203203:
:
In file included from In file included from ../../nan/nan_new.h../../nan/nan_new.h::189189:
:
../../nan/nan_implementation_12_inl.h../../nan/nan_implementation_12_inl.h::103103::4242::  errorerror: : nono  viableviable  conversionconversion  fromfrom  'v8::Isolate *''v8::Isolate *'  toto  'Local<v8::Context>''Local<v8::Context>'

  return scope.Escape(v8::Function::New( isolate  return scope.Escape(v8::Function::New( isolate

                                         ^~~~~~~                                         ^~~~~~~



In file included from ../fsevents.ccIn file included from :../fsevents.cc6::
6In file included from :
../../nan/nan.hIn file included from :../../nan/nan.h203::
203In file included from :
../../nan/nan_new.hIn file included from :../../nan/nan_new.h189::
189:
../../nan/nan_implementation_12_inl.h../../nan/nan_implementation_12_inl.h::337337::3737::  errorerror: : tootoo  fewfew  argumentsarguments  toto  functionfunction  call,call,  expectedexpected  2,2,  havehave  11

  return v8::StringObject::New(value).As<v8::StringObject>();  return v8::StringObject::New(value).As<v8::StringObject>();

         ~~~~~~~~~~~~~~~~~~~~~      ^         ~~~~~~~~~~~~~~~~~~~~~      ^




In file included from ../fsevents.cc:6:
In file included from In file included from ../fsevents.cc../../nan/nan.h::6203:
:
In file included from In file included from ../../nan/nan.h../../nan/nan_new.h::203189:
:
In file included from ../../nan/nan_new.h../../nan/nan_implementation_12_inl.h::189337:
:58../../nan/nan_implementation_12_inl.h:: 337:58error::  expectederror : '(' for function-style cast or type construction
expected '(' for function-style cast or type construction
  return v8::StringObject::New(value).As<v8::StringObject>();
  return v8::StringObject::New(value).As<v8::StringObject>();                                         ~~~~~~~~~~~~~~~~^

                                         ~~~~~~~~~~~~~~~~^
../../nan/nan_implementation_12_inl.h:337:60: error: expected expression
../../nan/nan_implementation_12_inl.h:337:60: error: expected expression
  return v8::StringObject::New(value).As<v8::StringObject>();
                                                           ^
  return v8::StringObject::New(value).As<v8::StringObject>();
                                                           ^



In file included from ../fsevents.cc:6:
../../nan/nan.h:In file included from 916../fsevents.cc::446::
 ../../nan/nan.h:error916: :44:no  matching errormember:  function nofor  matchingcall  memberto  function'ToString' for
 call to 'ToString'
      v8::Local<v8::String> string = from->ToString();
                                     ~~~~~~^~~~~~~~
      v8::Local<v8::String> string = from->ToString();
                                     ~~~~~~^~~~~~~~

[AND LOTS MORE...]

33 warnings and 14 errors generated.
33 warnings and 14 errors generated.
make: make: *** [Release/obj.target/fse/fsevents.o] Error 1*** [Release/obj.target/fse/fsevents.o] Error 1


[AND THEN...]
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/cwang/Documents/riot/riot-book-example/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node --module_name=fse --module_path=/Users/cwang/Documents/riot/riot-book-example/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/cwang/Documents/riot/riot-book-example/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:200:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1021:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
node-pre-gyp ERR! System Darwin 18.6.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/cwang/Documents/riot/riot-book-example/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/cwang/Documents/riot/riot-book-example/node_modules/fsevents
node-pre-gyp ERR! node -v v12.4.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok 
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/cwang/Documents/riot/riot-book-example/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node --module_name=fse --module_path=/Users/cwang/Documents/riot/riot-book-example/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64' (1)

[AND MORE ERRORS]
In file included from ../src/binding.cpp:1:
In file included from ../../nan/nan.h:203:
In file included from ../../nan/nan_new.h:189:
../../nan/nan_implementation_12_inl.h:337:37: error: too few arguments to function call, expected 2, have 1
  return v8::StringObject::New(value).As<v8::StringObject>();
         ~~~~~~~~~~~~~~~~~~~~~      ^
/Users/cwang/.node-gyp/12.4.0/include/node/v8.h:5380:3: note: 'New' declared here
  static Local<Value> New(Isolate* isolate, Local<String> value);
  ^
In file included from ../src/binding.cpp:1:
In file included from ../../nan/nan.h:203:
In file included from ../../nan/nan_new.h:189:
../../nan/nan_implementation_12_inl.h:337:58: error: expected '(' for function-style cast or type construction
  return v8::StringObject::New(value).As<v8::StringObject>();
                                         ~~~~~~~~~~~~~~~~^
../../nan/nan_implementation_12_inl.h:337:60: error: expected expression
  return v8::StringObject::New(value).As<v8::StringObject>();
                                                           ^
[AND MORE ERRORS...]

14 warnings and 8 errors generated.
make: *** [Release/obj.target/binding/src/binding.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/cwang/Documents/riot/riot-book-example/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:200:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 18.6.0
gyp ERR! command "/usr/local/bin/node" "/Users/cwang/Documents/riot/riot-book-example/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/cwang/Documents/riot/riot-book-example/node_modules/node-sass
gyp ERR! node -v v12.4.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
Build failed with error code: 1
npm WARN [email protected] requires a peer of eslint@>=1.6.0 <4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node install`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

I haven't looked at the source to see how easy it might be to fix this...

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.