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

[Install] Error installing using gulp #6818

Open
the-rockkk opened this issue May 28, 2019 · 14 comments
Open

[Install] Error installing using gulp #6818

the-rockkk opened this issue May 28, 2019 · 14 comments

Comments

@the-rockkk
Copy link

I am following the instructions to install:
https://semantic-ui.com/introduction/getting-started.html#install-semantic-ui

When I run npm install semantic-ui --save I get an error:

> semantic-ui@2.4.2 install c:\[sanitized]\node_modules\semantic-ui

fs.js:27
const { Math, Object } = primordials;
                         ^

ReferenceError: primordials is not defined
    at fs.js:27:26
    at req_ (c:\[sanitized]\node_modules\natives\index.js:143:24)
    at Object.req [as require] (c:\[sanitized]\node_modules\natives\index.js:55:10)
    at Object.<anonymous> (c:\[sanitized]\node_modules\vinyl-fs\node_modules\graceful-fs\fs.js:1:37)
    at Module._compile (internal/modules/cjs/loader.js:774:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)
    at Module.load (internal/modules/cjs/loader.js:641:32)
    at Function.Module._load (internal/modules/cjs/loader.js:556:12)
    at Module.require (internal/modules/cjs/loader.js:681:19)
    at require (internal/modules/cjs/helpers.js:16:16)

Versions:

  • Node: v12.3.1
  • Npm: v6.9.0
  • Gulp: 4.0.2
@dmulter
Copy link

dmulter commented May 29, 2019

For me, it's been installed and working fine for a long time. Today I did my periodic yarn upgrade and got this error.

@dmulter
Copy link

dmulter commented Jun 1, 2019

Problem solved by falling back to Node v10. Turns out Node v12 requires Gulp 4, and Semantic-UI is not compatible with Gulp 4 yet. See the closed issue for Gulp 3 is broken on Node 12.

@zakpatterson
Copy link

gulp@3.9.1 in devDependencies and nodejs 10.15.2 works here.

@the-rockkk
Copy link
Author

Downgraded to node 10 and it works.

@flashspys
Copy link

When will semantic support gulp 4?

@lubber-de

This comment was marked as spam.

@thenormalsquid
Copy link

Encountering this error with node version 12.13.0

@Raf-sns
Copy link

Raf-sns commented Dec 7, 2019

Hi, installation freeze console in Windows 10.
npm install -g gulp
npm install semantic-ui --save

  • Choose options ...

Freeze :

`Installing

Installing to semantic/
Copying UI definitions
Copying UI themes
Copying gulp tasks
Adding theme files
Creating gulpfile.js
Creating site theme folder C:\SEMANTIC\semantic\src\site
[06:03:06] Starting 'create theme.config'...
Adjusting @siteFolder to: site/
Creating src/theme.config (LESS config) C:\SEMANTIC\semantic\src\theme.config`

I am interset to use semantic w. gulp but ... it freeze console.

Escape + gulp build :
PS C:\SEMANTIC> cd semantic/ PS C:\SEMANTIC\semantic> gulp build [06:23:48] Using gulpfile C:\SEMANTIC\semantic\gulpfile.js [06:23:48] Starting 'build'... Building Semantic Cannot find semantic.json. Run "gulp install" to set-up Semantic PS C:\SEMANTIC\semantic> gulp install [06:24:12] Using gulpfile C:\SEMANTIC\semantic\gulpfile.js [06:24:12] Task 'install' is not in your gulpfile [06:24:12] Please check the documentation for proper gulpfile formatting PS C:\SEMANTIC\semantic>

Thanks for your responses,
cordially,
raf

@DanteMarshal
Copy link

Any news ?
I've encountered this bug and I don't want to downgrade node

@lubber-de

This comment was marked as spam.

@the-rockkk
Copy link
Author

I moved to Fomantic and it installs without an issue. So far my site is running fine. It is obviously a solvable issue, I would have stayed with Semantic if it were fixed, but downgrading node is not a great option.

@DanteMarshal
Copy link

I moved to Fomantic too and everything works now. Thanks.

@kelvinau
Copy link

kelvinau commented Mar 8, 2020

For anyone who doesn't want to migrate, you can add

  "resolutions": {
    "graceful-fs": "4.2.2"
  },

to package.json if you use yarn.

@JithinAji
Copy link

Found this way to make it work without downgrading node and using npm.

primordials fix

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

10 participants