Skip to content

gyp error when installing #11

@soryy708

Description

@soryy708

When I run npm i --save logiled I get the following error:

C:\Users\USER\Desktop\chk>npm i --save logiled

> logiled@1.2.0 install C:\Users\USER\Desktop\chk\node_modules\logiled
> npx prebuild-install || npx node-gyp --release rebuild || echo Please build binaries manually by running `npm install` within the module directory.

prebuild-install WARN install No prebuilt binaries found (target=14.15.0 runtime=node arch=x64 libc= platform=win32)

C:\Users\USER\Desktop\chk\node_modules\logiled>if not defined npm_config_node_gyp (node "E:\Program Files\NodeJS\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" --release rebuild )  else (node "E:\Program Files\NodeJS\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" --release rebuild )
internal/modules/cjs/loader.js:883
  throw err;
  ^

Error: Cannot find module 'nan'
Require stack:
- C:\Users\USER\Desktop\chk\node_modules\logiled\[eval]
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at [eval]:1:1
    at Script.runInThisContext (vm.js:132:18)
    at Object.runInThisContext (vm.js:309:38)
    at internal/process/execution.js:77:19
    at [eval]-wrapper:6:22
    at evalScript (internal/process/execution.js:76:60) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ 'C:\\Users\\USER\\Desktop\\chk\\node_modules\\logiled\\[eval]' ]
}
gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (E:\Program Files\NodeJS\node_modules\npm\node_modules\node-gyp\lib\configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Windows_NT 10.0.19042
gyp ERR! command "E:\\Program Files\\NodeJS\\node.exe" "E:\\Program Files\\NodeJS\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "--release" "rebuild"
gyp ERR! cwd C:\Users\USER\Desktop\chk\node_modules\logiled
gyp ERR! node -v v14.15.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
Please build binaries manually by running `npm install` within the module directory.
npm WARN chk No description
npm WARN chk No repository field.
npm WARN chk No license field.

+ logiled@1.2.0
updated 1 package and audited 62 packages in 5.581s
found 0 vulnerabilities

NodeJS version: v14.15.0
NPM version: 6.14.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions