Error in setting up development server

Hi guys
I was trying to setup the development server for layer5. However as soon as I type “make setup” I am getting this error.

I tried the following commands

make setup
make clean

but no success. Can anyone help please?

make site
npm start

Layer5@1.0.0 start /Users/sakshamsingh/Layer5/layer5
npm run develop

Layer5@1.0.0 develop /Users/sakshamsingh/Layer5/layer5
env-cmd -f .env.development gatsby develop

sh: env-cmd: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! Layer5@1.0.0 develop: env-cmd -f .env.development gatsby develop
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the Layer5@1.0.0 develop 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! /Users/sakshamsingh/.npm/_logs/2023-02-24T17_24_20_398Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! Layer5@1.0.0 start: npm run develop
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the Layer5@1.0.0 start 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! /Users/sakshamsingh/.npm/_logs/2023-02-24T17_24_20_418Z-debug.log
make: *** [site] Error 1

@Saksham, you’ll want to confirm that you have gatsbycli / gatsby installed. If you still have trouble, then include your entire terminal session, not just snippets in a future reply.

1 Like

I typed gatsbycli/gatsby in the terminal window and it said “no such file or directory: gatsbycli/gatsby”

I tried uploading the entire terminal session photo but got a message stating "
No space left on device @ fptr_finalize_flush - /var/www/discourse/public/uploads/default/original/1X/78b5113eeda87a1f0cf94fcf5fe5f502cd3c7610.png"

Install gatsby cli, @Saksham

1 Like

Installed Gatsby but getting a different error this time

npm ERR! code E403
npm ERR! 403 403 Forbidden - GET http://registry.npmjs.org/recursive-readdir/-/recursive-readdir-2.2.3.tgz
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy, or
npm ERR! 403 on a server you do not have access to.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/sakshamsingh/.npm/_logs/2023-02-26T15_54_50_490Z-debug-0.log
make: *** [setup] Error 1

Hey I fixed this error, figured out it was some npm login thing. However after successfully executing make setup

I ran make site and got this error:

make site
npm start

Layer5@1.0.0 start
npm run develop

Layer5@1.0.0 develop
env-cmd -f .env.development gatsby develop

/Users/sakshamsingh/Layer5/layer5/node_modules/node-gyp-build-optional-packages/index.js:64
throw new Error('No native build was found for ’ + target + '\n loaded from: ’ + dir + ’ and package: ’ + platformPackage + ‘\n’)
^

Error: No native build was found for platform=darwin arch=arm64 runtime=node abi=108 uv=1 armv=8 libc=glibc node=18.14.2
loaded from: /Users/sakshamsingh/Layer5/layer5/node_modules/lmdb and package: @lmdb/lmdb-darwin-arm64

at Function.load.path (/Users/sakshamsingh/Layer5/layer5/node_modules/node-gyp-build-optional-packages/index.js:64:9)
at Object.load [as default] (/Users/sakshamsingh/Layer5/layer5/node_modules/node-gyp-build-optional-packages/index.js:20:30)
at Object.<anonymous> (/Users/sakshamsingh/Layer5/layer5/node_modules/lmdb/native.js:9:34)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Function.Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object.<anonymous> (/Users/sakshamsingh/Layer5/layer5/node_modules/gatsby/src/utils/cache-lmdb.ts:1:1)

Node.js v18.14.2
make: *** [site] Error 1

1 Like