Install package dependencies in Atom

I added the following to my package.json file:

 "dependencies": { "linter": "1.11.4" } 

But how can I establish this dependency?

+8
npm atom-editor
source share
2 answers

After you have updated your packages.json and saved the file, you can install the dependencies by running Update Package Dependencies: Update :

  • Press Ctrl - Shift - P to open the command palette.
  • Enter u P d u which Update Package Dependencies: Update should select
  • Press Enter

Package Dependency Update: Update

If you are going to do a lot of this, you can take one more step and add a key binding:

 'atom-workspace': 'ctrl-alt-shift-u': 'update-package-dependencies:update' 
+13
source share

You install your package, then Atom / npm takes care of installing the dependencies.

https://discuss.atom.io/t/load-developing-package/2554/4

When you start Atom, it downloads packages from different directories. When you open it in developer mode, it loads additional packages from ~/.atom/dev/packages , so the first thing to do is move / symbolize your package to this directory.

Then you can go to your new package directory and run atom -d . to create a new atom window in developer mode and automatically add your package as a project directory.

Then you can run apm install to update your dependencies.

+1
source share

All Articles