openlayers / openlayers/create-ol-app

Circular reference in `create-ol-app`

Open
#10 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
26
Forks
5
PR merge metrics
No merged PRs in 30d

Description

I tried following the tutorial, but got stuck at this error:

npm ERR! code 1
npm ERR! path /media/fee/hdd/fee/ol-app/node_modules/esbuild
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! node:internal/errors:490
npm ERR!     ErrorCaptureStackTrace(err);
npm ERR!     ^
npm ERR! 
npm ERR! <ref *1> Error: spawnSync /media/fee/hdd/fee/ol-app/node_modules/esbuild/bin/esbuild EACCES
npm ERR!     at Object.spawnSync (node:internal/child_process:1110:20)
npm ERR!     at spawnSync (node:child_process:871:24)
npm ERR!     at Object.execFileSync (node:child_process:914:15)
npm ERR!     at validateBinaryVersion (/media/fee/hdd/fee/ol-app/node_modules/esbuild/install.js:96:28)
npm ERR!     at /media/fee/hdd/fee/ol-app/node_modules/esbuild/install.js:283:5 {
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'spawnSync /media/fee/hdd/fee/ol-app/node_modules/esbuild/bin/esbuild',
npm ERR!   path: '/media/fee/hdd/fee/ol-app/node_modules/esbuild/bin/esbuild',
npm ERR!   spawnargs: [ '--version' ],
npm ERR!   error: [Circular *1],
npm ERR!   status: null,
npm ERR!   signal: null,
npm ERR!   output: null,
npm ERR!   pid: 0,
npm ERR!   stdout: null,
npm ERR!   stderr: null
npm ERR! }
npm ERR! 
npm ERR! Node.js v18.16.1

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/fee/.npm/_logs/2023-06-23T13_02_13_788Z-debug-0.log

npm install failed

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the tutorial with the reported Node.js version and inspect the npm installation failure in node_modules/esbuild/install.js, especially the EACCES error from bin/esbuild. Done means identifying whether create-ol-app or the documented setup causes the failure and recording a reproducible resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.