Bla*_*ere 6 ruby-on-rails yarnpkg
我有一个 Ruby on Rails 项目,正在将其部署在新设置的服务器上。
\n我运行命令rails s -b 0.0.0.0,它说:
========================================\n Your Yarn packages are out of date!\n Please run `yarn install --check-files` to update.\n========================================\nRun Code Online (Sandbox Code Playgroud)\n所以我运行它告诉我运行的命令,最终它失败并出现一些我不太理解的错误:
\n g++ '-DNODE_GYP_MODULE_NAME=binding' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DBUILDING_NODE_EXTENSION' -I/home/ubuntu/.node-gyp/16.0.0/include/node -I/home/ubuntu/.node-gyp/16.0.0/src -I/home/ubuntu/.node-gyp/16.0.0/deps/openssl/config -I/home/ubuntu/.node-gyp/16.0.0/deps/openssl/openssl/include -I/home/ubuntu/.node-gyp/16.0.0/deps/uv/include -I/home/ubuntu/.node-gyp/16.0.0/deps/zlib -I/home/ubuntu/.node-gyp/16.0.0/deps/v8/include -I../../nan -I../src/libsass/include -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -std=c++0x -MMD -MF ./Release/.deps/Release/obj.target/binding/src/binding.o.d.raw -c -o Release/obj.target/binding/src/binding.o ../src/binding.cpp\nIn file included from /home/ubuntu/.node-gyp/16.0.0/include/node/v8.h:30,\n from /home/ubuntu/.node-gyp/16.0.0/include/node/node.h:63,\n from ../../nan/nan.h:56,\n from ../src/binding.cpp:1:\n/home/ubuntu/.node-gyp/16.0.0/include/node/v8-internal.h: In function \xe2\x80\x98void v8::internal::PerformCastCheck(T*)\xe2\x80\x99:\n/home/ubuntu/.node-gyp/16.0.0/include/node/v8-internal.h:452:38: error: \xe2\x80\x98remove_cv_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99; did you mean \xe2\x80\x98remove_cv\xe2\x80\x99?\n 452 | !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);\n | ^~~~~~~~~~~\n | remove_cv\n/home/ubuntu/.node-gyp/16.0.0/include/node/v8-internal.h:452:38: error: \xe2\x80\x98remove_cv_t\xe2\x80\x99 is not a member of \xe2\x80\x98std\xe2\x80\x99; did you mean \xe2\x80\x98remove_cv\xe2\x80\x99?\n 452 | !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);\n | ^~~~~~~~~~~\n | remove_cv\n/home/ubuntu/.node-gyp/16.0.0/include/node/v8-internal.h:452:50: error: template argument 2 is invalid\n 452 | !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);\n | ^\n/home/ubuntu/.node-gyp/16.0.0/include/node/v8-internal.h:452:63: error: \xe2\x80\x98::Perform\xe2\x80\x99 has not been declared\n 452 | !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);\n | ^~~~~~~\n../src/binding.cpp: In function \xe2\x80\x98Nan::NAN_METHOD_RETURN_TYPE render(Nan::NAN_METHOD_ARGS_TYPE)\xe2\x80\x99:\n../src/binding.cpp:284:98: warning: cast between incompatible function types from \xe2\x80\x98void (*)(uv_work_t*)\xe2\x80\x99 {aka \xe2\x80\x98void (*)(uv_work_s*)\xe2\x80\x99} to \xe2\x80\x98uv_after_work_cb\xe2\x80\x99 {aka \xe2\x80\x98void (*)(uv_work_s*, int)\xe2\x80\x99} [-Wcast-function-type]\n 284 | int status = uv_queue_work(uv_default_loop(), &ctx_w->request, compile_it, (uv_after_work_cb)MakeCallback);\n | ^~~~~~~~~~~~\n../src/binding.cpp: In function \xe2\x80\x98Nan::NAN_METHOD_RETURN_TYPE render_file(Nan::NAN_METHOD_ARGS_TYPE)\xe2\x80\x99:\n../src/binding.cpp:320:98: warning: cast between incompatible function types from \xe2\x80\x98void (*)(uv_work_t*)\xe2\x80\x99 {aka \xe2\x80\x98void (*)(uv_work_s*)\xe2\x80\x99} to \xe2\x80\x98uv_after_work_cb\xe2\x80\x99 {aka \xe2\x80\x98void (*)(uv_work_s*, int)\xe2\x80\x99} [-Wcast-function-type]\n 320 | int status = uv_queue_work(uv_default_loop(), &ctx_w->request, compile_it, (uv_after_work_cb)MakeCallback);\n | ^~~~~~~~~~~~\nIn file included from ../../nan/nan.h:56,\n from ../src/binding.cpp:1:\n../src/binding.cpp: At global scope:\n/home/ubuntu/.node-gyp/16.0.0/include/node/node.h:806:43: warning: cast between incompatible function types from \xe2\x80\x98void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)\xe2\x80\x99 {aka \xe2\x80\x98void (*)(v8::Local<v8::Object>)\xe2\x80\x99} to \xe2\x80\x98node::addon_register_func\xe2\x80\x99 {aka \xe2\x80\x98void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)\xe2\x80\x99} [-Wcast-function-type]\n 806 | (node::addon_register_func) (regfunc), \\\n | ^\n/home/ubuntu/.node-gyp/16.0.0/include/node/node.h:840:3: note: in expansion of macro \xe2\x80\x98NODE_MODULE_X\xe2\x80\x99\n 840 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)\n | ^~~~~~~~~~~~~\n../src/binding.cpp:358:1: note: in expansion of macro \xe2\x80\x98NODE_MODULE\xe2\x80\x99\n 358 | NODE_MODULE(binding, RegisterModule);\n | ^~~~~~~~~~~\nmake: *** [binding.target.mk:133: Release/obj.target/binding/src/binding.o] Error 1\ngyp ERR! build error \ngyp ERR! stack Error: `make` failed with exit code: 2\ngyp ERR! stack at ChildProcess.onExit (/home/ubuntu/vendsmartsolutions/node_modules/node-gyp/lib/build.js:262:23)\ngyp ERR! stack at ChildProcess.emit (node:events:365:28)\ngyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)\ngyp ERR! System Linux 5.4.0-1038-aws\ngyp ERR! command "/home/ubuntu/.nvm/versions/node/v16.0.0/bin/node" "/home/ubuntu/vendsmartsolutions/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="\ngyp ERR! cwd /home/ubuntu/vendsmartsolutions/node_modules/node-sass\ngyp ERR! node -v v16.0.0\ngyp ERR! node-gyp -v v3.8.0\ngyp ERR! not ok \nmake: Leaving directory '/home/ubuntu/vendsmartsolutions/node_modules/node-sass/build'\nBuild failed with error code: 1\nRun Code Online (Sandbox Code Playgroud)\n我看了好几遍,实在不知道是什么意思。该项目在我的开发虚拟机上运行良好。
\n任何帮助将不胜感激,谢谢。
\n| 归档时间: |
|
| 查看次数: |
4253 次 |
| 最近记录: |