Skip to content

npm install fails with TypeError: cannot use a string pattern on a bytes-like object #1

@pexarkh

Description

@pexarkh
> npm install

> node-zopfli-es@1.0.0 install /Users/tandemseven/development/t7/github/tandemseven--dra-web-frameworkless_git/node_modules/node-zopfli-es
> node-gyp rebuild

make: Entering directory '/Users/tandemseven/development/t7/github/tandemseven--dra-web-frameworkless_git/node_modules/node-zopfli-es/build'
  CC(target) Release/obj.target/nothing/../node-addon-api/src/nothing.o
  LIBTOOL-STATIC Release/nothing.a
Traceback (most recent call last):
  File "./gyp-mac-tool", line 611, in <module>
    sys.exit(main(sys.argv[1:]))
  File "./gyp-mac-tool", line 28, in main
    exit_code = executor.Dispatch(args)
  File "./gyp-mac-tool", line 43, in Dispatch
    return getattr(self, method)(*args[1:])
  File "./gyp-mac-tool", line 246, in ExecFilterLibtool
    if not libtool_re.match(line) and not libtool_re5.match(line):
TypeError: cannot use a string pattern on a bytes-like object
make: *** [../node-addon-api/src/nothing.target.mk:156: Release/nothing.a] Error 1
make: Leaving directory '/Users/tandemseven/development/t7/github/tandemseven--dra-web-frameworkless_git/node_modules/node-zopfli-es/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/tandemseven/.nvm/versions/node/v8.11.3/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/Users/tandemseven/.nvm/versions/node/v8.11.3/bin/node" "/Users/tandemseven/.nvm/versions/node/v8.11.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/tandemseven/development/t7/github/tandemseven--dra-web-frameworkless_git/node_modules/node-zopfli-es
gyp ERR! node -v v8.11.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-zopfli-es@1.0.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-zopfli-es@1.0.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions