backstopmedia / bleeding-edge-sample-app

A sample app for a Bleeding Edge Press book.
Apache License 2.0
679 stars 296 forks source link

npm install failed #54

Open nabedge opened 9 years ago

nabedge commented 9 years ago
$ git clone https://github.com/backstopmedia/bleeding-edge-sample-app.git
Cloning into 'bleeding-edge-sample-app'...
remote: Counting objects: 1334, done.
remote: Total 1334 (delta 0), reused 0 (delta 0), pack-reused 1334
Receiving objects: 100% (1334/1334), 367.27 KiB | 322.00 KiB/s, done.
Resolving deltas: 100% (636/636), done.
Checking connectivity... done.

$ cd bleeding-edge-sample-app/

$ npm install
npm WARN deprecated karma-bro@0.6.2: Renamed karma-browserify as of 1.0
npm ERR! git clone git://github.com/karlmikko/react-router.git Cloning into bare repository '/Users/nabedge/.npm/_git-remotes/git-github-com-karlmikko-react-router-git-51b66de8'...
npm ERR! git clone git://github.com/karlmikko/react-router.git fatal: unable to connect to github.com:
npm ERR! git clone git://github.com/karlmikko/react-router.git github.com[0: 192.30.252.131]: errno=Operation timed out
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! code 128

npm ERR! Command failed: git clone --template=/Users/nabedge/.npm/_git-remotes/_templates --mirror git://github.com/karlmikko/react-router.git /Users/nabedge/.npm/_git-remotes/git-github-com-karlmikko-react-router-git-51b66de8
npm ERR! Cloning into bare repository '/Users/nabedge/.npm/_git-remotes/git-github-com-karlmikko-react-router-git-51b66de8'...
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 192.30.252.131]: errno=Operation timed out
npm ERR! 
npm ERR! 
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <http://github.com/npm/npm/issues>
sarazhang123 commented 9 years ago

The same question I met with: npm WARN deprecated karma-bro@0.6.2: Renamed karma-browserify as of 1.0 npm WARN engine karma-cli@0.0.4: wanted: {"node":"~0.8 || ~0.10"} (current: {"node":"0.12.1","npm":"2.5.1"}) npm WARN deprecated CSSselect@0.4.1: the module is now available as 'css-select' npm WARN deprecated CSSwhat@0.4.7: the module is now available as 'css-what' npm WARN optional dep failed, continuing fsevents@0.2.1 npm ERR! registry error parsing json npm ERR! Linux 3.13.0-48-generic npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" npm ERR! node v0.12.1 npm ERR! npm v2.5.1

npm ERR! shasum check failed for /tmp/npm-16334-9901dd39/registry.npmjs.org/adm-zip/-/adm-zip-0.4.4.tgz npm ERR! Expected: a61ed5ae6905c3aea58b3a657d25033091052736 npm ERR! Actual: 3b6b3748da15a2897304590bc1217ceee0704c55 npm ERR! From: https://registry.npmjs.org/adm-zip/-/adm-zip-0.4.4.tgz npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! http://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request: npm ERR! /home/user/bleeding-edge-sample-app/npm-debug.log

cogitocs commented 9 years ago

The same quesiton i met with: Need to upgrade npm to 2.8.1?

snowlong commented 9 years ago

Just rewrite package.json

"karma-bro": "^0.6.2",

to

 "karma-browserify": "^1.0.0",

Because log message say

npm WARN deprecated karma-bro@0.6.2: Renamed karma-browserify as of 1.0

and failed to build karma-bro .

> fsevents@0.2.1 install /Users/user/path/toinstall/bleeding-edge-sample-app/node_modules/karma-bro/node_modules/watchify/node_modules/chokidar/node_modules/fsevents
> node-gyp rebuild

  CXX(target) Release/obj.target/fse/fsevents.o
In file included from ../fsevents.cc:6:
../node_modules/nan/nan.h:339:13: error: no member named 'New' in 'v8::String'
    return  _NAN_ERROR(v8::Exception::Error, errmsg);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                     ~~~~~~~~~~~~^
../node_modules/nan/nan.h:343:5: error: no member named 'ThrowException' in namespace 'v8'
    _NAN_THROW_ERROR(v8::Exception::Error, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:324:11: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
      ~~~~^
../node_modules/nan/nan.h:343:5: error: no member named 'New' in 'v8::String'
    _NAN_THROW_ERROR(v8::Exception::Error, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:324:26: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
                         ^~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                     ~~~~~~~~~~~~^
../node_modules/nan/nan.h:348:9: error: no type named 'ThrowException' in namespace 'v8'
    v8::ThrowException(error);
    ~~~~^
../node_modules/nan/nan.h:355:65: error: no member named 'New' in 'v8::String'
    v8::Local<v8::Value> err = v8::Exception::Error(v8::String::New(msg));
                                                    ~~~~~~~~~~~~^
../node_modules/nan/nan.h:357:26: error: no member named 'New' in 'v8::String'
    obj->Set(v8::String::New("code"), v8::Int32::New(errorNumber));
             ~~~~~~~~~~~~^
../node_modules/nan/nan.h:357:65: error: too few arguments to function call, expected 2, have 1
    obj->Set(v8::String::New("code"), v8::Int32::New(errorNumber));
                                      ~~~~~~~~~~~~~~            ^
/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:2012:3: note: 'New' declared here
  static Local<Integer> New(Isolate* isolate, int32_t value);
  ^
In file included from ../fsevents.cc:6:
../node_modules/nan/nan.h:369:12: error: no member named 'New' in 'v8::String'
    return _NAN_ERROR(v8::Exception::TypeError, errmsg);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                     ~~~~~~~~~~~~^
../node_modules/nan/nan.h:373:5: error: no member named 'ThrowException' in namespace 'v8'
    _NAN_THROW_ERROR(v8::Exception::TypeError, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:324:11: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
      ~~~~^
../node_modules/nan/nan.h:373:5: error: no member named 'New' in 'v8::String'
    _NAN_THROW_ERROR(v8::Exception::TypeError, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:324:26: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
                         ^~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                     ~~~~~~~~~~~~^
../node_modules/nan/nan.h:377:12: error: no member named 'New' in 'v8::String'
    return _NAN_ERROR(v8::Exception::RangeError, errmsg);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                     ~~~~~~~~~~~~^
../node_modules/nan/nan.h:381:5: error: no member named 'ThrowException' in namespace 'v8'
    _NAN_THROW_ERROR(v8::Exception::RangeError, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:324:11: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
      ~~~~^
../node_modules/nan/nan.h:381:5: error: no member named 'New' in 'v8::String'
    _NAN_THROW_ERROR(v8::Exception::RangeError, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:324:26: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
                         ^~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                     ~~~~~~~~~~~~^
../node_modules/nan/nan.h:727:49: error: too few arguments to function call, single argument 'isolate' was not specified
    v8::Local<v8::Object> obj = v8::Object::New();
                                ~~~~~~~~~~~~~~~ ^
/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:2388:3: note: 'New' declared here
  static Local<Object> New(Isolate* isolate);
  ^
In file included from ../fsevents.cc:6:
../node_modules/nan/nan.h:733:49: error: too few arguments to function call, single argument 'isolate' was not specified
    v8::Local<v8::Object> obj = v8::Object::New();
                                ~~~~~~~~~~~~~~~ ^
/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:2388:3: note: 'New' declared here
  static Local<Object> New(Isolate* isolate);
  ^
In file included from ../fsevents.cc:6:
../node_modules/nan/nan.h:740:12: error: no member named 'Dispose' in 'v8::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'
    handle.Dispose();
    ~~~~~~ ^
../node_modules/nan/nan.h:741:12: error: no member named 'Clear' in 'v8::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'
    handle.Clear();
    ~~~~~~ ^
../node_modules/nan/nan.h:746:39: error: no member named 'NewSymbol' in 'v8::String'; did you mean 'IsSymbol'?
    NanPersistentToLocal(handle)->Set(NanSymbol("callback"), fn);
                                      ^~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:181:38: note: expanded from macro 'NanSymbol'
#define NanSymbol(value) v8::String::NewSymbol(value)
                         ~~~~~~~~~~~~^
/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:1379:8: note: 'IsSymbol' declared here
  bool IsSymbol() const;
       ^
In file included from ../fsevents.cc:6:
../node_modules/nan/nan.h:746:39: error: call to non-static member function without an object argument
    NanPersistentToLocal(handle)->Set(NanSymbol("callback"), fn);
                                      ^~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:181:38: note: expanded from macro 'NanSymbol'
#define NanSymbol(value) v8::String::NewSymbol(value)
                         ~~~~~~~~~~~~^~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/fse/fsevents.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/user/.nodebrew/node/v0.12.7/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 14.4.0
gyp ERR! command "node" "/Users/user/.nodebrew/node/v0.12.7/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/user/path/toinstall/bleeding-edge-sample-app/node_modules/karma-bro/node_modules/watchify/node_modules/chokidar/node_modules/fsevents
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok 
npm WARN prefer global react-tools@0.11.2 should be installed with -g
xiaohanZhang1993 commented 8 years ago

E:\test\bleeding-edge-sample-app-master>npm start

bleeding-edge-sample-app@0.0.1 prestart E:\test\bleeding-edge-sample-app-maste r npm run-script build

bleeding-edge-sample-app@0.0.1 build E:\test\bleeding-edge-sample-app-master browserify -t reactify client/client.js > public/build/bundle.js --debug

'browserify' 不是内部或外部命令,也不是可运行的程序 或批处理文件。

npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\ node_modules\npm\bin\npm-cli.js" "run-script" "build" npm ERR! node v4.5.0 npm ERR! npm v2.15.9 npm ERR! code ELIFECYCLE npm ERR! bleeding-edge-sample-app@0.0.1 build: browserify -t reactify client/cl ient.js > public/build/bundle.js --debug npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the bleeding-edge-sample-app@0.0.1 build script 'browserify - t reactify client/client.js > public/build/bundle.js --debug'. npm ERR! This is most likely a problem with the bleeding-edge-sample-app package , npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! browserify -t reactify client/client.js > public/build/bundle.js -- debug npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs bleeding-edge-sample-app npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm ERR! npm owner ls bleeding-edge-sample-app npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! E:\test\bleeding-edge-sample-app-master\npm-debug.log

npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\ node_modules\npm\bin\npm-cli.js" "start" npm ERR! node v4.5.0 npm ERR! npm v2.15.9 npm ERR! code ELIFECYCLE npm ERR! bleeding-edge-sample-app@0.0.1 prestart: npm run-script build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the bleeding-edge-sample-app@0.0.1 prestart script 'npm run-s cript build'. npm ERR! This is most likely a problem with the bleeding-edge-sample-app package , npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! npm run-script build npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs bleeding-edge-sample-app npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm ERR! npm owner ls bleeding-edge-sample-app npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! E:\test\bleeding-edge-sample-app-master\npm-debug.log