apollographql / apollographql/fullstack-tutorial

Cannot find module 'C:\My Data\node-pre-gyp\bin\node-pre-gyp'

Open
#143 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.2k
Forks
808
PR merge metrics
No merged PRs in 30d

Description

I am following the tutorial from the official site. When I run the below command in terminal.

cd start/server && npm install

it throws error

Error: Cannot find module 'C:\My Data\node-pre-gyp\bin\node-pre-gyp'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
at Function.Module._load (internal/modules/cjs/loader.js:862:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Link:
https://www.apollographql.com/docs/tutorial/schema/

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the tutorial's start/server directory and reproduce the failure by running npm install from the issue. Inspect how node-pre-gyp is being resolved on the reported Windows path; done means the tutorial dependencies install without the MODULE_NOT_FOUND error.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.