Getting apm to work on Windows, no Atom folder

自古美人都是妖i 提交于 2020-01-06 16:19:10

问题


I'd like to get apm working on Windows. I have Atom (1.2.4) installed.

I have read that Atom comes with apm, but people seem to point to:

C:\Users\[user]\AppData\Local\Atom\app\resources\app\apm\bin

I have no Atom folder in my Local folder.

Does that mean I don't have apm installed at all..?

I need to add the executable to my PATH variables so I can run it from a command line, but I don't know where apm is installed!


回答1:


Looks like it's here: C:\Program Files\Atom\resources\app\apm\bin.

There is a file called apm with no file extension that seems to be the apm command line utility.

The apm docs aren't much help, the Installing section just references a:

Atom > Install Shell Commands menu option

Which is a Mac thing, it doesn't exist on Windows.




回答2:


I am using Win7, installed Atom v1.15.0, the apm moved to C:\Users\{username}\AppData\Local\atom\bin.

You need to do:

1. Setting above path to Control Panel\All Control Panel Items\System\Advanced system setting\Environment Variables

2. Restart the Windows' cmd.exe window, and try installing a package apm install atom-beautify

Hope this helps


Btw, on Windows platform, you may encounter compilation error wile install a package required node-gyp if you haven't installed a C++ compiler.

Installing one can help you out by:

A. Execute this command (from here): npm install --global windows-build-tools

OR

B. Installing Visual C++ Build Tools (standalone C++ compiler, libraries and tools)



来源:https://stackoverflow.com/questions/37653281/getting-apm-to-work-on-windows-no-atom-folder

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!