Git Product home page Git Product logo

shadowsocks-over-websocket's People

Contributors

vincentchanx avatar

Stargazers

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

Watchers

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

shadowsocks-over-websocket's Issues

0

如题

命令行启动

我是小白.命令行启动再解释一下怎么操作.谢谢!

客户端说未接到服务端相应(503)

把package.json 中依赖改为了"bufferutil": "^4.0.1",能够部署,
访问后,服务端无异常,但是客户端报错
an error of server connection occured Error: unexpected server response (503)
at ClientRequest._req.on (F:xxx\node_modules\ws\lib\WebSocket.js:650:26)
at ClientRequest.emit (events.js:198:13)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:556:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:109:17)
at Socket.socketOnData (_http_client.js:442:20)
at Socket.emit (events.js:198:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead (internal/stream_base_commons.js:94:17)

不知何解,求大神解答。

构建失败,nodejs环境问题?

-----> Node.js app detected

-----> Creating runtime environment

   NPM_CONFIG_LOGLEVEL=error
   NODE_ENV=production
   NODE_MODULES_CACHE=true
   NODE_VERBOSE=false

-----> Installing binaries
engines.node (package.json): unspecified
engines.npm (package.json): unspecified (use default)

   Resolving node version 12.x...
   Downloading and installing node 12.15.0...
   Using default npm version: 6.13.4

-----> Installing dependencies
Installing node modules (package.json)

   > [email protected] install /tmp/build_949ae318edeafd672dc35c0c22cd1db6/node_modules/bufferutil
   > prebuild-install || node-gyp rebuild
   
   make: Entering directory '/tmp/build_949ae318edeafd672dc35c0c22cd1db6/node_modules/bufferutil/build'
     CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
   In file included from ../../nan/nan_converters.h:67:0,
                    from ../../nan/nan.h:202,
                    from ../src/bufferutil.cc:7:
   ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase<v8::Boolean>::return_t Nan::imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value>)’:
   ../../nan/nan_converters_43_inl.h:18:51: warning: ‘v8::MaybeLocal<v8::Boolean> v8::Value::ToBoolean(v8::Local<v8::Context>) const’ is deprecated: ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations]
          val->To ## TYPE(isolate->GetCurrentContext())                            \
                                                      ^
   ../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
    X(Boolean)
    ^
   In file included from /app/.cache/node-gyp/12.15.0/include/node/v8-internal.h:14:0,
                    from /app/.cache/node-gyp/12.15.0/include/node/v8.h:25,
                    from /app/.cache/node-gyp/12.15.0/include/node/node.h:63,
                    from ../../nan/nan.h:51,
                    from ../src/bufferutil.cc:7:
   /app/.cache/node-gyp/12.15.0/include/node/v8.h:2568:59: note: declared here
                    V8_WARN_UNUSED_RESULT MaybeLocal<Boolean> ToBoolean(
                                                              ^
   /app/.cache/node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
      declarator __attribute__((deprecated(message)))
      ^~~~~~~~~~
   In file included from ../../nan/nan_converters.h:67:0,
                    from ../../nan/nan.h:202,
                    from ../src/bufferutil.cc:7:
   ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase<bool>::return_t Nan::imp::ToFactory<bool>::convert(v8::Local<v8::Value>)’:
   ../../nan/nan_converters_43_inl.h:37:57: warning: ‘v8::Maybe<bool> v8::Value::BooleanValue(v8::Local<v8::Context>) const’ is deprecated: BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declarations]
      return val->NAME ## Value(isolate->GetCurrentContext());                     \
                                                            ^
   ../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
    X(bool, Boolean)
    ^
   In file included from /app/.cache/node-gyp/12.15.0/include/node/v8-internal.h:14:0,
                    from /app/.cache/node-gyp/12.15.0/include/node/v8.h:25,
                    from /app/.cache/node-gyp/12.15.0/include/node/node.h:63,
                    from ../../nan/nan.h:51,
                    from ../src/bufferutil.cc:7:
   /app/.cache/node-gyp/12.15.0/include/node/v8.h:2606:51: note: declared here
                    V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
                                                      ^
   /app/.cache/node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
      declarator __attribute__((deprecated(message)))
      ^~~~~~~~~~
   In file included from ../../nan/nan_new.h:189:0,
                    from ../../nan/nan.h:203,
                    from ../src/bufferutil.cc:7:
   ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)’:
   ../../nan/nan_implementation_12_inl.h:105:32: error: no matching function for call to ‘v8::Function::New(v8::Isolate*&, void (&)(const v8::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Object>&)’
                              , obj));
                                   ^
   In file included from /app/.cache/node-gyp/12.15.0/include/node/node.h:63:0,
                    from ../../nan/nan.h:51,
                    from ../src/bufferutil.cc:7:
   /app/.cache/node-gyp/12.15.0/include/node/v8.h:4170:31: note: candidate: static v8::MaybeLocal<v8::Function> v8::Function::New(v8::Local<v8::Context>, v8::FunctionCallback, v8::Local<v8::Value>, int, v8::ConstructorBehavior, v8::SideEffectType)
      static MaybeLocal<Function> New(
                                  ^~~
   /app/.cache/node-gyp/12.15.0/include/node/v8.h:4170:31: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’
   In file included from ../../nan/nan_new.h:189:0,
                    from ../../nan/nan.h:203,
                    from ../src/bufferutil.cc:7:
   ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::StringObject>::return_t Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)’:
   ../../nan/nan_implementation_12_inl.h:337:37: error: no matching function for call to ‘v8::StringObject::New(v8::Local<v8::String>&)’
      return v8::StringObject::New(value).As<v8::StringObject>();
                                        ^
   In file included from /app/.cache/node-gyp/12.15.0/include/node/node.h:63:0,
                    from ../../nan/nan.h:51,
                    from ../src/bufferutil.cc:7:
   /app/.cache/node-gyp/12.15.0/include/node/v8.h:5426:23: note: candidate: static v8::Local<v8::Value> v8::StringObject::New(v8::Isolate*, v8::Local<v8::String>)
      static Local<Value> New(Isolate* isolate, Local<String> value);
                          ^~~
   /app/.cache/node-gyp/12.15.0/include/node/v8.h:5426:23: note:   candidate expects 2 arguments, 1 provided
   In file included from ../../nan/nan_new.h:189:0,
                    from ../../nan/nan.h:203,
                    from ../src/bufferutil.cc:7:
   ../../nan/nan_implementation_12_inl.h:337:58: error: expected primary-expression before ‘>’ token
      return v8::StringObject::New(value).As<v8::StringObject>();
                                                             ^
   ../../nan/nan_implementation_12_inl.h:337:60: error: expected primary-expression before ‘)’ token
      return v8::StringObject::New(value).As<v8::StringObject>();
                                                               ^
   In file included from ../src/bufferutil.cc:7:0:
   ../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’:
   ../../nan/nan.h:1034:53: error: no matching function for call to ‘v8::Value::ToString()’
          v8::Local<v8::String> string = from->ToString();
                                                        ^
   In file included from /app/.cache/node-gyp/12.15.0/include/node/node.h:63:0,
                    from ../../nan/nan.h:51,
                    from ../src/bufferutil.cc:7:
   /app/.cache/node-gyp/12.15.0/include/node/v8.h:2572:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
      V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                               ^~~~~~~~
   /app/.cache/node-gyp/12.15.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
   In file included from /app/.cache/node-gyp/12.15.0/include/node/v8-internal.h:14:0,
                    from /app/.cache/node-gyp/12.15.0/include/node/v8.h:25,
                    from /app/.cache/node-gyp/12.15.0/include/node/node.h:63,
                    from ../../nan/nan.h:51,
                    from ../src/bufferutil.cc:7:
   /app/.cache/node-gyp/12.15.0/include/node/v8.h:2588:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                    Local<String> ToString(Isolate* isolate) const);
                                  ^
   /app/.cache/node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
      declarator __attribute__((deprecated(message)))
      ^~~~~~~~~~
   /app/.cache/node-gyp/12.15.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
                    Local<String> ToString(Isolate* isolate) const);
                                  ^
   /app/.cache/node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
      declarator __attribute__((deprecated(message)))
      ^~~~~~~~~~
   In file included from ../src/bufferutil.cc:7:0:
   ../../nan/nan.h:1044:74: error: no matching function for call to ‘v8::String::WriteUtf8(char*&, int, int, const int&)’
            length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
                                                                             ^
   In file included from /app/.cache/node-gyp/12.15.0/include/node/node.h:63:0,
                    from ../../nan/nan.h:51,
                    from ../src/bufferutil.cc:7:
   /app/.cache/node-gyp/12.15.0/include/node/v8.h:2782:7: note: candidate: int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const
      int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
          ^~~~~~~~~
   /app/.cache/node-gyp/12.15.0/include/node/v8.h:2782:7: note:   no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’
   In file included from ../src/bufferutil.cc:7:0:
   ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’:
   ../../nan/nan.h:1818:64: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
        New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
                                                                   ^
   In file included from /app/.cache/node-gyp/12.15.0/include/node/v8-internal.h:14:0,
                    from /app/.cache/node-gyp/12.15.0/include/node/v8.h:25,
                    from /app/.cache/node-gyp/12.15.0/include/node/node.h:63,
                    from ../../nan/nan.h:51,
                    from ../src/bufferutil.cc:7:
   /app/.cache/node-gyp/12.15.0/include/node/v8.h:3403:22: note: declared here
                    bool Set(Local<Value> key, Local<Value> value));
                         ^
   /app/.cache/node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
      declarator __attribute__((deprecated(message)))
      ^~~~~~~~~~
   In file included from ../src/bufferutil.cc:7:0:
   ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’:
   ../../nan/nan.h:1824:42: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
        New(persistentHandle)->Set(key, value);
                                             ^
   In file included from /app/.cache/node-gyp/12.15.0/include/node/v8-internal.h:14:0,
                    from /app/.cache/node-gyp/12.15.0/include/node/v8.h:25,
                    from /app/.cache/node-gyp/12.15.0/include/node/node.h:63,
                    from ../../nan/nan.h:51,
                    from ../src/bufferutil.cc:7:
   /app/.cache/node-gyp/12.15.0/include/node/v8.h:3403:22: note: declared here
                    bool Set(Local<Value> key, Local<Value> value));
                         ^
   /app/.cache/node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
      declarator __attribute__((deprecated(message)))
      ^~~~~~~~~~
   In file included from ../src/bufferutil.cc:7:0:
   ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local<v8::Value>&)’:
   ../../nan/nan.h:1830:44: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
        New(persistentHandle)->Set(index, value);
                                               ^
   In file included from /app/.cache/node-gyp/12.15.0/include/node/v8-internal.h:14:0,
                    from /app/.cache/node-gyp/12.15.0/include/node/v8.h:25,
                    from /app/.cache/node-gyp/12.15.0/include/node/node.h:63,
                    from ../../nan/nan.h:51,
                    from ../src/bufferutil.cc:7:
   /app/.cache/node-gyp/12.15.0/include/node/v8.h:3412:22: note: declared here
                    bool Set(uint32_t index, Local<Value> value));
                         ^
   /app/.cache/node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
      declarator __attribute__((deprecated(message)))
      ^~~~~~~~~~
   In file included from ../src/bufferutil.cc:7:0:
   ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’:
   ../../nan/nan.h:1836:61: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
            New(persistentHandle)->Get(New(key).ToLocalChecked()));
                                                                ^
   In file included from /app/.cache/node-gyp/12.15.0/include/node/v8-internal.h:14:0,
                    from /app/.cache/node-gyp/12.15.0/include/node/v8.h:25,
                    from /app/.cache/node-gyp/12.15.0/include/node/node.h:63,
                    from ../../nan/nan.h:51,
                    from ../src/bufferutil.cc:7:
   /app/.cache/node-gyp/12.15.0/include/node/v8.h:3457:51: note: declared here
      V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
                                                      ^
   /app/.cache/node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
      declarator __attribute__((deprecated(message)))
      ^~~~~~~~~~
   In file included from ../src/bufferutil.cc:7:0:
   ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const v8::Local<v8::String>&) const’:
   ../../nan/nan.h:1842:55: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
        return scope.Escape(New(persistentHandle)->Get(key));
                                                          ^
   In file included from /app/.cache/node-gyp/12.15.0/include/node/v8-internal.h:14:0,
                    from /app/.cache/node-gyp/12.15.0/include/node/v8.h:25,
                    from /app/.cache/node-gyp/12.15.0/include/node/node.h:63,
                    from ../../nan/nan.h:51,
                    from ../src/bufferutil.cc:7:
   /app/.cache/node-gyp/12.15.0/include/node/v8.h:3457:51: note: declared here
      V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
                                                      ^
   /app/.cache/node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
      declarator __attribute__((deprecated(message)))
      ^~~~~~~~~~
   In file included from ../src/bufferutil.cc:7:0:
   ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
   ../../nan/nan.h:1847:57: warning: ‘v8::Local<v8::Value> v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
        return scope.Escape(New(persistentHandle)->Get(index));
                                                            ^
   In file included from /app/.cache/node-gyp/12.15.0/include/node/v8-internal.h:14:0,
                    from /app/.cache/node-gyp/12.15.0/include/node/v8.h:25,
                    from /app/.cache/node-gyp/12.15.0/include/node/node.h:63,
                    from ../../nan/nan.h:51,
                    from ../src/bufferutil.cc:7:
   /app/.cache/node-gyp/12.15.0/include/node/v8.h:3461:51: note: declared here
      V8_DEPRECATED("Use maybe version", Local<Value> Get(uint32_t index));
                                                      ^
   /app/.cache/node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
      declarator __attribute__((deprecated(message)))
      ^~~~~~~~~~
   In file included from /usr/include/c++/7/cassert:44:0,
                    from /app/.cache/node-gyp/12.15.0/include/node/node_object_wrap.h:26,
                    from ../../nan/nan.h:53,
                    from ../src/bufferutil.cc:7:
   ../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
   ../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
        assert(persistent().IsNearDeath());
                            ^
   In file included from ../../nan/nan.h:2657:0,
                    from ../src/bufferutil.cc:7:
   ../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:
   ../../nan/nan_object_wrap.h:67:34: warning: ‘void v8::PersistentBase<T>::MarkIndependent() [with T = v8::Object]’ is deprecated: Weak objects are always considered independent. Use TracedGlobal when trying to use EmbedderHeapTracer. Use a strong handle when trying to keep an object alive. [-Wdeprecated-declarations]
        persistent().MarkIndependent();
                                     ^
   In file included from /app/.cache/node-gyp/12.15.0/include/node/v8-internal.h:14:0,
                    from /app/.cache/node-gyp/12.15.0/include/node/v8.h:25,
                    from /app/.cache/node-gyp/12.15.0/include/node/node.h:63,
                    from ../../nan/nan.h:51,
                    from ../src/bufferutil.cc:7:
   /app/.cache/node-gyp/12.15.0/include/node/v8.h:567:22: note: declared here
          V8_INLINE void MarkIndependent());
                         ^
   /app/.cache/node-gyp/12.15.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
      declarator __attribute__((deprecated(message)))
      ^~~~~~~~~~
   In file included from /usr/include/c++/7/cassert:44:0,
                    from /app/.cache/node-gyp/12.15.0/include/node/node_object_wrap.h:26,
                    from ../../nan/nan.h:53,
                    from ../src/bufferutil.cc:7:
   ../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’:
   ../../nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
        assert(wrap->handle_.IsNearDeath());
                             ^
   ../src/bufferutil.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE mask(Nan::NAN_METHOD_ARGS_TYPE)’:
   ../src/bufferutil.cc:12:64: error: no matching function for call to ‘v8::Value::Int32Value()’
      char* to = node::Buffer::Data(info[2]) + info[3]->Int32Value();
                                                                   ^
   In file included from /app/.cache/node-gyp/12.15.0/include/node/node.h:63:0,
                    from ../../nan/nan.h:51,
                    from ../src/bufferutil.cc:7:
   /app/.cache/node-gyp/12.15.0/include/node/v8.h:2613:40: note: candidate: v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const
      V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
                                           ^~~~~~~~~~
   /app/.cache/node-gyp/12.15.0/include/node/v8.h:2613:40: note:   candidate expects 1 argument, 0 provided
   ../src/bufferutil.cc:13:39: error: no matching function for call to ‘v8::Value::Int32Value()’
      size_t length = info[4]->Int32Value();
                                          ^
   In file included from /app/.cache/node-gyp/12.15.0/include/node/node.h:63:0,
                    from ../../nan/nan.h:51,
                    from ../src/bufferutil.cc:7:
   /app/.cache/node-gyp/12.15.0/include/node/v8.h:2613:40: note: candidate: v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const
      V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
                                           ^~~~~~~~~~
   /app/.cache/node-gyp/12.15.0/include/node/v8.h:2613:40: note:   candidate expects 1 argument, 0 provided
   bufferutil.target.mk:109: recipe for target 'Release/obj.target/bufferutil/src/bufferutil.o' failed
   make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 1
   make: Leaving directory '/tmp/build_949ae318edeafd672dc35c0c22cd1db6/node_modules/bufferutil/build'
   gyp ERR! build error 
   gyp ERR! stack Error: `make` failed with exit code: 2
   gyp ERR! stack     at ChildProcess.onExit (/tmp/build_949ae318edeafd672dc35c0c22cd1db6/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
   gyp ERR! stack     at ChildProcess.emit (events.js:223:5)
   gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
   gyp ERR! System Linux 4.4.0-1057-aws
   gyp ERR! command "/tmp/build_949ae318edeafd672dc35c0c22cd1db6/.heroku/node/bin/node" "/tmp/build_949ae318edeafd672dc35c0c22cd1db6/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
   gyp ERR! cwd /tmp/build_949ae318edeafd672dc35c0c22cd1db6/node_modules/bufferutil
   gyp ERR! node -v v12.15.0
   gyp ERR! node-gyp -v v5.0.5
   gyp ERR! not ok 
   npm ERR! code ELIFECYCLE
   npm ERR! errno 1
   npm ERR! [email protected] install: `prebuild-install || node-gyp rebuild`
   npm ERR! Exit status 1
   npm ERR! 
   npm ERR! Failed at the [email protected] install 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!     /tmp/npmcache.raheP/_logs/2020-02-06T09_24_13_865Z-debug.log

-----> Build failed

   We're sorry this build is failing! You can troubleshoot common issues here:
   https://devcenter.heroku.com/articles/troubleshooting-node-deploys
   
   Some possible problems:
   
   - Node version not specified in package.json
     https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
   
   Love,
   Heroku

! Push rejected, failed to compile Node.js app.
! Push failed

npm command can't parse the json file.

Thank you very much for developing shadowsocks-over-websocket. I really appreciate it. I run the npm install command through proxy.

http_proxy=http://localhost:8123 npm install
npm ERR! registry error parsing json
npm ERR! Linux 4.10.0-28-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.7.2
npm ERR! npm v3.5.2

npm ERR! Unexpected end of input
npm ERR! {"_id":"console-control-strings","_rev":"3-d867ab058aee6bee962ebd838974ef34","name":"console-control-strings","description":"A library of cross-platform tested terminal/console command strings for doing things like color and cursor positioning. This is a subset of both ansi and vt100. All control codes included work on both Windows & Unix-like OSes, except where noted.","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"console-control-strings","version":"1.0.0","description":"A library of cross-platform tested terminal/console command strings for doing things like color and cursor positioning. This is a subset of both ansi and vt100. All control codes included work on both Windows & Unix-like OSes, except where noted.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"standard && tap test/.js"},"repository":{"type":"git","url":"git+https://github.com/iarna/console-control-strings.git"},"keywords":[],"author":{"name":"Rebecca Turner","email":"[email protected]","url":"http://re-becca.org/"},"license":"ISC","files":["LICENSE","index.js"],"devDependencies":{"standard":"^7.1.2","tap":"^5.7.2"},"gitHead":"7c5d72b64e49f56cdbb25d60a13a362526d6d162","bugs":{"url":"https://github.com/iarna/console-control-strings/issues"},"homepage":"https://github.com/iarna/console-control-strings#readme","_id":"[email protected]","_shasum":"4e6aac25444ab157f528a4487d6524a25c506a4f","_from":".","_npmVersion":"3.9.2","_nodeVersion":"4.4.0","_npmUser":{"name":"iarna","email":"[email protected]"},"dist":{"shasum":"4e6aac25444ab157f528a4487d6524a25c506a4f","tarball":"https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.0.0.tgz"},"maintainers":[{"name":"iarna","email":"[email protected]"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/console-control-strings-1.0.0.tgz_1466025343054_0.1228993758559227"}},"1.1.0":{"name":"console-control-strings","version":"1.1.0","description":"A library of cross-platform tested terminal/console command strings for doing things like color and cursor positioning. This is a subset of both ansi and vt100. All control codes included work on both Windows & Unix-like OSes, except where noted.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"standard && tap test/.js"},"repository":{"type":"git","url":"git+https://github.com/iarna/console-control-strings.git"},"keywords":[],"author":{"name":"Rebecca Turner","email":"[email protected]","url":"http://re-becca.org/"},"license":"ISC","files":["LICENSE","index.js"],"devDependencies":{"standard":"^7.1.2","tap":"^5.7.2"},"gitHead":"722439b4998d2964ac3d3f9ec175c008aa9b7b4b","bugs":{"url":"https://github.com/iarna/console-control-strings/issues"},"homepage":"https://github.com/iarna/console-control-strings#readme","_id":"[email protected]","_shasum":"3d7cf4464db6446ea644bf4b39507f9851008e8e","_from":".","_npmVersion":"3.9.2","_nodeVersion":"4.4.0","_npmUser":{"name":"iarna","email":"[email protected]"},"dist":{"shasum":"3d7cf4464db6446ea644bf4b39507f9851008e8e","tarball":"https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz"},"maintainers":[{"name":"iarna","email":"[email protected]"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/console-control-strings-1.1.0.tgz_1466033396831_0.9470485949423164"}}},"readme":"# Console Control Strings\n\nA library of cross-platform tested terminal/console command strings for\ndoing things like color and cursor positioning. This is a subset of both\nansi and vt100. All control codes included work on both Windows & Unix-like\nOSes, except where noted.\n\n## Usage\n\njs\nvar consoleControl = require('console-control-strings')\n\nconsole.log(consoleControl.color('blue','bgRed', 'bold') + 'hi there' + consoleControl.color('reset'))\nprocess.stdout.write(consoleControl.goto(75, 10))\n\n\n## Why Another?\n\nThere are tons of libraries similar to this one. I wanted one that was:\n\n1. Very clear about compatibility goals.\n2. Could emit, for instance, a start color code without an end one.\n3. Returned strings w/o writing to streams.\n4. Was not weighed down with other unrelated baggage.\n\n## Functions\n\n### var code = consoleControl.up(num = 1)\n\nReturns the escape sequence to move num lines up.\n\n### var code = consoleControl.down(num = 1)\n\nReturns the escape sequence to move num lines down.\n\n### var code = consoleControl.forward(num = 1)\n\nReturns the escape sequence to move num lines righ.\n\n### var code = consoleControl.back(num = 1)\n\nReturns the escape sequence to move num lines left.\n\n### var code = consoleControl.nextLine(num = 1)\n\nReturns the escape sequence to move num lines down and to the beginning of\nthe line.\n\n### var code = consoleControl.previousLine(num = 1)\n\nReturns the escape sequence to move num lines up and to the beginning of\nthe line.\n\n### var code = consoleControl.eraseData()\n\nReturns the escape sequence to erase everything from the current cursor\nposition to the bottom right of the screen. This is line based, so it\nerases the remainder of the current line and all following lines.\n\n### var code = consoleControl.eraseLine()\n\nReturns the escape sequence to erase to the end of the current line.\n\n### var code = consoleControl.goto(x, y)\n\nReturns the escape sequence to move the cursor to the designated position. \nNote that the origin is 1, 1 not 0, 0.\n\n### var code = consoleControl.gotoSOL()\n\nReturns the escape sequence to move the cursor to the beginning of the\ncurrent line. (That is, it returns a carriage return, \\r.)\n\n### var code = consoleControl.beep()\n\nReturns the escape sequence to cause the termianl to beep. (That is, it\nreturns unicode character \\x0007, a Control-G.)\n\n### var code = consoleControl.hideCursor()\n\nReturns the escape sequence to hide the cursor.\n\n### var code = consoleControl.showCursor()\n\nReturns the escape sequence to show the cursor.\n\n### var code = consoleControl.color(colors = [])\n\n### var code = consoleControl.color(color1, color2, , colorn)\n\nReturns the escape sequence to set the current terminal display attributes\n(mostly colors). Arguments can either be a list of attributes or an array\nof attributes. The difference between passing in an array or list of colors\nand calling .color separately for each one, is that in the former case a\nsingle escape sequence will be produced where as in the latter each change\nwill have its own distinct escape sequence. Each attribute can be one of:\n\n* Reset:\n * reset – Reset all attributes to the terminal default.\n* Styles:\n * bold – Display text as bold. In some terminals this means using a\n bold font, in others this means changing the color. In some it means\n both.\n * italic – Display text as italic. This is not available in most Windows terminals.\n * underline – Underline text. This is not available in most Windows Terminals.\n * inverse – Invert the foreground and background colors.\n * stopBold – Do not display text as bold.\n * stopItalic – Do not display text as italic.\n * stopUnderline – Do not underline text.\n * stopInverse – Do not invert foreground and background.\n* Colors:\n * white\n * black\n * blue\n * cyan\n * green\n * magenta\n * red\n * yellow\n * grey / brightBlack\n * brightRed\n * brightGreen\n * brightYellow\n * brightBlue\n * brightMagenta\n * brightCyan\n * brightWhite\n* Background Colors:\n * bgWhite\n * bgBlack\n * bgBlue\n * bgCyan\n * bgGreen\n * bgMagenta\n * bgRed\n * bgYellow\n * bgGrey / bgBrightBlack\n * **bgBright
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm-debug.log.txt

I upload the npm debug log file. Thank you so much for your help. I really appreciate it.

connect ECONNREFUSED

请问一下,这个是哪里步骤配置有问题吗?还是现在不能用了?

[2017-10-25 17:22:11.424] [INFO] local - [110]: close event[code = 'reserved for extensions'] of server connection has been triggered
[2017-10-25 17:22:11.425] [INFO] local - [110]: end event of client connection has been triggered
[2017-10-25 17:22:11.425] [INFO] local - [110]: close event[had error = false] of client connection has been triggered
[2017-10-25 17:22:11.523] [ERROR] local - [154]: an error of server connection occured { Error: connect ECONNREFUSED 54.225.133.127:8388
    at Object._errnoException (util.js:1024:11)
    at _exceptionWithHostPort (util.js:1046:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1183:14)
  code: 'ECONNREFUSED',
  errno: 'ECONNREFUSED',
  syscall: 'connect',
  address: '54.225.133.127',
  port: 8388 }

部署失败

第六步

     ! No default language could be detected for this app.

			HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.

			See https://devcenter.heroku.com/articles/buildpacks

     ! Push failed

这个是只能用于Heroku,还是其它的Node服务器也可以?

因为heroku访问的实在是太慢了,我试了另一个node的服务器,弄上去就显示这个

[2018-09-02 22:20:45.695] [ERROR] local - [2]: an error of server connection occured Error: unexpected server response (400)
    at ClientRequest._req.on (/home/happ/projects/now/shadowsocks-over-websocket/node_modules/[email protected]@ws/lib/WebSocket.js:650:26)
    at emitOne (events.js:116:13)
    at ClientRequest.emit (events.js:211:7)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:551:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:115:23)
    at Socket.socketOnData (_http_client.js:440:20)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
[2018-09-02 22:20:45.695] [INFO] local - [2]: close event[code = 'reserved for extensions'] of server connection has been triggered
[2018-09-02 22:20:45.697] [INFO] local - [2]: end event of client connection has been triggered
[2018-09-02 22:20:45.697] [INFO] local - [2]: close event[had error = false] of client connection has been triggered


Upgrade Required

启动后服务器显示Upgrade Required,Client连接没有数据返回

npm install报错

[email protected] install /home/Kuze-Hibiki/shadowsocks-over-websocket/node_modules/bufferutil
prebuild-install || node-gyp rebuild

prebuild-install info begin Prebuild-install version 2.3.0
prebuild-install info looking for local prebuild @ prebuilds/bufferutil-v3.0.3-node-v48-linux-x64.tar.gz
prebuild-install WARN install EACCES: permission denied, access '/root/.npm'
make: Entering directory '/home/Kuze-Hibiki/shadowsocks-over-websocket/node_modules/bufferutil/build'
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
make: g++: Command not found
bufferutil.target.mk:78: recipe for target 'Release/obj.target/bufferutil/src/bufferutil.o' failed
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 127
make: Leaving directory '/home/Kuze-Hibiki/shadowsocks-over-websocket/node_modules/bufferutil/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib64/node_modules/npm6/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
gyp ERR! System Linux 4.4.114-42-default
gyp ERR! command "/usr/bin/node6" "/usr/lib64/node_modules/npm6/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/Kuze-Hibiki/shadowsocks-over-websocket/node_modules/bufferutil
gyp ERR! node -v v6.12.2
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm ERR! Linux 4.4.114-42-default
npm ERR! argv "/usr/bin/node6" "/usr/bin/npm-default" "install"
npm ERR! node v6.12.2
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: prebuild-install || node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'prebuild-install || node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bufferutil package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! prebuild-install || node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs bufferutil
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls bufferutil
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/Kuze-Hibiki/shadowsocks-over-websocket/npm-debug.log
系统:opensuse leap 42.3(linux 4.4.114-42)

chrome 的网页翻译问题

用这个建立代理以后,google可以访问了,但是chrome的网页翻译还是不能用
请问应该怎么解决啊

可否加入对手机支持?

v2rayNG 中 socks 代理 指向手机 termux 环境下的 local.js
出现 only supports connect cmd
注意到 socks 是用tcp 转发的 能否用 udp 转发一下?

请问作者能否配置成v2ray?

因为看到shadowrocket支持vmess协议,它里面支持websocket。看到前面回帖你说手机客户端只要支持websocket就能用。原来的shadowrocket不支持vmess,现在可以了,不知道是不是heroku搭建的有望在手机上用了?如果能用就太好了,多谢作者了

ubuntu17.10无法建立成功建立是因为nodejs不支持么

我用的是ubuntu系统,在之前的16.04上成功使用,但是现在升级到17.10不能开启,显示代码如下
module.js:471
throw err;
^

Error: Cannot find module 'log4js'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/home/mahinsuen/shadowsocks-over-websocket/tcprelay.js:3:16)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
我想是不是因为node.js并没有支持17.10的缘故官网是这么说的
Supported Ubuntu versions:

Ubuntu 14.04 LTS (Trusty Tahr)
Ubuntu 16.04 LTS (Xenial Xerus)

上面的错误代码我看不懂,失败原因只是我的推测,还是想让作者大大能够给看下,谢谢啦

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.