Git Product home page Git Product logo

dcode-editor's People

Contributors

oct1a avatar

Stargazers

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

Watchers

 avatar  avatar

dcode-editor's Issues

cnpm -i 报错

In file included from /root/.node-gyp/16.18.1/include/node/v8.h:30,
from /root/.node-gyp/16.18.1/include/node/node.h:73,
from ../../_nan@2.17.0@nan/nan.h:60,
from ../src/binding.cpp:1:
/root/.node-gyp/16.18.1/include/node/v8-internal.h: In function ‘void v8::internal::PerformCastCheck(T*)’:
/root/.node-gyp/16.18.1/include/node/v8-internal.h:492:38: error: ‘remove_cv_t’ is not a member of ‘std’
!std::is_same<Data, std::remove_cv_t>::value>::Perform(data);
^~~~~~~~~~~
/root/.node-gyp/16.18.1/include/node/v8-internal.h:492:38: note: suggested alternative: ‘remove_cv’
!std::is_same<Data, std::remove_cv_t>::value>::Perform(data);
^~~~~~~~~~~
remove_cv
/root/.node-gyp/16.18.1/include/node/v8-internal.h:492:38: error: ‘remove_cv_t’ is not a member of ‘std’
/root/.node-gyp/16.18.1/include/node/v8-internal.h:492:38: note: suggested alternative: ‘remove_cv’
!std::is_same<Data, std::remove_cv_t>::value>::Perform(data);
^~~~~~~~~~~
remove_cv
/root/.node-gyp/16.18.1/include/node/v8-internal.h:492:50: error: template argument 2 is invalid
!std::is_same<Data, std::remove_cv_t>::value>::Perform(data);
^
/root/.node-gyp/16.18.1/include/node/v8-internal.h:492:63: error: ‘::Perform’ has not been declared
!std::is_same<Data, std::remove_cv_t>::value>::Perform(data);
^~~~~~~
/root/.node-gyp/16.18.1/include/node/v8-internal.h:492:63: note: suggested alternative: ‘herror’
!std::is_same<Data, std::remove_cv_t>::value>::Perform(data);
^~~~~~~
herror
../src/binding.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE render(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/binding.cpp:284:98: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
int status = uv_queue_work(uv_default_loop(), &ctx_w->request, compile_it, (uv_after_work_cb)MakeCallback);
^~~~~~~~~~~~
../src/binding.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE render_file(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/binding.cpp:320:98: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
int status = uv_queue_work(uv_default_loop(), &ctx_w->request, compile_it, (uv_after_work_cb)MakeCallback);
^~~~~~~~~~~~
In file included from ../../_nan@2.17.0@nan/nan.h:60,
from ../src/binding.cpp:1:
../src/binding.cpp: At global scope:
/root/.node-gyp/16.18.1/include/node/node.h:887:43: warning: cast between incompatible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
(node::addon_register_func) (regfunc),
^
/root/.node-gyp/16.18.1/include/node/node.h:921:3: note: in expansion of macro ‘NODE_MODULE_X’
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
^~~~~~~~~~~~~
../src/binding.cpp:358:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(binding, RegisterModule);
^~~~~~~~~~~
make: *** [binding.target.mk:133: Release/obj.target/binding/src/binding.o] Error 1
make: Leaving directory '/home/dcode/Dcode-Editor/node_modules/_node-sass@4.14.1@node-sass/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/dcode/Dcode-Editor/node_modules/_node-gyp@3.8.0@node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (node:events:513:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
gyp ERR! System Linux 4.19.0-18-amd64
gyp ERR! command "/usr/bin/node" "/home/dcode/Dcode-Editor/node_modules/_node-gyp@3.8.0@node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/dcode/Dcode-Editor/node_modules/_node-sass@4.14.1@node-sass
gyp ERR! node -v v16.18.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
[npminstall:runscript:error] node-sass@^4.9.0 scripts.postinstall run "node scripts/build.js" error: Error [RunScriptError]: Run "sh -c node scripts/build.js" error, exit code 1
at ChildProcess. (/usr/lib/node_modules/cnpm/node_modules/runscript/index.js:96:21)
at ChildProcess.emit (node:events:513:28)
at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12) {
stdio: [Object],
exitcode: 1
}
✖ Install fail! RunScriptError: post install error, please remove node_modules before retry!
Run "sh -c node scripts/build.js" error, exit code 1
RunScriptError: Run "sh -c node scripts/build.js" error, exit code 1
at ChildProcess. (/usr/lib/node_modules/cnpm/node_modules/runscript/index.js:96:21)
at ChildProcess.emit (node:events:513:28)
at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
npminstall version: 6.6.1
npminstall args: /usr/bin/node /usr/lib/node_modules/cnpm/node_modules/npminstall/bin/install.js --fix-bug-versions --china --userconfig=/root/.cnpmrc --disturl=https://npmmirror.com/mirrors/node --registry=https://registry.npmmirror.com

[bug]上传json无法使用

如题,不知道是我配置问题还是什么问题
上传json后可以从编辑器渲染出来,但是无法保存
server端提示如下log

(node:3590) DeprecationWarning: collection.count is deprecated, and will be removed in a future version. Use Collection.countDocuments or Collection.estimatedDocumentCount instead
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:3590) DeprecationWarning: collection.remove is deprecated. Use deleteOne, deleteMany, or bulkWrite instead.

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.