mapbox / mapbox/node-pre-gyp

node-pre-gyp broken on node v8 / windows

Open
#302 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.2k
Forks
271
Avg merge
23h 40m
Merged PRs (30d)
2

Description

When testing node-pre-gyp on appveyor with node v8 (v8.0.0 specifically gets pulled in and npm 5.0.0), things are terribly broken. Not really dug much yet, but looks related to npm install not working:

```
Error: Cannot find module 'nopt'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (C:\projects\node-pre-gyp\lib\node-pre-gyp.js:14:12)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
```

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 AppVeyor Windows setup with Node v8.0.0 and npm 5.0.0, then inspect lib/node-pre-gyp.js at line 14 and the npm install configuration. Done means installation completes and the nopt module resolves when node-pre-gyp runs.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.