Skip to content

Generator project fails #140

Closed
Closed
@davisford

Description

@davisford
$uname -a
Darwin machine.local 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64
$node --version
v0.11.12
$npm --version
1.4.6

I get a whole host of compiler errors -- looks like breaking changes with latest V8. Do I need to drop it back to an older node version - if so, can you recommend the latest that is known to work? This was all after running $yo angular-fullstack project-name

Executing npm install [email protected] [email protected]
npm http GET https://registry.npmjs.org/fsevents/0.1.6
npm http GET https://registry.npmjs.org/recursive-readdir/0.0.2
npm http 200 https://registry.npmjs.org/fsevents/0.1.6
npm http GET https://registry.npmjs.org/fsevents/-/fsevents-0.1.6.tgz
npm http 200 https://registry.npmjs.org/recursive-readdir/0.0.2
npm http GET https://registry.npmjs.org/recursive-readdir/-/recursive-readdir-0.0.2.tgz
npm http 200 https://registry.npmjs.org/fsevents/-/fsevents-0.1.6.tgz
npm http 200 https://registry.npmjs.org/recursive-readdir/-/recursive-readdir-0.0.2.tgz
../nodefsevents.cc:31:30: error: expected class name
  class NodeFSEvents : node::ObjectWrap {
                             ^
../nodefsevents.cc:66:51: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
      static v8::Handle<v8::Value> Shutdown(const v8::Arguments& args) {
                                                  ^~~~~~~~~~~~~
                                                  v8::internal::Arguments
/Users/davis/.node-gyp/0.11.12/deps/v8/include/v8.h:141:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../nodefsevents.cc:72:46: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
      static v8::Handle<v8::Value> New(const v8::Arguments& args) {
                                             ^~~~~~~~~~~~~
                                             v8::internal::Arguments
/Users/davis/.node-gyp/0.11.12/deps/v8/include/v8.h:141:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../nodefsevents.cc:34:21: error: calling a private constructor of class 'v8::HandleScope'
        HandleScope scope;
                    ^
/Users/davis/.node-gyp/0.11.12/deps/v8/include/v8.h:768:13: note: declared private here
  V8_INLINE HandleScope() {}
            ^
../nodefsevents.cc:35:20: error: use of undeclared identifier 'NODE_PSYMBOL'
        emit_sym = NODE_PSYMBOL("emit");
                   ^
../nodefsevents.cc:36:22: error: use of undeclared identifier 'NODE_PSYMBOL'
        change_sym = NODE_PSYMBOL("fsevent");
                     ^
../nodefsevents.cc:37:59: error: cannot initialize a parameter of type 'FunctionCallback' (aka 'void (*)(const FunctionCallbackInfo<v8::Value> &)') with an lvalue of type 'v8::Handle<v8::Value> (const v8::internal::Arguments &)': type mismatch at 1st parameter ('const FunctionCallbackInfo<v8::Value> &' vs 'const v8::internal::Arguments &')
        Local<FunctionTemplate> t = FunctionTemplate::New(NodeFSEvents::New);
                                                          ^~~~~~~~~~~~~~~~~
/Users/davis/.node-gyp/0.11.12/deps/v8/include/v8.h:3347:24: note: passing argument to parameter 'callback' here
      FunctionCallback callback = 0,
                       ^
../nodefsevents.cc:38:62: error: 'New' is a private member of 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
        constructor_template = Persistent<FunctionTemplate>::New(t);
                                                             ^
/Users/davis/.node-gyp/0.11.12/deps/v8/include/v8.h:722:23: note: declared private here
  V8_INLINE static T* New(Isolate* isolate, T* that);
                      ^
../nodefsevents.cc:38:67: error: too few arguments to function call, expected 2, have 1
        constructor_template = Persistent<FunctionTemplate>::New(t);
                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
/Users/davis/.node-gyp/0.11.12/deps/v8/include/v8.h:722:3: note: 'New' declared here
  V8_INLINE static T* New(Isolate* isolate, T* that);
  ^
/Users/davis/.node-gyp/0.11.12/deps/v8/include/v8config.h:302:20: note: expanded from macro 'V8_INLINE'
# define V8_INLINE inline __attribute__((always_inline))
                   ^
../nodefsevents.cc:39:29: error: member reference type 'v8::Persistent<v8::FunctionTemplate>' is not a pointer; maybe you meant to use '.'?
        constructor_template->InstanceTemplate()->SetInternalFieldCount(1);
        ~~~~~~~~~~~~~~~~~~~~^~
                            .
../nodefsevents.cc:39:31: error: no member named 'InstanceTemplate' in 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
        constructor_template->InstanceTemplate()->SetInternalFieldCount(1);
        ~~~~~~~~~~~~~~~~~~~~  ^
../nodefsevents.cc:40:29: error: member reference type 'v8::Persistent<v8::FunctionTemplate>' is not a pointer; maybe you meant to use '.'?
        constructor_template->SetClassName(String::NewSymbol("FSEvents"));
        ~~~~~~~~~~~~~~~~~~~~^~
                            .
../nodefsevents.cc:40:31: error: no member named 'SetClassName' in 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
        constructor_template->SetClassName(String::NewSymbol("FSEvents"));
        ~~~~~~~~~~~~~~~~~~~~  ^
../nodefsevents.cc:41:59: error: member reference type 'v8::Persistent<v8::FunctionTemplate>' is not a pointer; maybe you meant to use '.'?
        Local<Function> constructor = constructor_template->GetFunction();
                                      ~~~~~~~~~~~~~~~~~~~~^~
                                                          .
../nodefsevents.cc:41:61: error: no member named 'GetFunction' in 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
        Local<Function> constructor = constructor_template->GetFunction();
                                      ~~~~~~~~~~~~~~~~~~~~  ^
../nodefsevents.cc:67:21: error: calling a private constructor of class 'v8::HandleScope'
        HandleScope scope;
                    ^
/Users/davis/.node-gyp/0.11.12/deps/v8/include/v8.h:768:13: note: declared private here
  V8_INLINE HandleScope() {}
            ^
../nodefsevents.cc:68:38: error: no member named 'ObjectWrap' in namespace 'node'
        NodeFSEvents *native = node::ObjectWrap::Unwrap<NodeFSEvents>(args.This());
                               ~~~~~~^
../nodefsevents.cc:68:57: error: 'NodeFSEvents' does not refer to a value
        NodeFSEvents *native = node::ObjectWrap::Unwrap<NodeFSEvents>(args.This());
                                                        ^
../nodefsevents.cc:31:9: note: declared here
  class NodeFSEvents : node::ObjectWrap {
        ^
../nodefsevents.cc:68:75: error: member access into incomplete type 'const v8::internal::Arguments'
        NodeFSEvents *native = node::ObjectWrap::Unwrap<NodeFSEvents>(args.This());
                                                                          ^
/Users/davis/.node-gyp/0.11.12/deps/v8/include/v8.h:141:7: note: forward declaration of 'v8::internal::Arguments'
class Arguments;
      ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/fswatch/nodefsevents.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/Cellar/nvm/0.2.0/v0.11.12/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:107:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1045:12)
gyp ERR! System Darwin 13.1.0
gyp ERR! command "node" "/usr/local/Cellar/nvm/0.2.0/v0.11.12/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/davis/git/emagine/tps-reports/node_modules/karma/node_modules/chokidar/node_modules/fsevents
gyp ERR! node -v v0.11.12
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok 
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the fsevents package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls fsevents
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/opt/nvm/v0.11.12/bin/npm" "install" "[email protected]" "[email protected]"
npm ERR! cwd /Users/davis/git/emagine/tps-reports/node_modules/karma/node_modules/chokidar
npm ERR! node -v v0.11.12
npm ERR! npm -v 1.4.6
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/davis/git/emagine/tps-reports/node_modules/karma/node_modules/chokidar/npm-debug.log
npm ERR! not ok code 0

> [email protected] install /Users/davis/git/emagine/tps-reports/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/davis/git/emagine/tps-reports/npm-debug.log
npm ERR! not ok code 0
/usr/local/Cellar/nvm/0.2.0/v0.11.12/lib/node_modules/generator-angular-fullstack/node_modules/wiredep/lib/detect-dependencies.js:55
  if (_.isString(componentConfigFile.main)) {
                                    ^
TypeError: Cannot read property 'main' of undefined
    at findMainFiles (/usr/local/Cellar/nvm/0.2.0/v0.11.12/lib/node_modules/generator-angular-fullstack/node_modules/wiredep/lib/detect-dependencies.js:55:37)
    at /usr/local/Cellar/nvm/0.2.0/v0.11.12/lib/node_modules/generator-angular-fullstack/node_modules/wiredep/lib/detect-dependencies.js:101:17
    at forOwn (/usr/local/Cellar/nvm/0.2.0/v0.11.12/lib/node_modules/generator-angular-fullstack/node_modules/wiredep/node_modules/lodash/dist/lodash.js:1301:15)
    at Function.forEach (/usr/local/Cellar/nvm/0.2.0/v0.11.12/lib/node_modules/generator-angular-fullstack/node_modules/wiredep/node_modules/lodash/dist/lodash.js:2595:9)
    at detect (/usr/local/Cellar/nvm/0.2.0/v0.11.12/lib/node_modules/generator-angular-fullstack/node_modules/wiredep/lib/detect-dependencies.js:290:5)
    at module.exports (/usr/local/Cellar/nvm/0.2.0/v0.11.12/lib/node_modules/generator-angular-fullstack/node_modules/wiredep/bin/wiredep:34:40)
    at Generator._injectDependencies (/usr/local/Cellar/nvm/0.2.0/v0.11.12/lib/node_modules/generator-angular-fullstack/app/index.js:468:5)
    at /usr/local/Cellar/nvm/0.2.0/v0.11.12/lib/node_modules/generator-angular-fullstack/node_modules/yeoman-generator/node_modules/async/lib/async.js:232:13
    at /usr/local/Cellar/nvm/0.2.0/v0.11.12/lib/node_modules/generator-angular-fullstack/node_modules/yeoman-generator/node_modules/async/lib/async.js:113:21
    at /usr/local/Cellar/nvm/0.2.0/v0.11.12/lib/node_modules/generator-angular-fullstack/node_modules/yeoman-generator/node_modules/async/lib/async.js:24:16

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions