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

npm start fails (gulp issue: Failed to load external module @babel/register) #7

Open
yaaax opened this issue Oct 16, 2019 · 1 comment

Comments

@yaaax
Copy link

yaaax commented Oct 16, 2019

After running npm start

I get :

> gulp server

[17:17:29] Failed to load external module @babel/register
[17:17:29] Requiring external module babel-register
gulp[80834]: ../src/node_contextify.cc:635:static void node::contextify::ContextifyScript::New(const FunctionCallbackInfo<v8::Value> &): Assertion `args[1]->IsString()' failed.
 1: 0x10003cf99 node::Abort() [/usr/local/bin/node]
 2: 0x10003bfbb node::AddEnvironmentCleanupHook(v8::Isolate*, void (*)(void*), void*) [/usr/local/bin/node]
 3: 0x1000674c2 node::contextify::ContextifyScript::New(v8::FunctionCallbackInfo<v8::Value> const&) [/usr/local/bin/node]
 4: 0x100242aaf v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo*) [/usr/local/bin/node]
 5: 0x100241c4b 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: 0x100241667 v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) [/usr/local/bin/node]
 7: 0x92b694dbe3d
 8: 0x92b6948d145
 9: 0x92b69509d9d
10: 0x92b694918d5
11: 0x92b694918d5
Abort trap: 6

Note : I've fixed the issue by downgrading gulp from 3.9.1 to 3.9.0
npm install [email protected]

@valasek
Copy link

valasek commented Nov 20, 2021

I have the same issue. Was following the guide https://forestry.io/blog/up-and-running-with-hugo/#4-customizing-your-theme.

`npm install was ok, but

npm start

> [email protected] start
> gulp server

[19:26:54] Failed to load external module @babel/register
[19:26:54] Requiring external module babel-register
gulp[8363]: ../src/node_contextify.cc:686:static void node::contextify::ContextifyScript::New(const v8::FunctionCallbackInfo<v8::Value>&): Assertion `args[1]->IsString()' failed.
 1: 0xa389b0 node::Abort() [gulp]
 2: 0xa38a2e  [gulp]
 3: 0xa2a8c3 node::contextify::ContextifyScript::New(v8::FunctionCallbackInfo<v8::Value> const&) [gulp]
 4: 0xc248d5  [gulp]
 5: 0xc24edf  [gulp]
 6: 0xc25506 v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) [gulp]
 7: 0x1446459  [gulp]
Aborted

I did not alter downloaded package.json, which already contains gulp is on version "gulp": "^3.9.0",.

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

No branches or pull requests

2 participants