solved-by-flexbox icon indicating copy to clipboard operation
solved-by-flexbox copied to clipboard

dependency 'natives' is locked to a version which crashes with nodejs 10

Open cjsin opened this issue 6 years ago • 2 comments

As per this issue:

  • https://github.com/gulpjs/gulp/issues/2162

The package 'natives' (version 1.1.0 in package-lock.json) needs to be updated to avoid a crash when running 'npm start' (see following backtrace). It's possible this may only affect users with nodejs version 10. (my version is 10.6.0)

Upgrading 'natives' to version 1.1.3 solves the issue.

Workaround for users using nodejs 10:

 npm install [email protected] 

or:

  rm -rf node_modules
  rm -f package-lock.json
  npm install

example of the problem:

$ npm start

> solved-by-flexbox@ start /home/dev/nodejs/solved-by-flexbox
> gulp serve

gulp[30024]: ../src/node_contextify.cc:631:static void node::contextify::ContextifyScript::New(const v8::FunctionCallbackInfo<v8::Value>&): Assertion `args[1]->IsString()' failed.
 1: 0x89c2f0 node::Abort() [gulp]
 2: 0x89c3d5  [gulp]
 3: 0x8cba87 node::contextify::ContextifyScript::New(v8::FunctionCallbackInfo<v8::Value> const&) [gulp]
 4: 0xb1a9e8  [gulp]
 5: 0xb1c952 v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*) [gulp]
 6: 0xf17a15041bd 
Aborted

cjsin avatar Aug 11 '18 04:08 cjsin

Faced with the same problem. Solution from above is worked perfectly.

lexeek avatar Feb 07 '19 13:02 lexeek

Same problem. Installing latest natives worked for me too:

 npm install [email protected]

smlum avatar Mar 19 '19 20:03 smlum