Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating project error (node-tar) #452

Closed
gazedash opened this issue Jan 5, 2018 · 6 comments
Closed

Creating project error (node-tar) #452

gazedash opened this issue Jan 5, 2018 · 6 comments

Comments

@gazedash
Copy link

gazedash commented Jan 5, 2018

Do you want to request a feature or report a bug?

A bug.

What is the current behavior?

Please use either the version of npm that is bundled with Node.js, or a version of npm (> 5.5.1 or < 5.4.0) or node-tar (> 4.0.1) that is compatible with Node.js 9 and above.
/usr/local/bin/node[28928]: ../src/node_zlib.cc:437:static void node::{anonymous}::ZCtx::Init(const v8::FunctionCallbackInfo<v8::Value>&): Assertion `args.Length() == 7 && "init(windowBits, level, memLevel, strategy, writeResult, writeCallback," " dictionary)"' failed.
 1: node::Abort() [node]
 2: node::Assert(char const* const (*) [4]) [node]
 3: 0x12570ff [node]
 4: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&)) [node]
 5: 0xb7879c [node]
 6: v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*) [node]
 7: 0x28fe6d1042fd
[1]    28928 abort (core dumped)  preact create material preact-materiall

If the current behavior is a bug, please provide the steps to reproduce.

preact create default preact-example

What is the expected behavior?

Project creates without any problem

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information.

  • node version
    v9.2.1
  • npm version
    5.6.0
  • Operating system
Linux 4.4.0-104-generic #127-Ubuntu SMP Mon Dec 11 12:16:42 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Distributor ID: neon
Description:    KDE neon User Edition 5.11
Release:        16.04
Codename:       xenial
@VinSpee
Copy link

VinSpee commented Jan 5, 2018

sounds like an issue with your node installation, are you using nvm to manage versions?

@gazedash
Copy link
Author

gazedash commented Jan 5, 2018

@VinSpee No, I don't use nvm, and I had no issues with other libraries (even the ones that need compiled modules, like node-sass for example).

@nikitavoloboev
Copy link

I have the same issue.

I get this when I try to run the command:

❯ preact create default web-workflows

ℹ INFO Assuming you meant preactjs-templates/default...
⠋ Creating projectWARNING: You are likely using a version of node-tar or npm that is incompatible with this version of Node.js.
Please use either the version of npm that is bundled with Node.js, or a version of npm (> 5.5.1 or < 5.4.0) or node-tar (> 4.0.1) that is compatible with Node.js 9 and above.
/usr/local/bin/node[59315]: ../src/node_zlib.cc:437:static void node::(anonymous namespace)::ZCtx::Init(const FunctionCallbackInfo<v8::Value> &): Assertion `args.Length() == 7 && "init(windowBits, level, memLevel, strategy, writeResult, writeCallback," " dictionary)"' failed.
 1: node::Abort() [/usr/local/bin/node]
 2: node::(anonymous namespace)::DomainEnter(node::Environment*, v8::Local<v8::Object>) [/usr/local/bin/node]
 3: node::(anonymous namespace)::ZCtx::Init(v8::FunctionCallbackInfo<v8::Value> const&) [/usr/local/bin/node]
 4: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&)) [/usr/local/bin/node]
 5: v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(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]
 7: 0x23ec666842fd
zsh: abort      preact create default web-workflows

@developit
Copy link
Member

hmm - this is an issue with Node 9.x and node-tar.

@nikitavoloboev
Copy link

@developit I believe me an OP have the latest versions of node.js. Also I looked into node-tar but you can't install it anywhere. What can we do to fix this?

Thank you.

@reznord
Copy link
Member

reznord commented Feb 14, 2018

@nikitavoloboev node-tar is being used by gittar package for unzipping the .git/.zip file in the node. We can see if there are any alternatives for gittar to unzip in node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants