Build getting error

Macs-MacBook-Air:my-app mac$ npx run build

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ npm update check failed โ”‚
โ”‚ Try running with sudo or get access โ”‚
โ”‚ to the local update config store via โ”‚
โ”‚ sudo chown -R $USER:$(id -gn $USER) /Users/mac/.config โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
npx: installed 5 in 10.68s
Watching /Users/mac/Desktop/my-app and all sub-directories not excluded by your .gitignore. Will not monitor dotfiles.
Found & ignored ./node_modules ; is listed in .gitignore

Starting: build
internal/modules/cjs/loader.js:611
throw err;
^

Error: Cannot find module โ€˜/Users/mac/Desktop/my-app/buildโ€™
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:609:15)
at Function.Module._load (internal/modules/cjs/loader.js:535:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:797:12)
at executeUserCode (internal/bootstrap/node.js:526:15)
at startMainThreadExecution (internal/bootstrap/node.js:439:3)

===========================================================

Macs-MacBook-Air:~ mac$ cd desktop

Macs-MacBook-Air:desktop mac$ cd behelpme

Macs-MacBook-Air:behelpme mac$ npx frontity build

mode: production

Building es5 bundle

Building module bundle

Building server bundle

Macs-MacBook-Air:behelpme mac$

HI @gmmr.mostakim

Welcome to the community!

Can you explain in more detail what is the issue youโ€™re having and the steps to reproduce it?
The command to generate the build is npx frontity build and it looks is working for you properlyโ€ฆ

Macs-MacBook-Air:behelpme mac$ npx frontity build

mode: production

Building es5 bundle

Building module bundle

Building server bundle

Macs-MacBook-Air:behelpme mac$

after this commend [ npx frontity build ]
mode: production

Building es5 bundle

Building module bundle

Building server bundle
those line showing and noting happened also in my folder noting has build

and if i run npx run build

getting those error

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ npm update check failed โ”‚
โ”‚ Try running with sudo or get access โ”‚
โ”‚ to the local update config store via โ”‚
โ”‚ sudo chown -R $USER:$(id -gn $USER) /Users/mac/.config โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
npx: installed 5 in 10.68s
Watching /Users/mac/Desktop/my-app and all sub-directories not excluded by your .gitignore. Will not monitor dotfiles.
Found & ignored ./node_modules ; is listed in .gitignore

Starting: build
internal/modules/cjs/loader.js:611
throw err;
^

Error: Cannot find module โ€˜/Users/mac/Desktop/my-app/buildโ€™
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:609:15)
at Function.Module._load (internal/modules/cjs/loader.js:535:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:797:12)
at executeUserCode (internal/bootstrap/node.js:526:15)
at startMainThreadExecution (internal/bootstrap/node.js:439:3)

also getting error

Macs-MacBook-Air:my-app mac$ npx frontity build

mode: production

Error: EACCES: permission denied, unlink โ€˜build/static/archive.es5.e973e1079cffc22414ec.jsโ€™

If you need help please visit https://community.frontity.org/.

Macs-MacBook-Air:my-app mac$

mode: production

Building es5 bundle

Building module bundle

Building server bundle

after those line there are no index.html file and noting

Hi @gmmr.mostakim

Can you please provide the info suggested here?

The more info you provide about your issue the better. Providing a repo or code-sandbox with your code is especially helpful to find solutions of technical issues with specific projects

Macs-MacBook-Air:my-app mac$ npx frontity info

System:

  • OS: macOS Mojave 10.14.3

  • CPU: (4) x64 Intelยฎ Coreโ„ข i5-4260U CPU @ 1.40GHz

  • Memory: 125.84 MB / 4.00 GB

  • Shell: 3.2.57 - /bin/bash

Binaries:

  • Node: 14.4.0 - /usr/local/bin/node

  • npm: 6.14.5 - /usr/local/bin/npm

Browsers:

  • Chrome: 83.0.4103.106

  • Edge: Not Found

  • Firefox: 77.0.1

  • Safari: 12.0.3

npmPackages:

  • @frontity/core: ^1.7.0 => 1.7.0

  • @frontity/html2react: ^1.3.3 => 1.3.3

  • @frontity/tiny-router: ^1.2.0 => 1.2.0

  • @frontity/twentytwenty-theme: ./packages/twentytwenty-theme => 1.2.0

  • @frontity/wp-source: ^1.7.1 => 1.7.1

  • frontity: ^1.8.0 => 1.8.0

  • react-router-sitemap: ^1.2.0 => 1.2.0

npmGlobalPackages:

  • npx: 10.2.0

  • frontity: Not Found

System info copied in the clipboard!

You can now paste it in the Frontity Community or GitHub issue.

Macs-MacBook-Air:my-app mac$

Hey @gmmr.mostakim,

Note that npx frontity build generates a build folder in the root directory of your project, and it doesnโ€™t generate HTML files but the JavaScript server and client files.

If you have problems running npx frontity build first try removing that folder before.

After your Frontity project was built, you can execute it with npx frontity serve.

Cheers. :wave: