question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error on npm install after cloning repo

See original GitHub issue

i cloned this repo & did npm install (was hoping to try out some of the examples). got this error:

marina@pumpkin:~/dev/regl-gpu-lines$ npm install
npm ERR! code 1
npm ERR! path /home/marina/dev/regl-gpu-lines/node_modules/gl
npm ERR! command failed
npm ERR! command sh -c prebuild-install || node-gyp rebuild
npm ERR! (node:13786) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)
npm ERR! Package xi was not found in the pkg-config search path.
npm ERR! Perhaps you should add the directory containing `xi.pc'
npm ERR! to the PKG_CONFIG_PATH environment variable
npm ERR! No package 'xi' found
npm ERR! gyp: Call to 'pkg-config --libs-only-L --libs-only-other x11 xi xext' returned exit status 1 while in angle/src/angle.gyp. while loading dependencies of binding.gyp while trying to load binding.gyp
npm ERR! gyp ERR! configure error 
npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
npm ERR! gyp ERR! stack     at ChildProcess.onCpExit (/home/marina/dev/regl-gpu-lines/node_modules/node-gyp/lib/configure.js:351:16)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:365:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Linux 5.4.0-90-generic
npm ERR! gyp ERR! command "/usr/local/bin/node" "/home/marina/dev/regl-gpu-lines/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /home/marina/dev/regl-gpu-lines/node_modules/gl
npm ERR! gyp ERR! node -v v16.1.0
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/marina/.npm/_logs/2021-11-16T22_39_07_600Z-debug.log

my node version is 16.1.0 and my npm version is 7.12.1

any idea what might be going on?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mk30commented, Nov 17, 2021

turns out i can’t install gl in a blank project either. very strange.

i removed gl from the package.json and was able to install properly after that.

and running npm start multiple successfully launched the example.

thanks and good luck with the part you’re working on now!

0reactions
rreussercommented, Nov 17, 2021

If it’s alright, I’ll close this issue since it’s not an issue with this project itself, but please feel free to follow up with headless-gl details if you figure it out or with other issues—whether for bugs, features, or just clarification. 🙇

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to perform npm install after cloning a repo from github
Firstly try to remove(delete) package-lock.json file and run npm install again. This file is used to lock the configuration down to child and ......
Read more >
npm install error after cloning repo. · Issue #59 - GitHub
Update: using Yarn worked. After cloning the repo cd to the project directory. Then simply type yarn and press Enter.
Read more >
Can't Read From Remote Git Repository During npm install
Cloning Repositories You may encounter this error when installing npm. npm ERR! git clone ssh://git@github.com/someuser/somerepo.git...
Read more >
I already cloned the repo from git lab and did an npm instal
I already cloned the repo from git lab and did an npm install. But i can't run the npm start because i don't...
Read more >
git-clone - npm
Clone a git repository via git shell command. Installation. Install: $ npm install git-clone. To use the original callback-based API:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found