在Plesk上将Feddrapp RSS安装到nodeJS(Windows)

时间:2018-07-04 10:10:16

标签: node.js npm

我正在尝试在Plesk(windows)上以node.js托管Feedrapp。 Node.js版本:6.14.1

Here是Feedrapp源代码。

当我运行NPM安装命令时,我会得到如下错误和警告的列表:

  

失败   安装应用程序依赖项。

In file included from ../src/parser.cc:2:
../../nan/nan.h:43:3: error: #error This version of node/NAN/v8 requires a C++11 compiler
In file included from /var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/node.h:42,
from ../src/parser.cc:1:
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h:345: error: expected unqualified-id before 'using'
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h: In constructor 'v8::MaybeLocal<T>::MaybeLocal()':
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h:362: error: 'nullptr' was not declared in this scope
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h: In member function 'bool v8::MaybeLocal<T>::IsEmpty() const':
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h:369: error: 'nullptr' was not declared in this scope
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h: In member function 'bool v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) const':
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h:373: error: 'nullptr' was not declared in this scope
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h: In member function 'bool v8::WeakCallbackInfo<T>::IsFirstPass() const':
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h:441: error: 'nullptr' was not declared in this scope
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h: At global scope:
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h:481: error: expected unqualified-id before 'using'
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h: In constructor 'v8::Global<T>::Global()':
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h:820: error: 'nullptr' was not declared in this scope
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h: In constructor 'v8::Global<T>::Global(v8::Global<T>&&)':
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h:845: error: 'nullptr' was not declared in this scope
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h: In member function 'v8::Global<T>& v8::Global<T>::operator=(v8::Global<S>&&)':
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h:857: error: 'nullptr' was not declared in this scope
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h: At global scope:
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h:882: error: expected unqualified-id before 'using'
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h:1119: error: 'nullptr' was not declared in this scope
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h:1125: error: 'nullptr' was not declared in this scope
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h: In member function 'v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const':
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h:3279: error: 'nullptr' was not declared in this scope
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h: At global scope:
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h:4499: error: 'nullptr' was not declared in this scope
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h:4515: error: 'nullptr' was not declared in this scope
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h: In member function 'v8::Local<T> v8::MaybeLocal<T>::ToLocalChecked()':
/var/www/vhosts/mydomain.com/.node-gyp/6.14.1/include/node/v8.h:7544: error: 'nullptr' was not declared in this scope
In file included from ../../nan/nan.h:190,
from ../src/parser.cc:2:
../../nan/nan_maybe_43_inl.h: At global scope:
../../nan/nan_maybe_43_inl.h:13: error: expected unqualified-id before 'using'
../../nan/nan_maybe_43_inl.h:16: error: expected unqualified-id before 'using'
../../nan/nan_maybe_43_inl.h:19: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:24: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:31: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:36: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:41: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:46: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:51: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:59: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:64: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:69: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:76: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:83: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:91: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:98: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:108: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:114: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:118: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:125: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:130: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:135: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:139: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:145: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:150: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:156: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:162: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:168: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:174: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:180: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:186: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:194: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:201: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:205: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:209: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:213: error: expected initializer before '<' token
../../nan/nan_maybe_43_inl.h:217: error: expected initializer before '<' token
../src/parser.cc:868: error: expected '}' at end of input
../../nan/nan_callbacks_12_inl.h:167: warning: 'void Nan::imp::FunctionCallbackWrapper(const v8::FunctionCallbackInfo<v8::Value>&)' defined but not used
../../nan/nan_callbacks_12_inl.h:181: warning: 'void Nan::imp::GetterCallbackWrapper(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&)' defined but not used
../../nan/nan_callbacks_12_inl.h:197: warning: 'void Nan::imp::SetterCallbackWrapper(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&)' defined but not used
../../nan/nan_callbacks_12_inl.h:253: warning: 'void Nan::imp::PropertyGetterCallbackWrapper(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&)' defined but not used
../../nan/nan_callbacks_12_inl.h:270: warning: 'void Nan::imp::PropertySetterCallbackWrapper(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<v8::Value>&)' defined but not used
../../nan/nan_callbacks_12_inl.h:290: warning: 'void Nan::imp::PropertyEnumeratorCallbackWrapper(const v8::PropertyCallbackInfo<v8::Array>&)' defined but not used
../../nan/nan_callbacks_12_inl.h:306: warning: 'void Nan::imp::PropertyDeleterCallbackWrapper(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Boolean>&)' defined but not used
../../nan/nan_callbacks_12_inl.h:323: warning: 'void Nan::imp::PropertyQueryCallbackWrapper(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Integer>&)' defined but not used
../../nan/nan_callbacks_12_inl.h:428: warning: 'void Nan::imp::IndexGetterCallbackWrapper(uint32_t, const v8::PropertyCallbackInfo<v8::Value>&)' defined but not used
../../nan/nan_callbacks_12_inl.h:444: warning: 'void Nan::imp::IndexSetterCallbackWrapper(uint32_t, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<v8::Value>&)' defined but not used
../../nan/nan_callbacks_12_inl.h:464: warning: 'void Nan::imp::IndexEnumeratorCallbackWrapper(const v8::PropertyCallbackInfo<v8::Array>&)' defined but not used
../../nan/nan_callbacks_12_inl.h:480: warning: 'void Nan::imp::IndexDeleterCallbackWrapper(uint32_t, const v8::PropertyCallbackInfo<v8::Boolean>&)' defined but not used
../../nan/nan_callbacks_12_inl.h:496: warning: 'void Nan::imp::IndexQueryCallbackWrapper(uint32_t, const v8::PropertyCallbackInfo<v8::Integer>&)' defined but not used
make: *** [Release/obj.target/parser/src/parser.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/opt/plesk/node/6/lib/node_modules/npm/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 2.6.32-042stab123.3
gyp ERR! command "/opt/plesk/node/6/bin/node" "/opt/plesk/node/6/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/www/vhosts/mydomain.com/rss.mydomain.com/feedrapp-master/node_modules/fast-feed
gyp ERR! node -v v6.14.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm ERR! Linux 2.6.32-042stab123.3
npm ERR! argv "/opt/plesk/node/6/bin/node" "/opt/plesk/node/6/bin/npm" "install"
npm ERR! node v6.14.1
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! fast-feed@1.5.5 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fast-feed@1.5.5 install script '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 fast-feed 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 information on how to open an issue for this project with:
npm ERR! npm bugs fast-feed
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls fast-feed
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/vhosts/mydomain.com/rss.mydomain.com/feedrapp-master/npm-debug.log

有什么办法可以纠正这些错误,并使应用程序正常工作?

0 个答案:

没有答案