Git Product home page Git Product logo

node-minidump's Introduction

Electron Logo

CircleCI Build Status AppVeyor Build Status Electron Discord Invite

πŸ“ Available Translations: πŸ‡¨πŸ‡³ πŸ‡§πŸ‡· πŸ‡ͺπŸ‡Έ πŸ‡―πŸ‡΅ πŸ‡·πŸ‡Ί πŸ‡«πŸ‡· πŸ‡ΊπŸ‡Έ πŸ‡©πŸ‡ͺ. View these docs in other languages on our Crowdin project.

The Electron framework lets you write cross-platform desktop applications using JavaScript, HTML and CSS. It is based on Node.js and Chromium and is used by the Visual Studio Code and many other apps.

Follow @electronjs on Twitter for important announcements.

This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to [email protected].

Installation

To install prebuilt Electron binaries, use npm. The preferred method is to install Electron as a development dependency in your app:

npm install electron --save-dev

For more installation options and troubleshooting tips, see installation. For info on how to manage Electron versions in your apps, see Electron versioning.

Platform support

Each Electron release provides binaries for macOS, Windows, and Linux.

  • macOS (Catalina and up): Electron provides 64-bit Intel and ARM binaries for macOS. Apple Silicon support was added in Electron 11.
  • Windows (Windows 10 and up): Electron provides ia32 (x86), x64 (amd64), and arm64 binaries for Windows. Windows on ARM support was added in Electron 5.0.8. Support for Windows 7, 8 and 8.1 was removed in Electron 23, in line with Chromium's Windows deprecation policy.
  • Linux: The prebuilt binaries of Electron are built on Ubuntu 20.04. They have also been verified to work on:
    • Ubuntu 18.04 and newer
    • Fedora 32 and newer
    • Debian 10 and newer

Quick start & Electron Fiddle

Use Electron Fiddle to build, run, and package small Electron experiments, to see code examples for all of Electron's APIs, and to try out different versions of Electron. It's designed to make the start of your journey with Electron easier.

Alternatively, clone and run the electron/electron-quick-start repository to see a minimal Electron app in action:

git clone https://github.com/electron/electron-quick-start
cd electron-quick-start
npm install
npm start

Resources for learning Electron

Programmatic usage

Most people use Electron from the command line, but if you require electron inside your Node app (not your Electron app) it will return the file path to the binary. Use this to spawn Electron from Node scripts:

const electron = require('electron')
const proc = require('node:child_process')

// will print something similar to /Users/maf/.../Electron
console.log(electron)

// spawn Electron
const child = proc.spawn(electron)

Mirrors

See the Advanced Installation Instructions to learn how to use a custom mirror.

Documentation translations

We crowdsource translations for our documentation via Crowdin. We currently accept translations for Chinese (Simplified), French, German, Japanese, Portuguese, Russian, and Spanish.

Contributing

If you are interested in reporting/fixing issues and contributing directly to the code base, please see CONTRIBUTING.md for more information on what we're looking for and how to get started.

Community

Info on reporting bugs, getting help, finding third-party tools and sample apps, and more can be found on the Community page.

License

MIT

When using Electron logos, make sure to follow OpenJS Foundation Trademark Policy.

node-minidump's People

Contributors

aminya avatar bytemain avatar codebytere avatar dependabot[bot] avatar dsanders11 avatar duncannz avatar electron-roller[bot] avatar jkleinsc avatar kevinsawicki avatar marshallofsound avatar mnquintana avatar nornagon avatar pd4d10 avatar pierrefourgeaud avatar saumilsdk avatar zcbenz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-minidump's Issues

Build failed on os 10.10

npm install --verbose minidump, then the output is as below:

npm info it worked if it ends with ok
npm verb cli [ 'node',
npm verb cli '/usr/local/bin/npm',
npm verb cli 'install',
npm verb cli '--verbose',
npm verb cli 'minidump' ]
npm info using [email protected]
npm info using [email protected]
npm verb node symlink /usr/local/bin/node
npm verb cache add spec minidump
npm verb addNamed minidump@*
npm verb addNameRange registry:https://registry.npm.taobao.org/minidump not in flight; fetching
npm verb request uri https://registry.npm.taobao.org/minidump
npm verb request no auth needed
npm info attempt registry request try #1 at 22:04:01
npm verb request id ed5e09a837b09350
npm verb etag "1410232616000"
npm http request GET https://registry.npm.taobao.org/minidump
npm http 304 https://registry.npm.taobao.org/minidump
npm verb etag https://registry.npm.taobao.org/minidump from cache
npm verb addNamed [email protected]
npm verb afterAdd /Users/light/.npm/minidump/0.8.0/package/package.json not in flight; writing
npm verb afterAdd /Users/light/.npm/minidump/0.8.0/package/package.json written
npm info install [email protected] into /Users/light/Sites/test
npm info installOne [email protected]
npm verb installOne of minidump to /Users/light/Sites/test not in flight; installing
npm verb lock using /Users/light/.npm/_locks/minidump-ef6db2885923709a.lock for /Users/light/Sites/test/node_modules/minidump
npm verb unbuild node_modules/minidump
npm verb gentlyRm vacuuming /Users/light/Sites/test/node_modules/minidump
npm verb tar unpack /Users/light/.npm/minidump/0.8.0/package.tgz
npm verb tar unpacking to /Users/light/Sites/test/node_modules/minidump
npm verb gentlyRm vacuuming /Users/light/Sites/test/node_modules/minidump
npm info preinstall [email protected]
npm verb about to build /Users/light/Sites/test/node_modules/minidump
npm info build /Users/light/Sites/test/node_modules/minidump
npm verb linkStuff [ false, false, false, '/Users/light/Sites/test/node_modules' ]
npm info linkStuff [email protected]
npm verb linkBins [email protected]
npm verb link bins [ { minidump_stackwalk: 'bin/minidump_stackwalk' },
npm verb link bins '/Users/light/Sites/test/node_modules/.bin',
npm verb link bins false ]
npm verb linkMans [email protected]
npm verb rebuildBundles [email protected]
npm verb gentlyRm vacuuming /Users/light/Sites/test/node_modules/.bin/minidump_stackwalk
npm info install [email protected]

[email protected] install /Users/light/Sites/test/node_modules/minidump
node-gyp rebuild

gyp info it worked if it ends with ok
gyp verb cli [ 'node',
gyp verb cli '/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli 'rebuild' ]
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python" in the PATH
gyp verb which succeeded python /usr/bin/python
gyp verb check python version python -c "import platform; print(platform.python_version());" returned: "2.7.6\n"
gyp verb get node dir no --target version specified, falling back to host node version: v0.10.33
gyp verb command install [ 'v0.10.33' ]
gyp verb install input version string "v0.10.33"
gyp verb install installing version: 0.10.33
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 0.10.33
gyp verb build dir attempting to create "build" dir: /Users/light/Sites/test/node_modules/minidump/build
gyp verb build dir "build" dir needed to be created? /Users/light/Sites/test/node_modules/minidump/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /Users/light/Sites/test/node_modules/minidump/build/config.gypi
gyp verb config.gypi checking for gypi file: /Users/light/Sites/test/node_modules/minidump/config.gypi
gyp verb common.gypi checking for gypi file: /Users/light/Sites/test/node_modules/minidump/common.gypi
gyp verb common.gypi found gypi file
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn python
gyp info spawn args [ '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/light/Sites/test/node_modules/minidump/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/light/Sites/test/node_modules/minidump/common.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/light/.node-gyp/0.10.33/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/light/.node-gyp/0.10.33',
gyp info spawn args '-Dmodule_root_dir=/Users/light/Sites/test/node_modules/minidump',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir /Users/light/.node-gyp/0.10.33
gyp verb which succeeded for make /usr/bin/make
gyp info spawn make
gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
c++ '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DHAVE_MACH_O_NLIST_H' -I/Users/light/.node-gyp/0.10.33/src -I/Users/light/.node-gyp/0.10.33/deps/uv/include -I/Users/light/.node-gyp/0.10.33/deps/v8/include -I../deps/breakpad/src -I../deps/breakpad/src/common/mac -funsigned-char -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-exceptions -fno-threadsafe-statics -w -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/dump_syms/deps/breakpad/src/common/dwarf/bytereader.o.d.raw -c -o Release/obj.target/dump_syms/deps/breakpad/src/common/dwarf/bytereader.o ../deps/breakpad/src/common/dwarf/bytereader.cc
c++ '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DHAVE_MACH_O_NLIST_H' -I/Users/light/.node-gyp/0.10.33/src -I/Users/light/.node-gyp/0.10.33/deps/uv/include -I/Users/light/.node-gyp/0.10.33/deps/v8/include -I../deps/breakpad/src -I../deps/breakpad/src/common/mac -funsigned-char -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-exceptions -fno-threadsafe-statics -w -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/dump_syms/deps/breakpad/src/common/dwarf_cfi_to_module.o.d.raw -c -o Release/obj.target/dump_syms/deps/breakpad/src/common/dwarf_cfi_to_module.o ../deps/breakpad/src/common/dwarf_cfi_to_module.cc
c++ '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DHAVE_MACH_O_NLIST_H' -I/Users/light/.node-gyp/0.10.33/src -I/Users/light/.node-gyp/0.10.33/deps/uv/include -I/Users/light/.node-gyp/0.10.33/deps/v8/include -I../deps/breakpad/src -I../deps/breakpad/src/common/mac -funsigned-char -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-exceptions -fno-threadsafe-statics -w -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/dump_syms/deps/breakpad/src/common/dwarf_cu_to_module.o.d.raw -c -o Release/obj.target/dump_syms/deps/breakpad/src/common/dwarf_cu_to_module.o ../deps/breakpad/src/common/dwarf_cu_to_module.cc
c++ '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DHAVE_MACH_O_NLIST_H' -I/Users/light/.node-gyp/0.10.33/src -I/Users/light/.node-gyp/0.10.33/deps/uv/include -I/Users/light/.node-gyp/0.10.33/deps/v8/include -I../deps/breakpad/src -I../deps/breakpad/src/common/mac -funsigned-char -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-exceptions -fno-threadsafe-statics -w -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/dump_syms/deps/breakpad/src/common/dwarf/dwarf2diehandler.o.d.raw -c -o Release/obj.target/dump_syms/deps/breakpad/src/common/dwarf/dwarf2diehandler.o ../deps/breakpad/src/common/dwarf/dwarf2diehandler.cc
c++ '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DHAVE_MACH_O_NLIST_H' -I/Users/light/.node-gyp/0.10.33/src -I/Users/light/.node-gyp/0.10.33/deps/uv/include -I/Users/light/.node-gyp/0.10.33/deps/v8/include -I../deps/breakpad/src -I../deps/breakpad/src/common/mac -funsigned-char -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-exceptions -fno-threadsafe-statics -w -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/dump_syms/deps/breakpad/src/common/dwarf/dwarf2reader.o.d.raw -c -o Release/obj.target/dump_syms/deps/breakpad/src/common/dwarf/dwarf2reader.o ../deps/breakpad/src/common/dwarf/dwarf2reader.cc
c++ '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DHAVE_MACH_O_NLIST_H' -I/Users/light/.node-gyp/0.10.33/src -I/Users/light/.node-gyp/0.10.33/deps/uv/include -I/Users/light/.node-gyp/0.10.33/deps/v8/include -I../deps/breakpad/src -I../deps/breakpad/src/common/mac -funsigned-char -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-exceptions -fno-threadsafe-statics -w -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/dump_syms/deps/breakpad/src/common/dwarf_line_to_module.o.d.raw -c -o Release/obj.target/dump_syms/deps/breakpad/src/common/dwarf_line_to_module.o ../deps/breakpad/src/common/dwarf_line_to_module.cc
c++ '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DHAVE_MACH_O_NLIST_H' -I/Users/light/.node-gyp/0.10.33/src -I/Users/light/.node-gyp/0.10.33/deps/uv/include -I/Users/light/.node-gyp/0.10.33/deps/v8/include -I../deps/breakpad/src -I../deps/breakpad/src/common/mac -funsigned-char -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-exceptions -fno-threadsafe-statics -w -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/dump_syms/deps/breakpad/src/common/language.o.d.raw -c -o Release/obj.target/dump_syms/deps/breakpad/src/common/language.o ../deps/breakpad/src/common/language.cc
c++ '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DHAVE_MACH_O_NLIST_H' -I/Users/light/.node-gyp/0.10.33/src -I/Users/light/.node-gyp/0.10.33/deps/uv/include -I/Users/light/.node-gyp/0.10.33/deps/v8/include -I../deps/breakpad/src -I../deps/breakpad/src/common/mac -funsigned-char -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-exceptions -fno-threadsafe-statics -w -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/dump_syms/deps/breakpad/src/common/mac/arch_utilities.o.d.raw -c -o Release/obj.target/dump_syms/deps/breakpad/src/common/mac/arch_utilities.o ../deps/breakpad/src/common/mac/arch_utilities.cc
c++ '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DHAVE_MACH_O_NLIST_H' -I/Users/light/.node-gyp/0.10.33/src -I/Users/light/.node-gyp/0.10.33/deps/uv/include -I/Users/light/.node-gyp/0.10.33/deps/v8/include -I../deps/breakpad/src -I../deps/breakpad/src/common/mac -funsigned-char -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-exceptions -fno-threadsafe-statics -w -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/dump_syms/deps/breakpad/src/common/mac/dump_syms.o.d.raw -c -o Release/obj.target/dump_syms/deps/breakpad/src/common/mac/dump_syms.o ../deps/breakpad/src/common/mac/dump_syms.mm
In file included from ../deps/breakpad/src/common/mac/dump_syms.mm:36:
In file included from ../deps/breakpad/src/common/mac/dump_syms.h:38:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:7:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/NSRange.h:5:
/System/Library/Frameworks/Foundation.framework/Headers/NSValue.h:12:1: error: 'objc_returns_inner_pointer' attribute only applies to methods
@Property (readonly) const char objCType NS_RETURNS_INNER_POINTER;
^ ~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../deps/breakpad/src/common/mac/dump_syms.mm:36:
In file included from ../deps/breakpad/src/common/mac/dump_syms.h:38:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:15:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/NSCharacterSet.h:8:
/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:248:1: error: 'objc_returns_inner_pointer' attribute only applies to methods
@Property (readonly) __strong const char *UTF8String NS_RETURNS_INNER_POINTER; // Convenience to return null-terminated UTF8 representation
^ ~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../deps/breakpad/src/common/mac/dump_syms.mm:36:
In file included from ../deps/breakpad/src/common/mac/dump_syms.h:38:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:17:
/System/Library/Frameworks/Foundation.framework/Headers/NSData.h:76:1: error: 'objc_returns_inner_pointer' attribute only applies to methods
@Property (readonly) const void *bytes NS_RETURNS_INNER_POINTER;
^ ~~~~~~~~~~~~~~~~~~~~~~~~
/System/Library/Frameworks/Foundation.framework/Headers/NSData.h:161:1: error: 'objc_returns_inner_pointer' attribute only applies to methods
@Property (readonly) void *mutableBytes NS_RETURNS_INNER_POINTER;
^ ~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../deps/breakpad/src/common/mac/dump_syms.mm:36:
In file included from ../deps/breakpad/src/common/mac/dump_syms.h:38:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:25:
/System/Library/Frameworks/Foundation.framework/Headers/NSDecimalNumber.h:101:1: error: 'objc_returns_inner_pointer' attribute only applies to methods
@Property (readonly) const char *objCType NS_RETURNS_INNER_POINTER;
^ ~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../deps/breakpad/src/common/mac/dump_syms.mm:36:
In file included from ../deps/breakpad/src/common/mac/dump_syms.h:38:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:31:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:8:
/System/Library/Frameworks/Foundation.framework/Headers/NSPathUtilities.h:34:1: error: 'objc_returns_inner_pointer' attribute only applies to methods
@Property (readonly) __strong const char *fileSystemRepresentation NS_RETURNS_INNER_POINTER;
^ ~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../deps/breakpad/src/common/mac/dump_syms.mm:36:
In file included from ../deps/breakpad/src/common/mac/dump_syms.h:38:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:41:
/System/Library/Frameworks/Foundation.framework/Headers/NSKeyValueObserving.h:183:1: error: 'objc_returns_inner_pointer' attribute only applies to methods
@Property void *observationInfo NS_RETURNS_INNER_POINTER;
^ ~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../deps/breakpad/src/common/mac/dump_syms.mm:36:
In file included from ../deps/breakpad/src/common/mac/dump_syms.h:38:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:46:
/System/Library/Frameworks/Foundation.framework/Headers/NSMethodSignature.h:22:1: error: 'objc_returns_inner_pointer' attribute only applies to methods
@Property (readonly) const char *methodReturnType NS_RETURNS_INNER_POINTER;
^ ~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../deps/breakpad/src/common/mac/dump_syms.mm:36:
In file included from ../deps/breakpad/src/common/mac/dump_syms.h:38:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:74:
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:86:1: error: 'objc_returns_inner_pointer' attribute only applies to methods
@Property (readonly) __strong const char *fileSystemRepresentation NS_RETURNS_INNER_POINTER NS_AVAILABLE(10_9, 7_0);
^ ~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../deps/breakpad/src/common/mac/dump_syms.mm:36:
In file included from ../deps/breakpad/src/common/mac/dump_syms.h:38:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:151:
/System/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:50:1: error: 'objc_returns_inner_pointer' attribute only applies to methods
@Property (readonly) const AEDesc *aeDesc NS_RETURNS_INNER_POINTER;
^ ~~~~~~~~~~~~~~~~~~~~~~~~
10 errors generated.
make: *
* [Release/obj.target/dump_syms/deps/breakpad/src/common/mac/dump_syms.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Darwin 14.0.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/light/Sites/test/node_modules/minidump
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm verb unsafe-perm in lifecycle true
npm info [email protected] Failed to exec install script
npm verb unlock done using /Users/light/.npm/_locks/minidump-ef6db2885923709a.lock for /Users/light/Sites/test/node_modules/minidump
npm verb stack Error: [email protected] install: node-gyp rebuild
npm verb stack Exit status 1
npm verb stack at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:212:16)
npm verb stack at EventEmitter.emit (events.js:98:17)
npm verb stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:14:12)
npm verb stack at ChildProcess.emit (events.js:98:17)
npm verb stack at maybeClose (child_process.js:756:16)
npm verb stack at Process.ChildProcess._handle.onexit (child_process.js:823:5)
npm verb pkgid [email protected]
npm verb cwd /Users/light/Sites/test
npm ERR! Darwin 14.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "--verbose" "minidump"
npm ERR! node v0.10.33
npm ERR! npm v2.1.10
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the minidump package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls minidump
npm ERR! There is likely additional logging output above.
npm verb exit [ 1, true ]
npm verb unbuild node_modules/minidump
npm info preuninstall [email protected]
npm info uninstall [email protected]
npm verb unbuild rmStuff [email protected] from /Users/light/Sites/test/node_modules
npm verb gentlyRm verifying that /Users/light/Sites/test is managed by npm
npm verb gentlyRm vacuuming /Users/light/Sites/test/node_modules/.bin/minidump_stackwalk up to /Users/light/Sites/test
npm info postuninstall [email protected]
npm verb gentlyRm vacuuming /Users/light/Sites/test/node_modules/minidump

npm ERR! Please include the following file with any support request:
npm ERR! /Users/light/Sites/test/npm-debug.log

[Question] atom to babel 7 causes minidump errors

Any idea what's causing these errors? Can't find anything

atom/atom#23654

https://github.visualstudio.com/Atom/_build/results?buildId=123203&view=logs&j=e2cf4b02-5697-54ad-cf7c-fc2a840d53af&t=9fd275d3-5d0a-5af8-58ae-a01a7d61dbd5&l=30

https://github.visualstudio.com/Atom/_build/results?buildId=123203&view=logs&j=0da5d1d9-276d-5173-c4c4-9d4d4ed14fdb&t=274baec0-c438-5f9e-e2fa-e6a84e183e1e&l=32

Error: /Users/runner/work/1/s/out/app/node_modules/fsevents/fsevents.node: object file contains more than one architecture, none of which match the current architecture; specify an architecture explicitly with '-a ARCH' to resolve the ambiguity
Error: Failed to write symbol file.

won't build on ARM without a manual include

It apparently tries to find a variable named 'chromeos' if on arm, which isn't set anywhere

gyp: name 'chromeos' is not defined while evaluating condition 'target_arch=="arm" and chromeos==1' in deps/breakpad/breakpad.gyp while loading dependencies of 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 (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 3.8.13.23
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/anomaly/node_modules/minidump
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok 
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the minidump package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls minidump
npm ERR! There is likely additional logging output above.

Adding this to ~/.gyp/include.gypi works around it:

{
  'variables': {
    'chromeos%': 0
  }
}

or, I assume, set that to '1' if actually on ChromeOS

minidump.js commands execute error

minidump version 0.19.0
I install minidump by npm intall [email protected] --no-bin-links
but node_modules/minidump/build have nothing, the minidump.js content commands excute path minidump\build\src\processor\minidump_stackwalk.exe is not exsit

Windows 10 build issue

I'm using Windows 10 with Visual Studio Community 2015. Initially, the output for npm install was along the lines of

C:\Users\Mike\Documents\GitHub\atom\build\node_modules\minidump\build\minidump.vcxproj(20,3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.

Modifying the VS installation to include the Windows 8 SDK appears to resolve this particular issue, but I then get

> [email protected] install C:\Users\Mike\Documents\GitHub\node-minidump
> node-gyp rebuild


C:\Users\Mike\Documents\GitHub\node-minidump>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets(64,5): error MSB8020: The build t
ools for v140 (Platform Toolset = 'v140') cannot be found. To build using the v140 build tools, please install v140 bui
ld tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-cli
ck the solution, and then selecting "Upgrade Solution...". [C:\Users\Mike\Documents\GitHub\node-minidump\build\minidump

I'd really like to get this working so that I can build Atom on Windows [ref https://github.com/atom/atom/issues/6667] and I'm happy to provide any other information that could help to debug it.

npm install minidump fail on centos 6

install fail.
uname -a : 2.6.32-431.20.3.el6.mt20161028.x86_64 #1 SMP Fri Oct 28 17:50:35 CST 2016 x86_64 x86_64 x86_64 GNU/Linux
node version: 7.6
npm version: 4.1.2

How to solve this problem?

> [email protected] install /home/dragon/crash/node_modules/minidump
> node-gyp rebuild

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
make: Entering directory `/home/dragon/crash/node_modules/minidump/build'
  CXX(host) Release/obj.host/dump_syms/deps/breakpad/src/common/dwarf/bytereader.o
  CXX(host) Release/obj.host/dump_syms/deps/breakpad/src/common/dwarf_cfi_to_module.o
  CXX(host) Release/obj.host/dump_syms/deps/breakpad/src/common/dwarf_cu_to_module.o
  CXX(host) Release/obj.host/dump_syms/deps/breakpad/src/common/dwarf/dwarf2diehandler.o
  CXX(host) Release/obj.host/dump_syms/deps/breakpad/src/common/dwarf/dwarf2reader.o
  CXX(host) Release/obj.host/dump_syms/deps/breakpad/src/common/dwarf/elf_reader.o
  CXX(host) Release/obj.host/dump_syms/deps/breakpad/src/common/dwarf_line_to_module.o
  CXX(host) Release/obj.host/dump_syms/deps/breakpad/src/common/language.o
  CXX(host) Release/obj.host/dump_syms/deps/breakpad/src/common/linux/crc32.o
  CXX(host) Release/obj.host/dump_syms/deps/breakpad/src/common/linux/dump_symbols.o
In file included from ../deps/breakpad/src/common/linux/file_id.h:40,
                 from ../deps/breakpad/src/common/linux/dump_symbols.cc:66:
../deps/breakpad/src/common/memory.h: In constructor β€˜google_breakpad::PageStdAllocator<T>::PageStdAllocator(const google_breakpad::PageStdAllocator<Other>&)’:
../deps/breakpad/src/common/memory.h:181: error: β€˜nullptr’ was not declared in this scope
make: *** [Release/obj.host/dump_syms/deps/breakpad/src/common/linux/dump_symbols.o] Error 1
make: Leaving directory `/home/dragon/crash/node_modules/minidump/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/dragon/.nvm/versions/node/v7.6.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:192:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 2.6.32-431.20.3.el6.mt20161028.x86_64
gyp ERR! command "/home/dragon/.nvm/versions/node/v7.6.0/bin/node" "/home/dragon/.nvm/versions/node/v7.6.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/dragon/crash/node_modules/minidump
gyp ERR! node -v v7.6.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm ERR! Linux 2.6.32-431.20.3.el6.mt20161028.x86_64
npm ERR! argv "/home/dragon/.nvm/versions/node/v7.6.0/bin/node" "/home/dragon/.nvm/versions/node/v7.6.0/bin/npm" "install" "minidump" "--save"
npm ERR! node v7.6.0
npm ERR! npm  v4.1.2
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the minidump package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs minidump
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls minidump
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/dragon/crash/npm-debug.log

[Question] Is there any Java-equivalence of this library?

Sorry for opening this issue. We are building a micro service to handle the analysis of the crash reports, and part of it is handling the dumpfiles sent with the report. It's great to have this library in our PoC, but when we want to switch to SpringBoot micro service, we think it's better to use a Java library doing the same thing as this one.

Is there are Java-equivalence of this library?

Fails to Install on Alpine Linux (Docker)

I'm attempting to install this on Alpine Linux (the soon-to-be standard OS for Docker Images). Alpine is pretty bare, so I'm hoping this is just a missing dependency, but I can get other native modules to compile (like bcrypt). The standard libs I've installed on the base Alpine image include make, gcc, g++, and python, and it's running Node 4.4.3 at the moment.

The log looks like:

/app # npm i minidump
> [email protected] install /app/node_modules/minidump
> node-gyp rebuild

make: Entering directory '/app/node_modules/minidump/build'
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/dwarf/bytereader.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/dwarf_cfi_to_module.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/dwarf_cu_to_module.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/dwarf/dwarf2diehandler.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/dwarf/dwarf2reader.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/dwarf_line_to_module.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/language.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/linux/crc32.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/linux/dump_symbols.o
In file included from ../deps/breakpad/src/common/linux/dump_symbols.cc:69:0:
../deps/breakpad/src/common/stabs_reader.h:57:19: fatal error: a.out.h: No such file or directory
compilation terminated.
deps/breakpad/dump_syms.target.mk:109: recipe for target 'Release/obj.target/dump_syms/deps/breakpad/src/common/linux/dump_symbols.o' failed
make: *** [Release/obj.target/dump_syms/deps/breakpad/src/common/linux/dump_symbols.o] Error 1
make: Leaving directory '/app/node_modules/minidump/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.4.6
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /app/node_modules/minidump
gyp ERR! node -v v4.4.3
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm ERR! Linux 4.4.6
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "i" "minidump"
npm ERR! node v4.4.3
npm ERR! npm  v2.15.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the minidump package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs minidump
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls minidump
npm ERR! There is likely additional logging output above.
An error occurred trying to connect: EOF

walkStack from buffer

Hi,

I would like to walk the stack of a minidump file from a database and not from the file system because that's how I'm storing them. I get it from the database in the form of a node byte buffer.

What I want is sort of like this.

minidump.walkStack(buffer, [symbolPaths, ]callback)

Do you think that would be possible?

Thanks.

Error on minidump 0.16.0 installation

Node version: 12.9.0

Works fine for install 0.15.0 but do this error when trying to install 0.16.0.

$ npm i [email protected]
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.

npm ERR! path /Users/xxx/Documents/Projets/Complements/DecodeMinidumpCrashs/node_modules/minidump/bin/minidump_stackwalk
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/xxx/Documents/Projets/Complements/DecodeMinidumpCrashs/node_modules/minidump/bin/minidump_stackwalk'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/xxx/.npm/_logs/2019-08-22T16_56_03_284Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'i', '[email protected]' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session b7c7045f864ed271
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 304 https://registry.npmjs.org/minidump 91ms (from cache)
8 silly pacote version manifest for [email protected] fetched in 97ms
9 timing stage:loadCurrentTree Completed in 123ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 3ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule [email protected] checking installable status
17 silly removeObsoleteDep removing [email protected] from the tree as its been replaced by a newer version or is no longer required
18 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 3ms
19 timing stage:loadIdealTree Completed in 7ms
20 silly currentTree [email protected]
20 silly currentTree └── [email protected]
21 silly idealTree [email protected]
21 silly idealTree └── [email protected]
22 silly install generateActionsToTake
23 timing stage:generateActionsToTake Completed in 3ms
24 silly diffTrees action count 1
25 silly diffTrees update [email protected]
26 silly decomposeActions action count 10
27 silly decomposeActions unbuild [email protected]
28 silly decomposeActions remove [email protected]
29 silly decomposeActions fetch [email protected]
30 silly decomposeActions extract [email protected]
31 silly decomposeActions preinstall [email protected]
32 silly decomposeActions build [email protected]
33 silly decomposeActions install [email protected]
34 silly decomposeActions postinstall [email protected]
35 silly decomposeActions finalize [email protected]
36 silly decomposeActions refresh-package-json [email protected]
37 silly install executeActions
38 silly doSerial global-install 10
39 verbose correctMkdir /Users/username/.npm/_locks correctMkdir not in flight; initializing
40 verbose lock using /Users/username/.npm/_locks/staging-0a3ac54caf71adf9.lock for /Users/username/Documents/Docs/Projets/projectname/Complements/DecodeMinidumpCrashs/node_modules/.staging
41 silly doParallel extract 1
42 silly extract [email protected]
43 silly tarball trying [email protected] by hash: sha512-f46mRoZ/G9Bgu7thEMazTcukoaGucNKOl3wKKwZWqTE1EuCY1vG4uvUrnYF0RE/G1tAqwz6BX8Dct14AQjhtPg==
44 silly extract [email protected] extracted to /Users/username/Documents/Docs/Projets/projectname/Complements/DecodeMinidumpCrashs/node_modules/.staging/minidump-a98bea7f (11ms)
45 timing action:extract Completed in 14ms
46 silly doReverseSerial unbuild 10
47 silly unbuild [email protected]
48 info lifecycle [email protected]~preuninstall: [email protected]
49 info lifecycle [email protected]~uninstall: [email protected]
50 verbose unbuild rmStuff [email protected] from /Users/username/Documents/Docs/Projets/projectname/Complements/DecodeMinidumpCrashs/node_modules
51 silly isEverInside /Users/username/Documents/Docs/Projets/projectname/Complements/DecodeMinidumpCrashs/node_modules/.bin/minidump_stackwalk is not inside /Users/username/Documents/Docs/Projets/projectname/Complements/DecodeMinidumpCrashs/node_modules/minidump
52 silly gentlyRm parent.path = /Users/username/Documents/Docs/Projets/projectname/Complements/DecodeMinidumpCrashs/node_modules/minidump
53 silly gentlyRm parent.managed = /Users/username/Documents/Docs/Projets/projectname/Complements/DecodeMinidumpCrashs/node_modules/minidump is in /Users/username/Documents/Docs/Projets/projectname/Complements/DecodeMinidumpCrashs
54 silly gentlyRm target.path =  /Users/username/Documents/Docs/Projets/projectname/Complements/DecodeMinidumpCrashs/node_modules/.bin/minidump_stackwalk
55 silly gentlyRm target.symlink = ../minidump/bin/minidump_stackwalk
56 silly gentlyRm target.managed = /Users/username/Documents/Docs/Projets/projectname/Complements/DecodeMinidumpCrashs/node_modules/.bin/minidump_stackwalk is in /Users/username/Documents/Docs/Projets/projectname/Complements/DecodeMinidumpCrashs
57 silly gentlyRm target.inParent =  {
57 silly gentlyRm   target: '/Users/username/Documents/Docs/Projets/projectname/Complements/DecodeMinidumpCrashs/node_modules/minidump/bin/minidump_stackwalk',
57 silly gentlyRm   path: '/Users/username/Documents/Docs/Projets/projectname/Complements/DecodeMinidumpCrashs/node_modules/minidump'
57 silly gentlyRm }
58 info lifecycle [email protected]~postuninstall: [email protected]
59 timing action:unbuild Completed in 6ms
60 silly doSerial remove 10
61 silly remove /Users/username/Documents/Docs/Projets/projectname/Complements/DecodeMinidumpCrashs/node_modules/minidump
62 timing action:remove Completed in 118ms
63 silly doSerial move 10
64 silly doSerial finalize 10
65 silly finalize /Users/username/Documents/Docs/Projets/projectname/Complements/DecodeMinidumpCrashs/node_modules/minidump
66 timing action:finalize Completed in 1ms
67 silly doParallel refresh-package-json 1
68 silly refresh-package-json /Users/username/Documents/Docs/Projets/projectname/Complements/DecodeMinidumpCrashs/node_modules/minidump
69 timing action:refresh-package-json Completed in 5ms
70 silly doParallel preinstall 1
71 silly preinstall [email protected]
72 info lifecycle [email protected]~preinstall: [email protected]
73 timing action:preinstall Completed in 0ms
74 silly doSerial build 10
75 silly build [email protected]
76 info linkStuff [email protected]
77 silly linkStuff [email protected] has /Users/username/Documents/Docs/Projets/projectname/Complements/DecodeMinidumpCrashs/node_modules as its parent node_modules
78 verbose linkBins [
78 verbose linkBins   { minidump_stackwalk: 'bin/minidump_stackwalk' },
78 verbose linkBins   '/Users/username/Documents/Docs/Projets/projectname/Complements/DecodeMinidumpCrashs/node_modules/.bin',
78 verbose linkBins   false
78 verbose linkBins ]
79 timing action:build Completed in 2ms
80 verbose unlock done using /Users/username/.npm/_locks/staging-0a3ac54caf71adf9.lock for /Users/username/Documents/Docs/Projets/projectname/Complements/DecodeMinidumpCrashs/node_modules/.staging
81 timing stage:rollbackFailedOptional Completed in 2ms
82 timing stage:runTopLevelLifecycles Completed in 291ms
83 silly saveTree [email protected]
83 silly saveTree └── [email protected]
84 warn [email protected] No repository field.
85 warn [email protected] No license field.
86 verbose stack Error: ENOENT: no such file or directory, chmod '/Users/username/Documents/Docs/Projets/projectname/Complements/DecodeMinidumpCrashs/node_modules/minidump/bin/minidump_stackwalk'
87 verbose cwd /Users/username/Documents/Docs/Projets/projectname/Complements/DecodeMinidumpCrashs
88 verbose Darwin 18.7.0
89 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "[email protected]"
90 verbose node v12.9.0
91 verbose npm  v6.10.2
92 error path /Users/username/Documents/Docs/Projets/projectname/Complements/DecodeMinidumpCrashs/node_modules/minidump/bin/minidump_stackwalk
93 error code ENOENT
94 error errno -2
95 error syscall chmod
96 error enoent ENOENT: no such file or directory, chmod '/Users/username/Documents/Docs/Projets/projectname/Complements/DecodeMinidumpCrashs/node_modules/minidump/bin/minidump_stackwalk'
97 error enoent This is related to npm not being able to find a file.
98 verbose exit [ -2, true ]

node-gyp rebiuld of [email protected] fails with clang on debian

Just found out that the node-gyp rebiuld of [email protected] fails on clang. Changing default cc and cc+ to gcc.

The actual fail is clang: error: unknown argument: '-fno-tree-sink'.

Logs and info

$ ./script/build
Node: v0.10.35
npm: v1.4.28
Installing build modules...
clang: error: unknown argument: '-fno-tree-sink'
make: *** [Release/obj.target/minidump_stackwalk/deps/breakpad/src/third_party/libdisasm/ia32_implicit.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/opt/n_node/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 3.16.0-4-amd64
gyp ERR! command "node" "/opt/n_node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/victor/Downloads/atmmm/build/node_modules/minidump
gyp ERR! node -v v0.10.35
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the minidump package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls minidump
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.16.0-4-amd64
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "--userconfig=/home/victor/Downloads/atmmm/.npmrc" "install" "--quiet"
npm ERR! cwd /home/victor/Downloads/atmmm/build
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
1:36.10s total, 44.93s user, 4.38s system, 51% cpu

$ clang -v
Debian clang version 3.5.0-9 (tags/RELEASE_350/final) (based on LLVM 3.5.0)
Target: x86_64-pc-linux-gnu
Thread model: posix

$ node --version
 v0.10.35

$ npm --version
1.4.28

$ uname -a
Linux minos 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt2-1 (2014-12-08) x86_64 GNU/Linux

node-gyp rebuild fails on OS X

I originally posted this in atom/atom#12120, but after trying to install minidump globally outside of Atom I realized the issue isn't Atom related.

FWIW, I installed Node through Homebrew and used this method to use NPM without sudo. Up until now I haven't had issues installing and using modules.

Here's the log:

~ > npm install -g minidump
/usr/local/bin/minidump_stackwalk -> /usr/local/lib/node_modules/minidump/bin/minidump_stackwalk

> [email protected] install /usr/local/lib/node_modules/minidump
> node-gyp rebuild

  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/dwarf/bytereader.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/dwarf_cfi_to_module.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/dwarf_cu_to_module.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/dwarf/dwarf2diehandler.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/dwarf/dwarf2reader.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/dwarf_line_to_module.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/language.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/mac/arch_utilities.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/mac/dump_syms.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/mac/file_id.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/mac/macho_id.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/mac/macho_reader.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/mac/macho_utilities.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/mac/macho_walker.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/md5.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/module.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/stabs_reader.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/common/stabs_to_module.o
  CXX(target) Release/obj.target/dump_syms/deps/breakpad/src/tools/mac/dump_syms/dump_syms_tool.o
  LINK(target) Release/dump_syms
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/basic_code_modules.o
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/basic_source_line_resolver.o
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/binarystream.o
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/call_stack.o
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/cfi_frame_info.o
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/disassembler_x86.o
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/dump_context.o
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/dump_object.o
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/logging.o
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/pathname_stripper.o
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/process_state.o
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/simple_symbol_supplier.o
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/source_line_resolver_base.o
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/stack_frame_cpu.o
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/stack_frame_symbolizer.o
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/stackwalk_common.o
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/stackwalker.o
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/stackwalker_amd64.o
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/stackwalker_arm.o
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/stackwalker_arm64.o
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/stackwalker_mips.o
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/stackwalker_ppc.o
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/stackwalker_ppc64.o
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/stackwalker_sparc.o
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/stackwalker_x86.o
  CXX(target) Release/obj.target/stackwalk_common/deps/breakpad/src/processor/tokenize.o
  CC(target) Release/obj.target/stackwalk_common/deps/breakpad/src/third_party/libdisasm/ia32_implicit.o
  CC(target) Release/obj.target/stackwalk_common/deps/breakpad/src/third_party/libdisasm/ia32_insn.o
  CC(target) Release/obj.target/stackwalk_common/deps/breakpad/src/third_party/libdisasm/ia32_invariant.o
  CC(target) Release/obj.target/stackwalk_common/deps/breakpad/src/third_party/libdisasm/ia32_modrm.o
  CC(target) Release/obj.target/stackwalk_common/deps/breakpad/src/third_party/libdisasm/ia32_opcode_tables.o
  CC(target) Release/obj.target/stackwalk_common/deps/breakpad/src/third_party/libdisasm/ia32_operand.o
  CC(target) Release/obj.target/stackwalk_common/deps/breakpad/src/third_party/libdisasm/ia32_reg.o
  CC(target) Release/obj.target/stackwalk_common/deps/breakpad/src/third_party/libdisasm/ia32_settings.o
  CC(target) Release/obj.target/stackwalk_common/deps/breakpad/src/third_party/libdisasm/x86_disasm.o
  CC(target) Release/obj.target/stackwalk_common/deps/breakpad/src/third_party/libdisasm/x86_format.o
  CC(target) Release/obj.target/stackwalk_common/deps/breakpad/src/third_party/libdisasm/x86_imm.o
  CC(target) Release/obj.target/stackwalk_common/deps/breakpad/src/third_party/libdisasm/x86_insn.o
  CC(target) Release/obj.target/stackwalk_common/deps/breakpad/src/third_party/libdisasm/x86_misc.o
  CC(target) Release/obj.target/stackwalk_common/deps/breakpad/src/third_party/libdisasm/x86_operand_list.o
  LIBTOOL-STATIC Release/stackwalk_common.a
libtool: unrecognized option `-static'
libtool: Try `libtool --help' for more information.
make: *** [Release/stackwalk_common.a] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Darwin 15.5.0
gyp ERR! command "/usr/local/Cellar/node/6.3.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/minidump
gyp ERR! node -v v6.3.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok 
npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/Cellar/node/6.3.0/bin/node" "/usr/local/bin/npm" "install" "-g" "minidump"
npm ERR! node v6.3.0
npm ERR! npm  v3.10.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the minidump package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs minidump
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls minidump
npm ERR! There is likely additional logging output above.

Windows 11 installation failure

$ npm install minidump

npm ERR! code 1
npm ERR! path D:\dount\node_modules\minidump
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node build.js
npm ERR! D:\dount\node_modules\minidump\build.js:24
npm ERR! if (result.error) throw result.error
npm ERR! ^
npm ERR!
npm ERR! Error: spawnSync D:\dount\node_modules\minidump\deps\breakpad\configure ENOENT
npm ERR! at Object.spawnSync (node:internal/child_process:1110:20)
npm ERR! at Object.spawnSync (node:child_process:871:24)
npm ERR! at spawnSync (D:\dount\node_modules\minidump\build.js:23:31)
npm ERR! at Object. (D:\dount\node_modules\minidump\build.js:42:1)
npm ERR! at Module._compile (node:internal/modules/cjs/loader:1254:14)
npm ERR! at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
npm ERR! at Module.load (node:internal/modules/cjs/loader:1117:32)
npm ERR! at Module._load (node:internal/modules/cjs/loader:958:12)
npm ERR! at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
npm ERR! at node:internal/main/run_main_module:23:47 {
npm ERR! errno: -4058,
npm ERR! code: 'ENOENT',
npm ERR! syscall: 'spawnSync D:\dount\node_modules\minidump\deps\breakpad\configure',
npm ERR! path: 'D:\dount\node_modules\minidump\deps\breakpad\configure',
npm ERR! spawnargs: []
npm ERR! }
npm ERR!
npm ERR! Node.js v18.16.0

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\DELL\AppData\Local\npm-cache_logs\2023-07-06T07_04_56_577Z-debug-0.log

Atom / Debian issues

Hello,

I'm packaging atom [1] for debian [2].
Your software is there included.

I found some issues in your software:

  • In your source files are no copyright / license tags [3]
    and / or
  • you have no LICENSE file at your top directory

Regards,
JΓΆrg Frings-FΓΌrst

[1] http://atom.io
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747824
[3]
// Copyright 20xx-20xx your name
// License: [your license eg. MIT / GPL-2 ....]

build FAILs if gcc CXXFLAGS includes "-std=c++11"

Building on

lsb_release -rd
    Description:    openSUSE 13.2 (Harlequin) (x86_64)
    Release:        13.2

with

gcc --version
    gcc (SUSE Linux) 5.1.1 20150707 [gcc-5-branch revision 225501]
node -v
    v0.12.6
npm -v
    2.11.2

script/build
    Node: v0.12.6
    npm: v2.11.2
    Installing build modules...
    In file included from ../deps/breakpad/src/common/linux/dump_symbols.cc:61:0:
    ../deps/breakpad/src/common/linux/dump_symbols.cc: In function β€˜std::string {anonymous}::ReadDebugLink(const char*, size_t, bool, const string&, const std::vector<std::basic_string<char> >&)’:
    ../deps/breakpad/src/common/linux/eintr_wrapper.h:40:11: error: β€˜typeof’ was not declared in this scope
       typeof(x) eintr_wrapper_result; \
               ^
    ../deps/breakpad/src/common/linux/dump_symbols.cc:457:28: note: in expansion of macro β€˜HANDLE_EINTR’
           ssize_t bytes_read = HANDLE_EINTR(read(debuglink_fd, &buf, kReadSize));
                                ^
    ../deps/breakpad/src/common/linux/eintr_wrapper.h:42:5: error: β€˜eintr_wrapper_result’ was not declared in this scope
         eintr_wrapper_result = (x); \
         ^
    ../deps/breakpad/src/common/linux/dump_symbols.cc:457:28: note: in expansion of macro β€˜HANDLE_EINTR’
           ssize_t bytes_read = HANDLE_EINTR(read(debuglink_fd, &buf, kReadSize));
                                ^
    ../deps/breakpad/src/common/linux/eintr_wrapper.h:43:12: error: β€˜eintr_wrapper_result’ was not declared in this scope
       } while (eintr_wrapper_result == -1 && errno == EINTR); \
                ^
    ../deps/breakpad/src/common/linux/dump_symbols.cc:457:28: note: in expansion of macro β€˜HANDLE_EINTR’
           ssize_t bytes_read = HANDLE_EINTR(read(debuglink_fd, &buf, kReadSize));
                                ^
    make: *** [Release/obj.target/dump_syms/deps/breakpad/src/common/linux/dump_symbols.o] Error 1
    gyp ERR! build error 
    gyp ERR! stack Error: `make` failed with exit code: 2
    gyp ERR! stack     at ChildProcess.onExit (/usr/local/nodejs/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
    gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
    gyp ERR! System Linux 4.1.1-1.ga46abf6-desktop
    gyp ERR! command "node" "/usr/local/nodejs/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
    gyp ERR! cwd /usr/local/src/atom/build/node_modules/minidump
    gyp ERR! node -v v0.12.6
    gyp ERR! node-gyp -v v2.0.1
    gyp ERR! not ok 
    npm ERR! Linux 4.1.1-1.ga46abf6-desktop
    npm ERR! argv "/usr/local/nodejs/bin/node" "/usr/local/nodejs/bin/npm" "--userconfig=/usr/local/src/atom/build/.npmrc" "install" "--loglevel" "error"
    npm ERR! node v0.12.6
    npm ERR! npm  v2.11.2
    npm ERR! code ELIFECYCLE

    npm ERR! [email protected] install: `node-gyp rebuild`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
    npm ERR! This is most likely a problem with the minidump package,
    npm ERR! not with npm itself.
    npm ERR! Tell the author that this fails on your system:
    npm ERR!     node-gyp rebuild
    npm ERR! You can get their info via:
    npm ERR!     npm owner ls minidump
    npm ERR! There is likely additional logging output above.

    npm ERR! Please include the following file with any support request:
    npm ERR!     /usr/local/src/atom/build/npm-debug.log


cat /usr/local/src/atom/build/npm-debug.log
    ...
    32347 verbose linkBins [email protected]
    32348 verbose linkMans [email protected]
    32349 verbose rebuildBundles [email protected]
    32350 verbose rebuildBundles [ '.bin', 'asar', 'underscore' ]
    32351 info install [email protected]
    32352 info postinstall [email protected]
    32353 verbose unlock done using /root/.atom/.npm/_locks/grunt-atom-shell-install-e0148a44dd181ee8.lock for /usr/local/src/atom/build/node_modules/grunt-atom-shell-installer
    32354 info [email protected] Failed to exec install script
    32355 verbose unlock done using /root/.atom/.npm/_locks/minidump-7e19f8db7061fb7b.lock for /usr/local/src/atom/build/node_modules/minidump
    32356 verbose stack Error: [email protected] install: `node-gyp rebuild`
    32356 verbose stack Exit status 1
    32356 verbose stack     at EventEmitter.<anonymous> (/usr/local/nodejs/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
    32356 verbose stack     at EventEmitter.emit (events.js:110:17)
    32356 verbose stack     at ChildProcess.<anonymous> (/usr/local/nodejs/lib/node_modules/npm/lib/utils/spawn.js:24:14)
    32356 verbose stack     at ChildProcess.emit (events.js:110:17)
    32356 verbose stack     at maybeClose (child_process.js:1015:16)
    32356 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
    32357 verbose pkgid [email protected]
    32358 verbose cwd /usr/local/src/atom/build
    32359 error Linux 4.1.1-1.ga46abf6-desktop
    32360 error argv "/usr/local/nodejs/bin/node" "/usr/local/nodejs/bin/npm" "--userconfig=/usr/local/src/atom/build/.npmrc" "install" "--loglevel" "error"
    32361 error node v0.12.6
    32362 error npm  v2.11.2
    32363 error code ELIFECYCLE
    32364 error [email protected] install: `node-gyp rebuild`
    32364 error Exit status 1
    32365 error Failed at the [email protected] install script 'node-gyp rebuild'.
    32365 error This is most likely a problem with the minidump package,
    32365 error not with npm itself.
    32365 error Tell the author that this fails on your system:
    32365 error     node-gyp rebuild
    32365 error You can get their info via:
    32365 error     npm owner ls minidump
    32365 error There is likely additional logging output above.
    32366 verbose exit [ 1, true ]
    32367 verbose unbuild node_modules/minidump
    32368 info preuninstall [email protected]
    32369 info uninstall [email protected]
    32370 verbose unbuild rmStuff [email protected] from /usr/local/src/atom/build/node_modules
    32371 silly gentlyRm /usr/local/src/atom/build/node_modules/.bin/minidump_stackwalk is being gently removed
    32372 silly gentlyRm verifying /usr/local/src/atom/build is an npm working directory
    32373 silly gentlyRm containing path /usr/local/src/atom/build is under npm's control, in /usr/local/src/atom/build
    32374 silly gentlyRm deletion target /usr/local/src/atom/build/node_modules/.bin/minidump_stackwalk is under /usr/local/src/atom/build
    32375 verbose gentlyRm vacuuming from /usr/local/src/atom/build/node_modules/.bin/minidump_stackwalk up to /usr/local/src/atom/build
    32376 silly vacuum-fs removing /usr/local/src/atom/build/node_modules/.bin/minidump_stackwalk
    32377 silly vacuum-fs quitting because other entries in /usr/local/src/atom/build/node_modules/.bin
    32378 info postuninstall [email protected]
    32379 silly gentlyRm /usr/local/src/atom/build/node_modules/minidump is being purged from base /usr/local/src/atom/build
    32380 verbose gentlyRm don't care about contents; nuking /usr/local/src/atom/build/node_modules/minidump
    32381 silly vacuum-fs purging /usr/local/src/atom/build/node_modules/minidump
    32382 silly vacuum-fs quitting because other entries in /usr/local/src/atom/build/node_modules

installation error on Windows

Hello,

I m trying to "npm i minidump" on my project on Windows 10 and I got the following error :

690 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\xxxx\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "i" "[email protected]"
691 verbose node v10.15.0
692 verbose npm  v6.6.0
693 error path C:\xxx\node_modules\minidump\build\src\processor\minidump_stackwalk
694 error code ENOENT
695 error errno -4058
696 error syscall chmod
697 error enoent ENOENT: no such file or directory, chmod 'C:\xxx\node_modules\minidump\build\src\processor\minidump_stackwalk'
698 error enoent This is related to npm not being able to find a file.

I tested some workaround found on the web but nothing work...

Any idea ?

Thank you

Question: Is there a way to convert plain text to minidump?

This is sort of a general question that I'm asking here because I don't think there's anywhere else where it'll get answered Β―_(ツ)_/Β―.

I don't have a crash server set up for my Electron app and I've had users send me crash reports in plain text (copied and pasted off of the dialog that OSX pops up after a crash). This module and the underlying CLI tools it uses look like they all expect a binary format .dmp file. Is there any way I can go from plain text to minidump format or some other way to get meaningful information out of these crashes?

This does not work 😒 :

var fs = require('fs');
var minidump = require("minidump");
minidump.addSymbolPath('./symbols/electron-v0.37.8-darwin-x64-symbols/electron.breakpad.syms');
minidump.walkStack('./raw/crashreport.txt', function(err, report) {
    if(err) {
        console.error(err);
        return;
    }
    else {
        fs.writeFile('./reports/report.txt', report.toString());
    }
});

This is what the reports look like, if that's helpful:

Crashed Thread:        0  CrBrowserMain  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0xffffffff00000000
Exception Note:        EXC_CORPSE_NOTIFY

VM Regions Near 0xffffffff00000000:
--> shared memory          00007fffffe18000-00007fffffe19000 [    4K] r-x/r-x SM=SHM  


Global Trace Buffer (reverse chronological seconds):
6582.432123  libextension.dylib         0x00007fff9c029533 tearing down extension request for pid 41654
7209.358303  libextension.dylib         0x00007fff9c029533 tearing down extension request for pid 41133

Thread 0 Crashed:: CrBrowserMain  Dispatch queue: com.apple.main-thread
0   com.github.electron.framework   0x0000000108a9856d 0x106cb2000 + 31352173
1   com.github.electron.framework   0x0000000108a985cd 0x106cb2000 + 31352269
2   com.github.electron.framework   0x0000000108a95fe0 0x106cb2000 + 31342560
3   com.github.electron.framework   0x000000010755c4ee 0x106cb2000 + 9086190
4   com.github.electron.framework   0x000000010778a8ba 0x106cb2000 + 11372730
5   com.github.electron.framework   0x000000010761890e 0x106cb2000 + 9857294
6   com.github.electron.framework   0x0000000106e77c3a 0x106cb2000 + 1858618
7   com.github.electron.framework   0x0000000106e967b9 0x106cb2000 + 1984441
8   com.github.electron.framework   0x0000000106e96cf8 0x106cb2000 + 1985784
9   com.github.electron.framework   0x0000000106e6d781 0x106cb2000 + 1816449
10  com.github.electron.framework   0x0000000106e8e5fa 0x106cb2000 + 1951226
11  com.github.electron.framework   0x0000000106e6d184 0x106cb2000 + 1814916
12  com.apple.CoreFoundation        0x00007fff9fef7881 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
13  com.apple.CoreFoundation        0x00007fff9fed6fbc __CFRunLoopDoSources0 + 556
14  com.apple.CoreFoundation        0x00007fff9fed64df __CFRunLoopRun + 927
15  com.apple.CoreFoundation        0x00007fff9fed5ed8 CFRunLoopRunSpecific + 296
16  com.apple.HIToolbox             0x00007fff96f48935 RunCurrentEventLoopInMode + 235
17  com.apple.HIToolbox             0x00007fff96f4876f ReceiveNextEventCommon + 432
18  com.apple.HIToolbox             0x00007fff96f485af _BlockUntilNextEventMatchingListInModeWithFilter + 71
19  com.apple.AppKit                0x00007fff9d6d5efa _DPSNextEvent + 1067
20  com.apple.AppKit                0x00007fff9d6d532a -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
21  com.apple.AppKit                0x00007fff9d6c9e84 -[NSApplication run] + 682
22  com.github.electron.framework   0x0000000106e6e01f 0x106cb2000 + 1818655
23  com.github.electron.framework   0x0000000106e6d5d4 0x106cb2000 + 1816020
24  com.github.electron.framework   0x0000000106ea7453 0x106cb2000 + 2053203
25  com.github.electron.framework   0x00000001074b20db 0x106cb2000 + 8388827
26  com.github.electron.framework   0x00000001074b1ef3 0x106cb2000 + 8388339
27  com.github.electron.framework   0x00000001074b46c2 0x106cb2000 + 8398530
28  com.github.electron.framework   0x00000001074add5d 0x106cb2000 + 8371549
29  com.github.electron.framework   0x00000001074262dc 0x106cb2000 + 7815900
30  com.github.electron.framework   0x00000001074257d6 0x106cb2000 + 7813078
31  com.github.electron.framework   0x0000000106cb3c4d AtomMain + 77
32  com.electron.buzz               0x0000000106ca8e56 main + 38
33  libdyld.dylib                   0x00007fff9d24f5ad start + 1

  • Electron version: 0.37.8
  • Operating system: Mac OSX 10.11.5
  • minidump 0.9.0

Thanks!

Doesn't Build on macOS 13+

Needs to bump the breakpad commit to pick up upstream fixes for usages of deprecated APIs. I've tested locally and upstream main in breakpad builds clean, so just need to decide what commit to bump to.

node-gyp rebuild failing on OS X 10.10.4

System Information

System Version: OS X 10.10.4 (14E46)
Kernel Version: Darwin 14.4.0
$ xcode-select -p
/Applications/Xcode.app/Contents/Developer

$ xcodebuild -version
Xcode 6.4
Build version 6E35b

$ clang --version
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix

Build Log

$ npm install https://github.com/atom/node-minidump.git
|
> [email protected] install /private/tmp/node_modules/minidump
> node-gyp rebuild

gyp: deps/breakpad/breakpad.gyp not found (cwd: /private/tmp/node_modules/minidump) while loading dependencies of 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 (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:357:16)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 14.4.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/tmp/node_modules/minidump
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok
npm ERR! Darwin 14.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "https://github.com/atom/node-minidump.git"
npm ERR! node v0.12.7
npm ERR! npm  v2.14.2
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the minidump package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls minidump
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /private/tmp/npm-debug.log

/private/tmp/npm-debug.log

0 info it worked if it ends with ok
1 verbose cli [ 'node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'install',
1 verbose cli   'https://github.com/atom/node-minidump.git' ]
2 info using [email protected]
3 info using [email protected]
4 verbose node symlink /usr/local/bin/node
5 verbose install initial load of /private/tmp/package.json
6 verbose readDependencies loading dependencies from /private/tmp/package.json
7 silly cache add args [ 'https://github.com/atom/node-minidump.git', null ]
8 verbose cache add spec https://github.com/atom/node-minidump.git
9 silly cache add parsed spec { raw: 'https://github.com/atom/node-minidump.git',
9 silly cache add   scope: null,
9 silly cache add   name: null,
9 silly cache add   rawSpec: 'https://github.com/atom/node-minidump.git',
9 silly cache add   spec: 'git+https://github.com/atom/node-minidump.git',
9 silly cache add   type: 'hosted',
9 silly cache add   hosted:
9 silly cache add    { type: 'github',
9 silly cache add      ssh: '[email protected]:atom/node-minidump.git',
9 silly cache add      sshUrl: 'git+ssh://[email protected]/atom/node-minidump.git',
9 silly cache add      httpsUrl: 'git+https://github.com/atom/node-minidump.git',
9 silly cache add      gitUrl: 'git://github.com/atom/node-minidump.git',
9 silly cache add      shortcut: 'github:atom/node-minidump',
9 silly cache add      directUrl: 'https://raw.githubusercontent.com/atom/node-minidump/master/package.json' } }
10 verbose addRemoteGit caching https://github.com/atom/node-minidump.git
11 verbose addRemoteGit git+https://github.com/atom/node-minidump.git is a repository hosted by github
12 silly tryClone cloning git+https://github.com/atom/node-minidump.git via git+https://github.com/atom/node-minidump.git
13 verbose tryClone https-github-com-atom-node-minidump-git-be304860 not in flight; caching
14 info git [ 'config', '--get', 'remote.origin.url' ]
15 silly validateExistingRemote git+https://github.com/atom/node-minidump.git remote.origin.url: https://github.com/atom/node-minidump.git
16 verbose validateExistingRemote git+https://github.com/atom/node-minidump.git is updating existing cached remote /Users/me/.npm/_git-remotes/https-github-com-atom-node-minidump-git-be304860
17 info git [ 'fetch', '-a', 'origin' ]
18 verbose updateRemote git fetch -a origin (https://github.com/atom/node-minidump.git)
19 verbose setPermissions git+https://github.com/atom/node-minidump.git set permissions on /Users/me/.npm/_git-remotes/https-github-com-atom-node-minidump-git-be304860
20 verbose resolveHead git+https://github.com/atom/node-minidump.git original treeish: master
21 info git [ 'rev-list', '-n1', 'master' ]
22 silly resolveHead git+https://github.com/atom/node-minidump.git resolved treeish: 600eb0145ebb9776a83724d0937794def2ae6074
23 verbose resolveHead git+https://github.com/atom/node-minidump.git resolved Git URL: git+https://github.com/atom/node-minidump.git#600eb0145ebb9776a83724d0937794def2ae6074
24 silly resolveHead Git working directory: /var/folders/4d/dzptf0zd72n0lnm4pqgdqvh98r091p/T/npm-36974-aeea5d06/git-cache-7ca761318842/600eb0145ebb9776a83724d0937794def2ae6074
25 info git [ 'clone',
25 info git   '/Users/me/.npm/_git-remotes/https-github-com-atom-node-minidump-git-be304860',
25 info git   '/var/folders/4d/dzptf0zd72n0lnm4pqgdqvh98r091p/T/npm-36974-aeea5d06/git-cache-7ca761318842/600eb0145ebb9776a83724d0937794def2ae6074' ]
26 verbose cloneResolved git+https://github.com/atom/node-minidump.git clone Cloning into '/var/folders/4d/dzptf0zd72n0lnm4pqgdqvh98r091p/T/npm-36974-aeea5d06/git-cache-7ca761318842/600eb0145ebb9776a83724d0937794def2ae6074'...
26 verbose cloneResolved done.
27 info git [ 'checkout', '600eb0145ebb9776a83724d0937794def2ae6074' ]
28 verbose checkoutTreeish git+https://github.com/atom/node-minidump.git checkout Note: checking out '600eb0145ebb9776a83724d0937794def2ae6074'.
28 verbose checkoutTreeish
28 verbose checkoutTreeish You are in 'detached HEAD' state. You can look around, make experimental
28 verbose checkoutTreeish changes and commit them, and you can discard any commits you make in this
28 verbose checkoutTreeish state without impacting any branches by performing another checkout.
28 verbose checkoutTreeish
28 verbose checkoutTreeish If you want to create a new branch to retain commits you create, you may
28 verbose checkoutTreeish do so (now or later) by using -b with the checkout command again. Example:
28 verbose checkoutTreeish
28 verbose checkoutTreeish   git checkout -b <new-branch-name>
28 verbose checkoutTreeish
28 verbose checkoutTreeish HEAD is now at 600eb01... Only build pushes on Travis for master branch [ci skip]
29 verbose addLocalDirectory /Users/me/.npm/minidump/0.9.0/package.tgz not in flight; packing
30 verbose tar pack [ '/Users/me/.npm/minidump/0.9.0/package.tgz',
30 verbose tar pack   '/var/folders/4d/dzptf0zd72n0lnm4pqgdqvh98r091p/T/npm-36974-aeea5d06/git-cache-7ca761318842/600eb0145ebb9776a83724d0937794def2ae6074' ]
31 verbose tarball /Users/me/.npm/minidump/0.9.0/package.tgz
32 verbose folder /var/folders/4d/dzptf0zd72n0lnm4pqgdqvh98r091p/T/npm-36974-aeea5d06/git-cache-7ca761318842/600eb0145ebb9776a83724d0937794def2ae6074
33 verbose addLocalTarball adding from inside cache /Users/me/.npm/minidump/0.9.0/package.tgz
34 verbose addRemoteGit data._from: git+https://github.com/atom/node-minidump.git
35 verbose addRemoteGit data._resolved: git+https://github.com/atom/node-minidump.git#600eb0145ebb9776a83724d0937794def2ae6074
36 silly cache afterAdd [email protected]
37 verbose afterAdd /Users/me/.npm/minidump/0.9.0/package/package.json not in flight; writing
38 verbose afterAdd /Users/me/.npm/minidump/0.9.0/package/package.json written
39 silly install resolved [ { main: './lib/minidump.js',
39 silly install resolved     name: 'minidump',
39 silly install resolved     description: 'Read and process minidump file',
39 silly install resolved     version: '0.9.0',
39 silly install resolved     bin: { minidump_stackwalk: 'bin/minidump_stackwalk' },
39 silly install resolved     licenses: [ [Object] ],
39 silly install resolved     repository:
39 silly install resolved      { type: 'git',
39 silly install resolved        url: 'git+https://github.com/atom/node-minidump.git' },
39 silly install resolved     bugs: { url: 'https://github.com/atom/node-minidump/issues' },
39 silly install resolved     scripts: { install: 'node-gyp rebuild' },
39 silly install resolved     gypfile: true,
39 silly install resolved     gitHead: '600eb0145ebb9776a83724d0937794def2ae6074',
39 silly install resolved     readme: '# minidump - Process minidump files [![Build Status](https://travis-ci.org/atom/node-minidump.svg?branch=master)](https://travis-ci.org/atom/node-minidump)\n\n## Installing\n\n```sh\nnpm install minidump\n```\n\n## Building\n  * Clone the repository recursively\n  * Run `npm install`\n\n## Docs\n\n```javascript\nvar minidump = require(\'minidump\');\n```\n\n### minidump.addSymbolPath(path1, ..., pathN)\n\nAdd search paths for looking up symbol files.\n\n### minidump.walkStack(minidumpFilePath, [symbolPaths, ]callback)\n\nGet the stack trace from `minidumpFilePath`, the `callback` would be called\nwith `callback(error, report)` upon completion.\n\n### minidump.dumpSymbol(binaryPath, callback)\n\nDump debug symbols in minidump format from `binaryPath`, the `callback` would\nbe called with `callback(error, minidump)` upon completion.\n',
39 silly install resolved     readmeFilename: 'README.md',
39 silly install resolved     homepage: 'https://github.com/atom/node-minidump#readme',
39 silly install resolved     _id: '[email protected]',
39 silly install resolved     _shasum: '8429e0fed4e460e473eafbd51e614109930e79f7',
39 silly install resolved     _from: 'git+https://github.com/atom/node-minidump.git',
39 silly install resolved     _resolved: 'git+https://github.com/atom/node-minidump.git#600eb0145ebb9776a83724d0937794def2ae6074' } ]
40 info install [email protected] into /private/tmp
41 info installOne [email protected]
42 verbose installOne of minidump to /private/tmp not in flight; installing
43 verbose lock using /Users/me/.npm/_locks/minidump-bfa185706308d7d3.lock for /private/tmp/node_modules/minidump
44 silly install write writing minidump 0.9.0 to /private/tmp/node_modules/minidump
45 verbose unbuild node_modules/minidump
46 silly gentlyRm /private/tmp/node_modules/minidump is being purged from base /private/tmp
47 verbose gentlyRm don't care about contents; nuking /private/tmp/node_modules/minidump
48 verbose tar unpack /Users/me/.npm/minidump/0.9.0/package.tgz
49 verbose tar unpacking to /private/tmp/node_modules/minidump
50 silly gentlyRm /private/tmp/node_modules/minidump is being purged
51 verbose gentlyRm don't care about contents; nuking /private/tmp/node_modules/minidump
52 silly gunzTarPerm modes [ '755', '644' ]
53 silly gunzTarPerm extractEntry package.json
54 silly gunzTarPerm extractEntry .npmignore
55 silly gunzTarPerm extractEntry README.md
56 silly gunzTarPerm extractEntry .travis.yml
57 silly gunzTarPerm extractEntry LICENSE.md
58 silly gunzTarPerm extractEntry .gitmodules
59 silly gunzTarPerm extractEntry binding.gyp
60 silly gunzTarPerm extractEntry common.gypi
61 silly gunzTarPerm extractEntry deps/third_party/lss/linux_syscall_support.h
62 silly gunzTarPerm extractEntry lib/minidump.js
63 silly gunzTarPerm extractEntry bin/minidump_stackwalk
64 verbose write writing to /private/tmp/node_modules/minidump/package.json
65 info preinstall [email protected]
66 verbose readDependencies loading dependencies from /private/tmp/node_modules/minidump/package.json
67 verbose readDependencies loading dependencies from /private/tmp/node_modules/minidump/package.json
68 silly install resolved []
69 verbose about to build /private/tmp/node_modules/minidump
70 info build /private/tmp/node_modules/minidump
71 info linkStuff [email protected]
72 silly linkStuff [email protected] has /private/tmp/node_modules as its parent node_modules
73 verbose linkBins [email protected]
74 verbose link bins [ { minidump_stackwalk: 'bin/minidump_stackwalk' },
74 verbose link bins   '/private/tmp/node_modules/.bin',
74 verbose link bins   false ]
75 verbose linkMans [email protected]
76 verbose rebuildBundles [email protected]
77 silly gentlyRm /private/tmp/node_modules/.bin/minidump_stackwalk is being purged
78 verbose gentlyRm don't care about contents; nuking /private/tmp/node_modules/.bin/minidump_stackwalk
79 info install [email protected]
80 verbose unsafe-perm in lifecycle true
81 info [email protected] Failed to exec install script
82 verbose unlock done using /Users/me/.npm/_locks/minidump-bfa185706308d7d3.lock for /private/tmp/node_modules/minidump
83 verbose stack Error: [email protected] install: `node-gyp rebuild`
83 verbose stack Exit status 1
83 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:214:16)
83 verbose stack     at EventEmitter.emit (events.js:110:17)
83 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
83 verbose stack     at ChildProcess.emit (events.js:110:17)
83 verbose stack     at maybeClose (child_process.js:1015:16)
83 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
84 verbose pkgid [email protected]
85 verbose cwd /private/tmp
86 error Darwin 14.4.0
87 error argv "node" "/usr/local/bin/npm" "install" "https://github.com/atom/node-minidump.git"
88 error node v0.12.7
89 error npm  v2.14.2
90 error code ELIFECYCLE
91 error [email protected] install: `node-gyp rebuild`
91 error Exit status 1
92 error Failed at the [email protected] install script 'node-gyp rebuild'.
92 error This is most likely a problem with the minidump package,
92 error not with npm itself.
92 error Tell the author that this fails on your system:
92 error     node-gyp rebuild
92 error You can get their info via:
92 error     npm owner ls minidump
92 error There is likely additional logging output above.
93 verbose exit [ 1, true ]
94 verbose unbuild node_modules/minidump
95 info preuninstall [email protected]
96 info uninstall [email protected]
97 verbose unbuild rmStuff [email protected] from /private/tmp/node_modules
98 silly gentlyRm /private/tmp/node_modules/.bin/minidump_stackwalk is being gently removed
99 silly gentlyRm verifying /private/tmp is an npm working directory
100 silly gentlyRm containing path /private/tmp is under npm's control, in /private/tmp
101 silly gentlyRm deletion target /private/tmp/node_modules/.bin/minidump_stackwalk is under /private/tmp
102 verbose gentlyRm vacuuming from /private/tmp/node_modules/.bin/minidump_stackwalk up to /private/tmp
103 silly vacuum-fs removing /private/tmp/node_modules/.bin/minidump_stackwalk
104 silly vacuum-fs removing /private/tmp/node_modules/.bin
105 silly vacuum-fs quitting because other entries in /private/tmp/node_modules
106 info postuninstall [email protected]
107 silly gentlyRm /private/tmp/node_modules/minidump is being purged from base /private/tmp
108 verbose gentlyRm don't care about contents; nuking /private/tmp/node_modules/minidump
109 silly vacuum-fs purging /private/tmp/node_modules/minidump
110 silly vacuum-fs removing /private/tmp/node_modules
111 silly vacuum-fs finished vacuuming up to /private/tmp

Environment

$ env | egrep -iv "less_|ls_colors"
TMPDIR=/var/folders/4d/dzptf0zd72n0lnm4pqgdqvh98r091p/T/
LOGNAME=me
HOME=/Users/me
XPC_FLAGS=0x0
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.0oPz8r3k13/Render
LANG=en_US.UTF-8
TERM=xterm-256color
DISPLAY=/private/tmp/com.apple.launchd.Z7LSsSdTV9/org.macosforge.xquartz:0
USER=me
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.U45jA3kwhx/Listeners
KRB5CCNAME=FILE:/tmp/krb5cc_1367352374
XPC_SERVICE_NAME=0
TERM_PROGRAM=iTerm.app
SHELL=/usr/local/bin/zsh
ITERM_PROFILE=Default
PWD=/tmp
__CF_USER_TEXT_ENCODING=0x51802436:0x0:0x0
ITERM_SESSION_ID=w0t4p0
SHLVL=1
OLDPWD=/Users/me/source/atom/atom
MANPATH=/Users/me/anaconda/share/man:/usr/local/opt/coreutils/libexec/gnuman:
PYTHONPATH=:/usr/local/lib/python2.7/site-packages
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:
HOST=me-mac.wsm.local
PLATFORM=Darwin
PYTHONSTARTUP=/Users/me/.pythonrc.py
VIRTUAL_ENV_DISABLE_PROMPT=1
HISTFILE=/Users/me/.zsh_history.Darwin
HISTCONTROL=ignoredups:erasedups
TERMINAL_HISTORY_SIZE=100000
HISTSIZE=100000
HISTFILESIZE=100000
SAVEHIST=100000
CLICOLOR=1
GREP_OPTIONS=--color=auto
GREP_COLOR=7;35
EDITOR=vim
CVSEDITOR=vim
XEDITOR=vim
IGNOREEOF=0
OSXEDITOR=atom -w
PROMPT=$(_prompt_terminal_title)$(_prompt_first_line)
$(_prompt_second_line)$(_prompt_cursor)
RPROMPT=$(_prompt_usernote)
RSYNC_RSH=rsh
JAVA6_HOME=/Library/Java/Home
EC2_HOME=/usr/local/ec2/ec2-api-tools-1.7.1.1
ARCHFLAGS=-arch x86_64
MAVEN_OPTS=-Xmx1024m
ANACONDA_ROOT=/Users/me/anaconda
PYTHON_ENV=conda
ODBC_CONFIG=odbc_config
_=/usr/local/opt/coreutils/libexec/gnubin/env

won't install on freebsd 10

The package won't install on freebsd 10, it gives:

gyp: Dependency 'deps/breakpad/breakpad.gyp:dump_syms#target' not found while trying to load target binding.gyp:minidump#target
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:807:12)
gyp ERR! System FreeBSD 10.0-RELEASE
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/home/amarques/tmp/atom/build/node_modules/minidump
gyp ERR! node -v v0.10.28
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1

npm install error at latest version on Windows 10

  • node: v16.15.0 --LTS
  • yarn: 1.22.18
  • Windows: Windows 10, version 21H2, 19044.1706
mkdir install_minidump_demo
yarn init -y
yarn add minidump
yarn add v1.22.18
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
error C:\Users\bingzhang\devspace\install_minidump_demo\node_modules\minidump: Command failed.
Exit code: 1
Command: node build.js
Arguments:
Directory: C:\Users\bingzhang\devspace\install_minidump_demo\node_modules\minidump
Output:
C:\Users\bingzhang\devspace\install_minidump_demo\node_modules\minidump\build.js:24
  if (result.error) throw result.error
                    ^

Error: spawnSync C:\Users\bingzhang\devspace\install_minidump_demo\node_modules\minidump\deps\breakpad\configure ENOENT
    at Object.spawnSync (node:internal/child_process:1111:20)
    at Object.spawnSync (node:child_process:814:24)
    at spawnSync (C:\Users\bingzhang\devspace\install_minidump_demo\node_modules\minidump\build.js:23:31)
    at Object.<anonymous> (C:\Users\bingzhang\devspace\install_minidump_demo\node_modules\minidump\build.js:42:1)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47 {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawnSync C:\\Users\\bingzhang\\devspace\\install_minidump_demo\\node_modules\\minidump\\deps\\breakpad\\configure',
  path: 'C:\\Users\\bingzhang\\devspace\\install_minidump_demo\\node_modules\\minidump\\deps\\breakpad\\configure',
  spawnargs: []
}
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

image

The file node_modules\minidump\deps\breakpad\configure is exist:

image

Error building Atom on Linux

Hi guys,

I'm getting the following error when I try to build Atom using these instructions.

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: incorrect header check
    at Zlib._binding.onerror (zlib.js:295:17)
npm ERR! Linux 3.8.11
npm ERR! argv "node" "/home/henrywright/atom/build/node_modules/.bin/npm" "--userconfig=/home/henrywright/atom/.npmrc" "--target=0.10.35" "install" "--loglevel" "error"
npm ERR! node v0.10.25
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node ./script/download-node.js`
npm ERR! Exit status 8
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node ./script/download-node.js'.
npm ERR! This is most likely a problem with the atom-package-manager package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./script/download-node.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls atom-package-manager
npm ERR! There is likely additional logging output above.

The error log suggested I include the npm-debug.log file in any support request so here's the contents in a gist.

Hoping you can help.

Windows 10 installation failure

PS C:\Users\Administrator\Desktop\unexpected_exit> npm install minidump
npm ERR! code 128
npm ERR! path C:\Users\Administrator\Desktop\unexpected_exit\node_modules\minidump
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c yarn submodule && node build.js
npm ERR! yarn run v1.22.19
npm ERR! $ git submodule update --init --recursive
PS C:\Users\Administrator\Desktop\unexpected_exit> npm i electron-minidump
npm ERR! code 1
npm ERR! path C:\Users\Administrator\Desktop\unexpected_exit\node_modules\minidump
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node build.js
npm ERR! C:\Users\Administrator\Desktop\unexpected_exit\node_modules\minidump\build.js:24
npm ERR! if (result.error) throw result.error
npm ERR! ^
npm ERR!
npm ERR! Error: spawnSync C:\Users\Administrator\Desktop\unexpected_exit\node_modules\minidump\deps\breakpad\configure ENOENT
npm ERR! at Object.spawnSync (node:internal/child_process:1117:20)
npm ERR! at Object.spawnSync (node:child_process:871:24)
npm ERR! at spawnSync (C:\Users\Administrator\Desktop\unexpected_exit\node_modules\minidump\build.js:23:31)
npm ERR! at Object. (C:\Users\Administrator\Desktop\unexpected_exit\node_modules\minidump\build.js:42:1)
PS C:\Users\Administrator\Desktop\unexpected_exit> npm i electron-minidump@latest -S
npm ERR! code 1
npm ERR! path C:\Users\Administrator\Desktop\unexpected_exit\node_modules\minidump
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node build.js
npm ERR! C:\Users\Administrator\Desktop\unexpected_exit\node_modules\minidump\build.js:24
npm ERR! if (result.error) throw result.error
npm ERR! ^
npm ERR!
npm ERR! Error: spawnSync C:\Users\Administrator\Desktop\unexpected_exit\node_modules\minidump\deps\breakpad\configure ENOENT
npm ERR! at Object.spawnSync (node:internal/child_process:1117:20)
npm ERR! at Object.spawnSync (node:child_process:871:24)
npm ERR! at spawnSync (C:\Users\Administrator\Desktop\unexpected_exit\node_modules\minidump\build.js:23:31)
npm ERR! at Object. (C:\Users\Administrator\Desktop\unexpected_exit\node_modules\minidump\build.js:42:1)
npm ERR! at Module._compile (node:internal/modules/cjs/loader:1275:14)
npm ERR! at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
npm ERR! at Module.load (node:internal/modules/cjs/loader:1133:32)
npm ERR! at Module._load (node:internal/modules/cjs/loader:972:12)
npm ERR! at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
npm ERR! at node:internal/main/run_main_module:23:47 {
npm ERR! errno: -4058,
npm ERR! code: 'ENOENT',
npm ERR! syscall: 'spawnSync C:\Users\Administrator\Desktop\unexpected_exit\node_modules\minidump\deps\breakpad\configure',
npm ERR! path: 'C:\Users\Administrator\Desktop\unexpected_exit\node_modules\minidump\deps\breakpad\configure',
npm ERR! spawnargs: []
npm ERR! }
npm ERR!
npm ERR! Node.js v19.9.0

node-gyp build for minidump fails with KeyError

Traceback (most recent call last):
  File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in <module>
    sys.exit(gyp.script_main())
  File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 533, in script_main
    return main(sys.argv[1:])
  File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 526, in main
    return gyp_main(args)
  File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 502, in gyp_main
    params, options.check, options.circular_check)
  File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 129, in Load
    params['parallel'], params['root_targets'])
  File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 2756, in Load
    RemoveLinkDependenciesFromNoneTargets(targets)
  File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 1501, in RemoveLinkDependenciesFromNoneTargets
    if targets[t].get('variables', {}).get('link_dependency', 0):
KeyError: 'deps/breakpad/breakpad.gyp:dump_syms#target'

I also think you bundled some bad version of google-breakpad, with some .dll and .exe files in the repository.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.