最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - NodeJS - Uncaught ReferenceError: primordials is not defined - Stack Overflow

programmeradmin4浏览0评论

So that's all, I'm developing a program with electron, everything worked good, as if on wheels, until, I do my little npm start, as usual, I test my application a little, and I see that the javascript does not work anymore So, I do a little 'Ctrl + Shift + I' and I see in the console, that none of my modules have been imported, because at the very top, we have a great error: 'Uncaught ReferenceError: primordials is not defined' in 'inspect.js' I searched all over the internet, and the few answers I found, are people who have a problem with gulp and who do not have the right version, except that I do not use gulp so it does not can not e from there

That's all, so if someone has a solution, I'm interested!

  • node -v > v10.15.3
  • npm -v > 5.3.0 (I've tested with 6.9.0 too)

thank you in advance

So that's all, I'm developing a program with electron, everything worked good, as if on wheels, until, I do my little npm start, as usual, I test my application a little, and I see that the javascript does not work anymore So, I do a little 'Ctrl + Shift + I' and I see in the console, that none of my modules have been imported, because at the very top, we have a great error: 'Uncaught ReferenceError: primordials is not defined' in 'inspect.js' I searched all over the internet, and the few answers I found, are people who have a problem with gulp and who do not have the right version, except that I do not use gulp so it does not can not e from there

That's all, so if someone has a solution, I'm interested!

  • node -v > v10.15.3
  • npm -v > 5.3.0 (I've tested with 6.9.0 too)

thank you in advance

Share Improve this question asked May 8, 2019 at 1:18 OpperDevOpperDev 751 gold badge1 silver badge12 bronze badges 4
  • I see you're fairly new to StackOverflow -- wele! Honestly you don't have a lot of technical information in your post, so it's going to be really hard for anyone to help you here. Maybe post some of the code that seems to be throwing that error? – arthurakay Commented May 8, 2019 at 1:45
  • I understand that it can be plicated, if there was code to give I would give it without problem I would have done from the beginning, but the problem is that between the moment I had no error and between the moment I got this error, I did not change anything in the code! The error arrived like that at once! – OpperDev Commented May 8, 2019 at 2:21
  • In only have this error: Uncaught ReferenceError: primordials is not defined at VM19 inspect.js:70 – OpperDev Commented May 8, 2019 at 2:36
  • Ow! I've find where is the problem! The problem pops when I use 'unzip' nodejs module, because it use 'natives' plugin, any solution? – OpperDev Commented May 8, 2019 at 3:31
Add a ment  | 

1 Answer 1

Reset to default -1

I met a similar error today and I just solved the problem. Check this link :

How to Fix ReferenceError: primordials is not defined in node

My error is the same as described in the link. The problem is that the bination of node 12 and gulp 3 does not work. So I downgrade node to v11.15.0. It really works!

You can try it. Hope it can help you!

发布评论

评论列表(0)

  1. 暂无评论