Giter Site home page Giter Site logo

get-cursor-position's Introduction

get-cursor-position

Get the cursor's current position in your terminal.

MIT License Package Quality

Install

$ npm install get-cursor-position --save

Usage

Async:

var getCursorPosition = require('get-cursor-position');

getCursorPosition.async(function(pos) {
    console.log('row: ' + pos.row);
    console.log('col: ' + pos.col);
});

Sync:

var getCursorPosition = require('get-cursor-position');
var pos = getCursorPosition.sync();
console.log('row: ' + pos.row);
console.log('col: ' + pos.col);

Contributing

Pull requests and stars are highly welcome.

For bugs and feature requests, please create an issue.

get-cursor-position's People

Contributors

bubkoo avatar cravler avatar joaocgreis 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

Watchers

 avatar  avatar  avatar  avatar

get-cursor-position's Issues

Publish to npm?

I found you fix some bug within this repo.
Maybe publish to npm?

case issue

"Release" is "release", so on unix case sensitive file systems, it won't run unless you patch your index.js

Build failed at the [email protected] install script 'node-gyp rebuild'.

On Windows 10 installing via git bash shell

node v4.4.7
npm v2.15.8

  • Build failed running npm install get-cursor-position
  • In an elevated cmd.exe shell ran npm install --global --production windows-build-tools which succeeded.
  • Tried again: npm install get-cursor-position but it still failed.

Command line output:

C:\Users\mmcintyre\.node-gyp\4.4.7\include\node\v8.h(18): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory [C:\Users\mmcintyre\node_modules\get-cursor-position\build\pos.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\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 Windows_NT 10.0.15063
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\mmcintyre\node_modules\get-cursor-position
gyp ERR! node -v v4.4.7
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "get-cursor-position"
npm ERR! node v4.4.7
npm ERR! npm  v2.15.8
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 get-cursor-position 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 get-cursor-position
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls get-cursor-position
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\mmcintyre\npm-debug.log

npm-debug.log:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   'get-cursor-position' ]
2 info using [email protected]
3 info using [email protected]
4 verbose config Skipping project config: C:\Users\mmcintyre/.npmrc. (matches userconfig)
5 verbose install initial load of C:\Users\mmcintyre\package.json
6 verbose installManyTop reading scoped package data from C:\Users\mmcintyre\node_modules\bluebird\package.json
7 verbose installManyTop reading scoped package data from C:\Users\mmcintyre\node_modules\colors\package.json
8 verbose installManyTop reading scoped package data from C:\Users\mmcintyre\node_modules\https\package.json
9 verbose installManyTop reading scoped package data from C:\Users\mmcintyre\node_modules\https-browserify\package.json
10 verbose installManyTop reading scoped package data from C:\Users\mmcintyre\node_modules\mocha\package.json
11 verbose installManyTop reading scoped package data from C:\Users\mmcintyre\node_modules\pryjs\package.json
12 verbose installManyTop reading scoped package data from C:\Users\mmcintyre\node_modules\request\package.json
13 verbose installManyTop reading scoped package data from C:\Users\mmcintyre\node_modules\request-promise\package.json
14 verbose installManyTop reading scoped package data from C:\Users\mmcintyre\node_modules\selenium-webdriver\package.json
15 verbose installManyTop reading scoped package data from C:\Users\mmcintyre\node_modules\then-request\package.json
16 verbose installManyTop reading scoped package data from C:\Users\mmcintyre\node_modules\wd\package.json
17 info package.json [email protected] https is also the name of a node core module.
18 info package.json [email protected] No repository field.
19 info package.json [email protected] No README data
20 verbose readDependencies loading dependencies from C:\Users\mmcintyre\package.json
21 silly cache add args [ 'get-cursor-position', null ]
22 verbose cache add spec get-cursor-position
23 silly cache add parsed spec Result {
23 silly cache add   raw: 'get-cursor-position',
23 silly cache add   scope: null,
23 silly cache add   name: 'get-cursor-position',
23 silly cache add   rawSpec: '',
23 silly cache add   spec: 'latest',
23 silly cache add   type: 'tag' }
24 silly addNamed get-cursor-position@latest
25 verbose addNamed "latest" is being treated as a dist-tag for get-cursor-position
26 info addNameTag [ 'get-cursor-position', 'latest' ]
27 silly mapToRegistry name get-cursor-position
28 silly mapToRegistry using default registry
29 silly mapToRegistry registry https://registry.npmjs.org/
30 silly mapToRegistry data Result {
30 silly mapToRegistry   raw: 'get-cursor-position',
30 silly mapToRegistry   scope: null,
30 silly mapToRegistry   name: 'get-cursor-position',
30 silly mapToRegistry   rawSpec: '',
30 silly mapToRegistry   spec: 'latest',
30 silly mapToRegistry   type: 'tag' }
31 silly mapToRegistry uri https://registry.npmjs.org/get-cursor-position
32 verbose addNameTag registry:https://registry.npmjs.org/get-cursor-position not in flight; fetching
33 verbose request uri https://registry.npmjs.org/get-cursor-position
34 verbose request no auth needed
35 info attempt registry request try #1 at 3:58:47 PM
36 verbose request id ca79974c6a939c00
37 verbose etag W/"598d1353-387f"
38 verbose lastModified Fri, 11 Aug 2017 02:15:47 GMT
39 http request GET https://registry.npmjs.org/get-cursor-position
40 http 304 https://registry.npmjs.org/get-cursor-position
41 verbose headers { date: 'Sat, 02 Sep 2017 19:58:47 GMT',
41 verbose headers   via: '1.1 varnish',
41 verbose headers   'cache-control': 'max-age=300',
41 verbose headers   etag: 'W/"598d1353-387f"',
41 verbose headers   age: '0',
41 verbose headers   connection: 'keep-alive',
41 verbose headers   'x-served-by': 'cache-dfw1845-DFW',
41 verbose headers   'x-cache': 'HIT',
41 verbose headers   'x-cache-hits': '1',
41 verbose headers   'x-timer': 'S1504382328.998927,VS0,VE162',
41 verbose headers   vary: 'Accept-Encoding, Accept' }
42 silly get cb [ 304,
42 silly get   { date: 'Sat, 02 Sep 2017 19:58:47 GMT',
42 silly get     via: '1.1 varnish',
42 silly get     'cache-control': 'max-age=300',
42 silly get     etag: 'W/"598d1353-387f"',
42 silly get     age: '0',
42 silly get     connection: 'keep-alive',
42 silly get     'x-served-by': 'cache-dfw1845-DFW',
42 silly get     'x-cache': 'HIT',
42 silly get     'x-cache-hits': '1',
42 silly get     'x-timer': 'S1504382328.998927,VS0,VE162',
42 silly get     vary: 'Accept-Encoding, Accept' } ]
43 verbose etag https://registry.npmjs.org/get-cursor-position from cache
44 verbose get saving get-cursor-position to C:\Users\mmcintyre\AppData\Roaming\npm-cache\registry.npmjs.org\get-cursor-position\.cache.json
45 verbose correctMkdir C:\Users\mmcintyre\AppData\Roaming\npm-cache correctMkdir not in flight; initializing
46 silly addNameTag next cb for get-cursor-position with tag latest
47 silly addNamed [email protected]
48 verbose addNamed "1.0.5" is a plain semver version for get-cursor-position
49 silly cache afterAdd [email protected]
50 verbose afterAdd C:\Users\mmcintyre\AppData\Roaming\npm-cache\get-cursor-position\1.0.5\package\package.json not in flight; writing
51 verbose correctMkdir C:\Users\mmcintyre\AppData\Roaming\npm-cache correctMkdir not in flight; initializing
52 verbose afterAdd C:\Users\mmcintyre\AppData\Roaming\npm-cache\get-cursor-position\1.0.5\package\package.json written
53 silly install resolved [ { name: 'get-cursor-position',
53 silly install resolved     version: '1.0.5',
53 silly install resolved     description: 'Get the cursor\'s current position in your terminal.',
53 silly install resolved     main: 'index.js',
53 silly install resolved     scripts:
53 silly install resolved      { test: 'echo "Error: no test specified" && exit 1',
53 silly install resolved        install: 'node-gyp rebuild' },
53 silly install resolved     keywords: [ 'terminal', 'console', 'cursor', 'position', 'ansi', 'escape' ],
53 silly install resolved     author: { name: 'bubkoo', email: '[email protected]' },
53 silly install resolved     license: 'MIT',
53 silly install resolved     repository:
53 silly install resolved      { type: 'git',
53 silly install resolved        url: 'git+https://github.com/bubkoo/get-cursor-position.git' },
53 silly install resolved     bugs: { url: 'https://github.com/bubkoo/get-cursor-position/issues' },
53 silly install resolved     homepage: 'https://github.com/bubkoo/get-cursor-position',
53 silly install resolved     gypfile: true,
53 silly install resolved     gitHead: 'f52e2de2e70f52a2855e958e5088335f9bc15ff3',
53 silly install resolved     _id: '[email protected]',
53 silly install resolved     _shasum: '1558c35aa056726eae704d5590aeaa5945989f5a',
53 silly install resolved     _from: 'get-cursor-position@latest',
53 silly install resolved     _npmVersion: '3.10.10',
53 silly install resolved     _nodeVersion: '6.9.4',
53 silly install resolved     _npmUser: { name: 'bubkoo', email: '[email protected]' },
53 silly install resolved     dist:
53 silly install resolved      { shasum: '1558c35aa056726eae704d5590aeaa5945989f5a',
53 silly install resolved        tarball: 'https://registry.npmjs.org/get-cursor-position/-/get-cursor-position-1.0.5.tgz' },
53 silly install resolved     maintainers: [ [Object] ],
53 silly install resolved     _npmOperationalInternal:
53 silly install resolved      { host: 's3://npm-registry-packages',
53 silly install resolved        tmp: 'tmp/get-cursor-position-1.0.5.tgz_1502417747073_0.7977955581154674' },
53 silly install resolved     directories: {},
53 silly install resolved     _resolved: 'https://registry.npmjs.org/get-cursor-position/-/get-cursor-position-1.0.5.tgz',
53 silly install resolved     readme: 'ERROR: No README data found!' } ]
54 info install [email protected] into C:\Users\mmcintyre
55 info installOne [email protected]
56 verbose installOne of get-cursor-position to C:\Users\mmcintyre not in flight; installing
57 verbose correctMkdir C:\Users\mmcintyre\AppData\Roaming\npm-cache\_locks correctMkdir not in flight; initializing
58 verbose lock using C:\Users\mmcintyre\AppData\Roaming\npm-cache\_locks\get-cursor-position-0d7b08b8e77b452d.lock for C:\Users\mmcintyre\node_modules\get-cursor-position
59 silly install write writing get-cursor-position 1.0.5 to C:\Users\mmcintyre\node_modules\get-cursor-position
60 verbose unbuild node_modules\get-cursor-position
61 silly gentlyRm C:\Users\mmcintyre\node_modules\get-cursor-position is being purged from base C:\Users\mmcintyre
62 verbose gentlyRm don't care about contents; nuking C:\Users\mmcintyre\node_modules\get-cursor-position
63 verbose tar unpack C:\Users\mmcintyre\AppData\Roaming\npm-cache\get-cursor-position\1.0.5\package.tgz
64 verbose tar unpacking to C:\Users\mmcintyre\node_modules\get-cursor-position
65 silly gentlyRm C:\Users\mmcintyre\node_modules\get-cursor-position is being purged
66 verbose gentlyRm don't care about contents; nuking C:\Users\mmcintyre\node_modules\get-cursor-position
67 silly gunzTarPerm modes [ '777', '666' ]
68 silly gunzTarPerm extractEntry package.json
69 silly gunzTarPerm modified mode [ 'package.json', 420, 438 ]
70 silly gunzTarPerm extractEntry README.md
71 silly gunzTarPerm modified mode [ 'README.md', 420, 438 ]
72 silly gunzTarPerm extractEntry LICENSE
73 silly gunzTarPerm modified mode [ 'LICENSE', 420, 438 ]
74 silly gunzTarPerm extractEntry index.js
75 silly gunzTarPerm modified mode [ 'index.js', 420, 438 ]
76 silly gunzTarPerm extractEntry binding.gyp
77 silly gunzTarPerm modified mode [ 'binding.gyp', 420, 438 ]
78 silly gunzTarPerm extractEntry src/pos.cc
79 silly gunzTarPerm modified mode [ 'src/pos.cc', 420, 438 ]
80 verbose write writing to C:\Users\mmcintyre\node_modules\get-cursor-position\package.json
81 info preinstall [email protected]
82 verbose readDependencies loading dependencies from C:\Users\mmcintyre\node_modules\get-cursor-position\package.json
83 verbose readDependencies loading dependencies from C:\Users\mmcintyre\node_modules\get-cursor-position\package.json
84 silly install resolved []
85 verbose about to build C:\Users\mmcintyre\node_modules\get-cursor-position
86 info build C:\Users\mmcintyre\node_modules\get-cursor-position
87 info linkStuff [email protected]
88 silly linkStuff [email protected] has C:\Users\mmcintyre\node_modules as its parent node_modules
89 verbose linkBins [email protected]
90 verbose linkMans [email protected]
91 verbose rebuildBundles [email protected]
92 info install [email protected]
93 verbose unsafe-perm in lifecycle true
94 info [email protected] Failed to exec install script
95 verbose unlock done using C:\Users\mmcintyre\AppData\Roaming\npm-cache\_locks\get-cursor-position-0d7b08b8e77b452d.lock for C:\Users\mmcintyre\node_modules\get-cursor-position
96 verbose stack Error: [email protected] install: `node-gyp rebuild`
96 verbose stack Exit status 1
96 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:217:16)
96 verbose stack     at emitTwo (events.js:87:13)
96 verbose stack     at EventEmitter.emit (events.js:172:7)
96 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:24:14)
96 verbose stack     at emitTwo (events.js:87:13)
96 verbose stack     at ChildProcess.emit (events.js:172:7)
96 verbose stack     at maybeClose (internal/child_process.js:827:16)
96 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
97 verbose pkgid [email protected]
98 verbose cwd C:\Users\mmcintyre
99 error Windows_NT 10.0.15063
100 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "get-cursor-position"
101 error node v4.4.7
102 error npm  v2.15.8
103 error code ELIFECYCLE
104 error [email protected] install: `node-gyp rebuild`
104 error Exit status 1
105 error Failed at the [email protected] install script 'node-gyp rebuild'.
105 error This is most likely a problem with the get-cursor-position package,
105 error not with npm itself.
105 error Tell the author that this fails on your system:
105 error     node-gyp rebuild
105 error You can get information on how to open an issue for this project with:
105 error     npm bugs get-cursor-position
105 error Or if that isn't available, you can get their info via:
105 error
105 error     npm owner ls get-cursor-position
105 error There is likely additional logging output above.
106 verbose exit [ 1, true ]
107 verbose unbuild node_modules\get-cursor-position
108 info preuninstall [email protected]
109 info uninstall [email protected]
110 verbose unbuild rmStuff [email protected] from C:\Users\mmcintyre\node_modules
111 info postuninstall [email protected]
112 silly gentlyRm C:\Users\mmcintyre\node_modules\get-cursor-position is being purged from base C:\Users\mmcintyre
113 verbose gentlyRm don't care about contents; nuking C:\Users\mmcintyre\node_modules\get-cursor-position
114 silly vacuum-fs purging C:\Users\mmcintyre\node_modules\get-cursor-position
115 silly vacuum-fs quitting because other entries in C:\Users\mmcintyre\node_modules

[Windows] dwCursorPosition.Y returns row in history

dwCursorPosition.Y returns the current row position in the terminal's history. So if I have a terminal with a history greater than the size of the window, and the current row in the terminal buffer exceeds the size of the window, too, then the current row on the screen will never be accurate.

Any ideas how to work around that problem? I'm having trouble figuring it out. The Window's APIs don't really seem to care about where you land in the terminal window, just the buffer.

build failing

I got this recently, know anything about it?

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 get-cursor-position 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 get-cursor-position
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls get-cursor-position
npm ERR! There is likely additional logging output above.

node-gyp warnings, I believe for this module

Hi there, I get these warnings when running npm install, they appear to be related to this library

> [email protected] install /Users/Olegzandr/suman-test/suman-test-projects/node_modules/get-cursor-position
> 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
  CXX(target) Release/obj.target/pos/src/pos.o
  SOLINK_MODULE(target) Release/pos.node

> [email protected] install /Users/Olegzandr/suman-test/suman-test-projects/node_modules/raw-socket
> 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
  CXX(target) Release/obj.target/raw/src/raw.o
../src/raw.cc:70:33: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
        uint32_t start_with = info[0]->ToUint32 ()->Value ();
                                       ^
/Users/Olegzandr/.node-gyp/7.2.0/include/node/v8.h:8436:22: note: 'ToUint32' has been explicitly marked deprecated here
Local<Uint32> Value::ToUint32() const {
                     ^
../src/raw.cc:92:21: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
                offset = info[2]->ToUint32 ()->Value ();
                                  ^
/Users/Olegzandr/.node-gyp/7.2.0/include/node/v8.h:8436:22: note: 'ToUint32' has been explicitly marked deprecated here
Local<Uint32> Value::ToUint32() const {
                     ^
../src/raw.cc:104:38: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
                unsigned int new_length = info[3]->ToUint32 ()->Value ();
                                                   ^
/Users/Olegzandr/.node-gyp/7.2.0/include/node/v8.h:8436:22: note: 'ToUint32' has been explicitly marked deprecated here
Local<Uint32> Value::ToUint32() const {
                     ^
../src/raw.cc:133:33: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
        unsigned int number = info[0]->ToUint32 ()->Value ();
                                       ^
/Users/Olegzandr/.node-gyp/7.2.0/include/node/v8.h:8436:22: note: 'ToUint32' has been explicitly marked deprecated here
Local<Uint32> Value::ToUint32() const {
                     ^
../src/raw.cc:152:33: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
        unsigned int number = info[0]->ToUint32 ()->Value ();
                                       ^
/Users/Olegzandr/.node-gyp/7.2.0/include/node/v8.h:8436:22: note: 'ToUint32' has been explicitly marked deprecated here
Local<Uint32> Value::ToUint32() const {
                     ^
../src/raw.cc:177:33: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
        unsigned int number = info[0]->ToUint32 ()->Value ();
                                       ^
/Users/Olegzandr/.node-gyp/7.2.0/include/node/v8.h:8436:22: note: 'ToUint32' has been explicitly marked deprecated here
Local<Uint32> Value::ToUint32() const {
                     ^
../src/raw.cc:196:33: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
        unsigned int number = info[0]->ToUint32 ()->Value ();
                                       ^
/Users/Olegzandr/.node-gyp/7.2.0/include/node/v8.h:8436:22: note: 'ToUint32' has been explicitly marked deprecated here
Local<Uint32> Value::ToUint32() const {
                     ^
../src/raw.cc:377:23: warning: 'ToInt32' is deprecated [-Wdeprecated-declarations]
        int level = info[0]->ToInt32 ()->Value ();
                             ^
/Users/Olegzandr/.node-gyp/7.2.0/include/node/v8.h:8442:21: note: 'ToInt32' has been explicitly marked deprecated here
Local<Int32> Value::ToInt32() const {
                    ^
../src/raw.cc:378:24: warning: 'ToInt32' is deprecated [-Wdeprecated-declarations]
        int option = info[1]->ToInt32 ()->Value ();
                              ^
/Users/Olegzandr/.node-gyp/7.2.0/include/node/v8.h:8442:21: note: 'ToInt32' has been explicitly marked deprecated here
Local<Int32> Value::ToInt32() const {
                    ^
../src/raw.cc:461:32: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
                socket->protocol_ = info[0]->ToUint32 ()->Value ();
                                             ^
/Users/Olegzandr/.node-gyp/7.2.0/include/node/v8.h:8436:22: note: 'ToUint32' has been explicitly marked deprecated here
Local<Uint32> Value::ToUint32() const {
                     ^
../src/raw.cc:469:17: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
                        if (info[1]->ToUint32 ()->Value () == 2)
                                     ^
/Users/Olegzandr/.node-gyp/7.2.0/include/node/v8.h:8436:22: note: 'ToUint32' has been explicitly marked deprecated here
Local<Uint32> Value::ToUint32() const {
                     ^
../src/raw.cc:651:20: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
        offset = info[1]->ToUint32 ()->Value ();
                          ^
/Users/Olegzandr/.node-gyp/7.2.0/include/node/v8.h:8436:22: note: 'ToUint32' has been explicitly marked deprecated here
Local<Uint32> Value::ToUint32() const {
                     ^
../src/raw.cc:652:20: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
        length = info[2]->ToUint32 ()->Value ();
                          ^
/Users/Olegzandr/.node-gyp/7.2.0/include/node/v8.h:8436:22: note: 'ToUint32' has been explicitly marked deprecated here
Local<Uint32> Value::ToUint32() const {
                     ^
../src/raw.cc:715:23: warning: 'ToInt32' is deprecated [-Wdeprecated-declarations]
        int level = info[0]->ToInt32 ()->Value ();
                             ^
/Users/Olegzandr/.node-gyp/7.2.0/include/node/v8.h:8442:21: note: 'ToInt32' has been explicitly marked deprecated here
Local<Int32> Value::ToInt32() const {
                    ^
../src/raw.cc:716:24: warning: 'ToInt32' is deprecated [-Wdeprecated-declarations]
        int option = info[1]->ToInt32 ()->Value ();
                              ^
/Users/Olegzandr/.node-gyp/7.2.0/include/node/v8.h:8442:21: note: 'ToInt32' has been explicitly marked deprecated here
Local<Int32> Value::ToInt32() const {
                    ^
../src/raw.cc:735:18: warning: 'ToInt32' is deprecated [-Wdeprecated-declarations]
                len = info[3]->ToInt32 ()->Value ();
                               ^
/Users/Olegzandr/.node-gyp/7.2.0/include/node/v8.h:8442:21: note: 'ToInt32' has been explicitly marked deprecated here
Local<Int32> Value::ToInt32() const {
                    ^
../src/raw.cc:747:19: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
                ival = info[2]->ToUint32 ()->Value ();
                                ^
/Users/Olegzandr/.node-gyp/7.2.0/include/node/v8.h:8436:22: note: 'ToUint32' has been explicitly marked deprecated here
Local<Uint32> Value::ToUint32() const {
                     ^
17 warnings generated.
  SOLINK_MODULE(target) Release/raw.node

SyntaxError: invalid syntax - Issue with Python 3?

It seems there is an issue with python.

gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Program Files (x86)\Python38-32\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                       ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:289:12)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:962:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd T:\matchmycolor\issues\COL-7838_Ui_Tests\load_tests\node_modules\get-cursor-position
gyp ERR! node -v v10.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
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 probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\myuser\AppData\Roaming\npm-cache\_logs\2019-10-28T07_37_26_586Z-debug.log

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.