lukemurray / data-atom

Query and manage data sources from Atom
MIT License
152 stars 36 forks source link

Error installing data-atom package #194

Closed 2shashank11 closed 3 years ago

2shashank11 commented 3 years ago

Annotation 2020-12-29 014226 I keep getting this error while installing data-atom. I tried installing it from atom package installer and cmd also but same thing happens again and again.

2shashank11 commented 3 years ago

### Here is the complete log of this run-

0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli 'C:\\Users\\Shashank\\AppData\\Local\\atom\\app-1.53.0\\resources\\app\\apm\\bin\\node.exe', 1 verbose cli 'C:\\Users\\Shashank\\AppData\\Local\\atom\\app-1.53.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli '--globalconfig', 1 verbose cli 'C:\\Users\\Shashank\\.atom\\.apm\\.apmrc', 1 verbose cli '--userconfig', 1 verbose cli 'C:\\Users\\Shashank\\.atom\\.apmrc', 1 verbose cli 'install', 1 verbose cli 'https://www.atom.io/api/packages/data-atom/versions/0.29.1/tarball', 1 verbose cli '--target=6.1.12', 1 verbose cli '--disturl=https://atom.io/download/electron', 1 verbose cli '--arch=x64', 1 verbose cli '--global-style' 1 verbose cli ] 2 info using npm@6.14.8 3 info using node@v12.4.0 4 verbose npm-session a7b898f90cac91f7 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 http fetch GET 304 https://codeload.github.com/lukemurray/data-atom/legacy.tar.gz/v0.29.1 3928ms (from cache) 8 silly pacote remote manifest for undefined@https://www.atom.io/api/packages/data-atom/versions/0.29.1/tarball fetched in 4168ms 9 timing stage:loadCurrentTree Completed in 4212ms 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 0ms 15 silly install loadAllDepsIntoIdealTree 16 silly resolveWithNewModule data-atom@0.29.1 checking installable status 17 silly fetchPackageMetaData error for pg@git+https://github.com/lukemurray/node-postgres.git#master Error while executing: 17 silly fetchPackageMetaData undefined ls-remote -h -t https://github.com/lukemurray/node-postgres.git 17 silly fetchPackageMetaData 17 silly fetchPackageMetaData 17 silly fetchPackageMetaData spawn git ENOENT 18 http fetch GET 304 https://registry.npmjs.org/mssql 1121ms (from cache) 19 http fetch GET 304 https://registry.npmjs.org/season 1049ms (from cache) 20 http fetch GET 304 https://registry.npmjs.org/etch 1157ms (from cache) 21 silly pacote version manifest for mssql@3.3.0 fetched in 1166ms 22 silly resolveWithNewModule mssql@3.3.0 checking installable status 23 http fetch GET 304 https://registry.npmjs.org/underscore.string 1088ms (from cache) 24 http fetch GET 304 https://registry.npmjs.org/mysql 1168ms (from cache) 25 silly pacote version manifest for mysql@2.14.1 fetched in 1177ms 26 silly resolveWithNewModule mysql@2.14.1 checking installable status 27 silly pacote version manifest for season@5.4.1 fetched in 1104ms 28 silly resolveWithNewModule season@5.4.1 checking installable status 29 silly pacote version manifest for underscore.string@2.4.0 fetched in 1112ms 30 silly resolveWithNewModule underscore.string@2.4.0 checking installable status 31 silly pacote version manifest for etch@0.12.7 fetched in 1215ms 32 silly resolveWithNewModule etch@0.12.7 checking installable status 33 http fetch GET 304 https://registry.npmjs.org/dom-listener 2107ms (from cache) 34 silly pacote version manifest for dom-listener@0.1.2 fetched in 2115ms 35 silly resolveWithNewModule dom-listener@0.1.2 checking installable status 36 timing stage:rollbackFailedOptional Completed in 0ms 37 timing stage:runTopLevelLifecycles Completed in 6345ms 38 silly saveTree apm-install-dir-20201129-17880-1dmn2p1.xyr4 38 silly saveTree-- data-atom@0.29.1 38 silly saveTree +-- dom-listener@0.1.2 38 silly saveTree +-- etch@0.12.7 38 silly saveTree +-- mssql@3.3.0 38 silly saveTree +-- mysql@2.14.1 38 silly saveTree +-- season@5.4.1 38 silly saveTree -- underscore.string@2.4.0 39 verbose stack Error: spawn git ENOENT 39 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19) 39 verbose stack at onErrorNT (internal/child_process.js:456:16) 39 verbose stack at processTicksAndRejections (internal/process/task_queues.js:84:9) 40 verbose cwd C:\Users\Shashank\AppData\Local\Temp\apm-install-dir-20201129-17880-1dmn2p1.xyr4 41 verbose Windows_NT 10.0.19042 42 verbose argv "C:\\Users\\Shashank\\AppData\\Local\\atom\\app-1.53.0\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\Shashank\\AppData\\Local\\atom\\app-1.53.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\Shashank\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\Shashank\\.atom\\.apmrc" "install" "https://www.atom.io/api/packages/data-atom/versions/0.29.1/tarball" "--target=6.1.12" "--disturl=https://atom.io/download/electron" "--arch=x64" "--global-style" 43 verbose node v12.4.0 44 verbose npm v6.14.8 45 error code ENOENT 46 error syscall spawn git 47 error path git 48 error errno ENOENT 49 error enoent Error while executing: 49 error enoent undefined ls-remote -h -t https://github.com/lukemurray/node-postgres.git 49 error enoent 49 error enoent 49 error enoent spawn git ENOENT 50 error enoent This is related to npm not being able to find a file. 51 verbose exit [ 1, true ]

2shashank11 commented 3 years ago

Ok I searched a lot about this issue and found that it occurred because of not having Git installed on my PC. you can try installing Git from here and then reinstalling Data-atom from Atom editor.