cli: does not work with node 10
node[13766]: ../src/node_contextify.cc:631:static void node::contextify::ContextifyScript::New(const FunctionCallbackInfo<v8::Value> &): Assertion `args[1]->IsString()' failed. 1: node::Abort() [/usr/local/bin/node] 2: node::Assert(char const* const (*) [4]) [/usr/local/bin/node] 3: node::contextify::ContextifyScript::New(v8::FunctionCallbackInfo<v8::Value> const&) [/usr/local/bin/node] 4: v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo*) [/usr/local/bin/node] 5: v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<true>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) [/usr/local/bin/node] 6: v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) [/usr/local/bin/node]
Due to reliance on natives package. See nodejs bug reports https://github.com/nodejs/node/issues/20325, https://github.com/nodejs/node/issues/20281, https://github.com/nodejs/node/issues/20285
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (7 by maintainers)
@bcomnes: you should mark the npm package as deprecated then…
This cli is no longer supported, please switch to https://github.com/netlify/netlifyctl
SO proud to say that one of my Junior dev’s found her own solution to this. Just run these commands in sequence in the your project’s directory: rm -fr node_modules rm -fr package-lock.json npm cache clean --force npm install
note: it’s npm cache that’s causing the biggest issues in our situation. Hope this helps
@bcomnes Suggestion: Just make it as simple as the Now CLI or Surge CLI. No need for
netlify deployand all.Just simple command
netlify& it will deploy current directory then ask for site name, etc… in the terminal.Why waste so much time on architecture when your competitors have already solved the same problem? I prefer both NOW & SURGE CLIs but I ❤️ Netlify & CLI can be a huge boon
This one.