Comments (4)
Ya I stumbled upon this as well, and basically it's a gyp bug where it's not "relativizing" properly. I added the module_root_dir
variable for this reason. See: https://github.com/rbranson/node-ffi/blob/master/binding.gyp#L18
from node-gyp.
Hmm that helps, but I can see users getting confused as to when do
they need the variable -- for example in the file you quoted, some
places need the variable, some don't. Hard to know when...
Is there a gyp parameter that lets us specify the project root or something?
from node-gyp.
Is there a gyp parameter that lets us specify the project root or something?
Not that I know of.
And I agree, it's not ideal. It's just a workaround to a gyp bug (I have notified them). Though you should be able to just always use the variable, even on include_dirs
. That would take care of the inconsistency.
from node-gyp.
i have the same problem libraries can not,but others can
from node-gyp.
Related Issues (20)
- Explicitly document supported Node & Python versions per major release in README HOT 6
- RFC: Streamline bumping dependent packages on GitHub HOT 1
- better-sqlite3: binding.gyp not found in /root/bots/helper HOT 1
- http GET http://mirrors.sh.ctriptravel.com/nodejs.org/dist/v16.14.0/node-v16.14.0-headers.tar.gz fails HOT 3
- Can't find Visual Studio 2022 Community with v10.0.1 HOT 1
- Windows_NT 10.0.19045 HOT 3
- Error: You must run node-gyp configure first! HOT 1
- gyp ERR! find VS unknown version "undefined" found at "C:\Program Files\Microsoft Visual Studio\2022\Community" HOT 5
- Windows/Visual Studio build process fails on node-gyp generated vcxproj output HOT 5
- Sorry, accidentally pushed branch to repo, was accident
- [DOCS] The latest version of python (3.12) doesn't support node-gyp #7161 HOT 3
- Why did node choose the version of node gyp HOT 2
- Help wanted: Upgrade GitHub Action google-github-actions/release-please-action
- gyp errors on npm install HOT 10
- Cannot update npm's node-gyp and thus gyp ERR! stack TypeError: HOT 4
- Installation issue
- I can't find "my_node_addon" on Windows 10. HOT 1
- Error: Maximum call stack
- node-sass issues after installing Python on macOS HOT 9
- While trying to Add-Type Find-VisualStudio.cs: Add-Type : Cannot add type. Compilation errors occurred HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-gyp.