Skip to content
This repository was archived by the owner on May 24, 2023. It is now read-only.

Won't install in Atom #297

@ilium007

Description

@ilium007

Won't install in Atom (current download, OSX)

> @serialport/[email protected] install /private/var/folders/00/gtf1vnjd4rbcddth6b7dspf80000gn/T/apm-install-dir-202231-68808-1l67a26.q12q/node_modules/pymakr/node_modules/@serialport/bindings-cpp
> node-gyp-build

  CXX(target) Release/obj.target/bindings/src/serialport.o
  CXX(target) Release/obj.target/bindings/src/serialport_unix.o
  CXX(target) Release/obj.target/bindings/src/poller.o

npm WARN deprecated [email protected]: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.
npm WARN deprecated [email protected]: renamed to @serialport/parser-byte-length
npm WARN deprecated [email protected]: reanmed to @serialport/parser-cctalk
npm WARN deprecated [email protected]: reanmed to @serialport/parser-delimiter
npm WARN deprecated [email protected]: reanmed to @serialport/parser-readline
npm WARN deprecated [email protected]: reanmed to @serialport/parser-regex
npm WARN deprecated [email protected]: reanmed to @serialport/parser-ready
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
../src/poller.cpp:108:7: error: no member named 'SetInstanceData' in 'Napi::Env'
  env.SetInstanceData<Napi::FunctionReference>(constructor);
  ~~~ ^
../src/poller.cpp:108:46: error: expected '(' for function-style cast or type construction
  env.SetInstanceData<Napi::FunctionReference>(constructor);
                      ~~~~~~~~~~~~~~~~~~~~~~~^
../src/poller.cpp:127:53: error: no member named 'GetInstanceData' in 'Napi::Env'
  Napi::FunctionReference* constructor = info.Env().GetInstanceData<Napi::FunctionReference>();
                                         ~~~~~~~~~~ ^
../src/poller.cpp:127:92: error: expected '(' for function-style cast or type construction
  Napi::FunctionReference* constructor = info.Env().GetInstanceData<Napi::FunctionReference>();
                                                                    ~~~~~~~~~~~~~~~~~~~~~~~^
../src/poller.cpp:127:94: error: expected expression
  Napi::FunctionReference* constructor = info.Env().GetInstanceData<Napi::FunctionReference>();
                                                                                             ^
5 errors generated.
make: *** [Release/obj.target/bindings/src/poller.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/private/var/folders/00/gtf1vnjd4rbcddth6b7dspf80000gn/T/apm-install-dir-202231-68808-1l67a26.q12q/node_modules/pymakr/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:223:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 21.2.0
gyp ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/private/var/folders/00/gtf1vnjd4rbcddth6b7dspf80000gn/T/apm-install-dir-202231-68808-1l67a26.q12q/node_modules/pymakr/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/var/folders/00/gtf1vnjd4rbcddth6b7dspf80000gn/T/apm-install-dir-202231-68808-1l67a26.q12q/node_modules/pymakr/node_modules/@serialport/bindings-cpp
gyp ERR! node -v v12.14.1
gyp ERR! node-gyp -v v6.1.0
gyp ERR! not ok 
npm WARN notsup Unsupported engine for @serialport/[email protected]: wanted: {"node":">=12.17.0 <13.0 || >=14.0.0"} (current: {"node":"12.14.1","npm":"6.14.13"})
npm WARN notsup Not compatible with your version of node/npm: @serialport/[email protected]
npm WARN notsup Unsupported engine for @serialport/[email protected]: wanted: {"node":"^12.22 || ^14.13 || >=16"} (current: {"node":"12.14.1","npm":"6.14.13"})
npm WARN notsup Not compatible with your version of node/npm: @serialport/[email protected]
npm WARN enoent ENOENT: no such file or directory, open '/private/var/folders/00/gtf1vnjd4rbcddth6b7dspf80000gn/T/apm-install-dir-202231-68808-1l67a26.q12q/package.json'
npm WARN apm-install-dir-202231-68808-1l67a26.q12q No description
npm WARN apm-install-dir-202231-68808-1l67a26.q12q No repository field.
npm WARN apm-install-dir-202231-68808-1l67a26.q12q No README data
npm WARN apm-install-dir-202231-68808-1l67a26.q12q No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @serialport/[email protected] install: `node-gyp-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @serialport/[email protected] 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