nodejs / nodejs/gyp-next

Build failure due to spaces in path

Open
#180 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
155
Forks
101
Avg merge
6d 2h
Merged PRs (30d)
4

Description

When installing a native module using node-gyp, commands fail to run if there is a space in the path anywhere of the CWD.

A CWD like /home/abc/My Awesome Repo/project will fail.

This has been discussed here: https://github.com/kelektiv/node.bcrypt.js/issues/961
and here: https://github.com/nodejs/node-gyp/issues/65

And has been found to be an underlying issue with gyp itself

Contributor guide

Open the contributing guide

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 node-gyp installation failure from a working directory such as /home/abc/My Awesome Repo/project, then read the linked node-gyp and node.bcrypt.js discussions for context. Trace the gyp command handling involved in the failure; done means native-module installation commands run successfully when the CWD contains spaces.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, python
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.