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

Build issue #242

Open
AlanMThomason opened this issue Jul 8, 2021 · 1 comment
Open

Build issue #242

AlanMThomason opened this issue Jul 8, 2021 · 1 comment

Comments

@AlanMThomason
Copy link

First off, thanks to everyone who brought this project to the public. It is really amazing. I am trying to set this up for a classroom, and I think this is great path. I have added some blocks to allow adjusting servo speed and set up and read a serial stream on an arbitrary channel. I am running it using

python start.py (where my default python is 3.7.9)

I can successfully build the step ...\blockly>c:\python27\python build.py

But when I try to build the package, I see an error...

C:\SVN_working\ardublockly_at.git\trunk\package\electron>npm run release

@ release C:\SVN_working\ardublockly_at.git\trunk\package\electron
gulp release --env=production

fs.js:45
} = primordials;
^

ReferenceError: primordials is not defined
at fs.js:45:5
at req_ (C:\SVN_working\ardublockly_at.git\trunk\package\electron\node_modules\natives\index.js:143:24)
at Object.req [as require] (C:\SVN_working\ardublockly_at.git\trunk\package\electron\node_modules\natives\index.js:55:10)
at Object. (C:\SVN_working\ardublockly_at.git\trunk\package\electron\node_modules\vinyl-fs\node_modules\graceful-fs\fs.js:1:37)
at Module._compile (internal/modules/cjs/loader.js:1068:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module._load (internal/modules/cjs/loader.js:774:14)
at Module.require (internal/modules/cjs/loader.js:957:19)
at require (internal/modules/cjs/helpers.js:88:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ release: gulp release --env=production
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ release script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\alanm\AppData\Roaming\npm-cache_logs\2021-07-07T23_55_49_422Z-debug.log

My npm version is
C:\SVN_working\ardublockly_at.git\trunk\ardublockly>npm --v
6.14.13

Can anyone see what I am doing wrong (or is there something other information needed). Thanks in advance.

@MrKumakun
Copy link

The gulp version included in recent Node is version 4, so gulp 3.x and graceful-fs 3.x has occurred.

npm ls graceful-fs

│
├─┬ [email protected]
│ └─┬ [email protected]
│   ├─┬ [email protected]
│   │ └─┬ [email protected]
│   │   └─┬ [email protected]
│   │     └─┬ [email protected]
│   │       └── [email protected]
│   └── [email protected]

Open "package-lock.json" generated by npm install in a text editor, rewrite the version of "graceful-fs" in the "dependencies" section.

"graceful-fs": "^3.0.0", to "graceful-fs": "^4.1.2",

Run npm install again and then npm run release.


I am sorry if it is rude or inappropriate to you, since I use the online translation site.

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