Reputation: 731
I'm having issues installing emmet.io as a package on Atom Text Editor (Win7 x64).
Any idea of how I could do this?
I get always an error message
`npm http GET https://registry.npmjs.org/emmet
npm http 304 https://registry.npmjs.org/emmet
npm http GET https://registry.npmjs.org/requirejs
npm http 304 https://registry.npmjs.org/requirejs
npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.`
`npm ERR! System Windows_NT 6.1.7601
npm ERR! command "c:\\Users\\USERNAME\\Desktop\\Atom\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe" "c:\\Users\\USERNAME\\Desktop\\Atom\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "c:\\Users\\USERNAME\\Desktop\\Atom\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc" "--userconfig" "C:\\Users\\OMARSERVICE\\.atom\\.apmrc" "install" "C:\\Users\\USERNAME\\.atom\\.node-gyp\\.atom\\.apm\\emmet\\2.1.3\\package.tgz" "--target=0.11.13" "--arch=ia32" "--msvs_version=2012"
npm ERR! cwd C:\Users\USERNAME~1\AppData\Local\Temp\apm-install-dir-114726-7860-1j2mfss
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! code ENOGIT`
Upvotes: 4
Views: 6514
Reputation: 1
I have the same problem. I solved it this way: install git 2.1.3 from repo, then copy&paste the path of bin git into C:\Program Files (x86)\Git\bin
insdide of path on environment variables. After reboot your PC , open atom text edit and search in settings -> package, write emmet
, click on button, install it and now it works, emmet is installed.
Upvotes: 0
Reputation: 379
If you have GIT installed on your computer you most likely need to go to your Control Panel\System and Security\System Click on Advanced system setting click on Environment Variables and under system NOT USER variables select the Path variable and click edit and add C:\Program Files (x86)\Git\bin;(or where ever your git.exe file exists) to the string.
Upvotes: 0
Reputation: 54437
In your question, Atom/apm/npm is complaining about not being able to find the git
command. It needs the git
executable to install the package from Github.
To fix this, you need to make sure that
git
executable is on your pathUpvotes: 0
Reputation: 731
OK, I found a solution of how install any package on Atom.io
Instruction for Windows 7 (x32/x64)
Note: Make sure Atom.io is closed.
cd ~/.atom/packages
git clone https://github.com/emmetio/emmet-atom
or whatever package you are looking forward to install (figure #2)cd emmet-atom
(figure #3)npm install
(figure #4)You can follow this instructions by any package as long its GitHub like this https://github.com/github-user/package-name
. In short copy the url of your appropriate package.
That's it!!
Screenshots:
Upvotes: 1