Skip to content

Instantly share code, notes, and snippets.

@MarkL4YG
Created January 8, 2019 10:52
Show Gist options
  • Save MarkL4YG/d1b414853db3ead09296f60fd05831bf to your computer and use it in GitHub Desktop.
Save MarkL4YG/d1b414853db3ead09296f60fd05831bf to your computer and use it in GitHub Desktop.
tree-sitter-cli installation errors
$ npm i -g tree-sitter-cli vue-cli
npm WARN deprecated [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
C:\Users\life4\AppData\Roaming\npm\tree-sitter -> C:\Users\life4\AppData\Roaming\npm\node_modules\tree-sitter-cli\cli.
C:\Users\life4\AppData\Roaming\npm\vue -> C:\Users\life4\AppData\Roaming\npm\node_modules\vue-cli\bin\vue
C:\Users\life4\AppData\Roaming\npm\vue-list -> C:\Users\life4\AppData\Roaming\npm\node_modules\vue-cli\bin\vue-list
C:\Users\life4\AppData\Roaming\npm\vue-init -> C:\Users\life4\AppData\Roaming\npm\node_modules\vue-cli\bin\vue-init
> [email protected] install C:\Users\life4\AppData\Roaming\npm\node_modules\tree-sitter-cli\node_modules\tree-sitter
> prebuild-install || node-gyp rebuild
> [email protected] install C:\Users\life4\AppData\Roaming\npm\node_modules\tree-sitter-cli
> node-gyp rebuild
C:\Users\life4\AppData\Roaming\npm\node_modules\tree-sitter-cli>if not defined npm_config_node_gyp (node "C:\Users\lifa\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" r else (node "C:\Users\life4\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Program Files\Python36\python.EXE -c import sys; print "%s.%s.%s" % sys.versi3];
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:294: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.17763
gyp ERR! command "D:\\tools\\nodejs\\node.exe" "C:\\Users\\life4\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modulgyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\life4\AppData\Roaming\npm\node_modules\tree-sitter-cli
gyp ERR! node -v v10.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
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\life4\AppData\Roaming\npm-cache\_logs\2019-01-08T10_37_40_372Z-debug.log
$ node -v
v10.15.0
$ npm -v
6.5.0
$ python --version
Python 3.6.8
Windows 10 64-bit
Version 10.0.17763 Build 17763
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment