I've added the following into my package.json
file:
"dependencies": {
"linter": "1.11.4"
}
But how do I actually get this dependency installed?
There are two ways to install packages for Atom, Enter apm install package-name on your terminal. Obviously, the Atom package manager, apm , must be installed (you can enter apm to verify installation). Open Atom, go to edit > preferences > install and search for the package you wish to install.
There are mainly two ways to install packages for Atom: Enter apm install package-name on your terminal. Obviously, the Atom package manager, apm, must be installed (you can enter apm to verify installation). Open Atom and go to edit > preferences > install and then search for the package you want to install.
After you have updated your packages.json
and saved the file you can install the dependencies by running Update Package Dependencies: Update
:
Update Package Dependencies: Update
If you are going to be doing a lot of this you can take it a step further and add a keybinding:
'atom-workspace':
'ctrl-alt-shift-u': 'update-package-dependencies:update'
You install your package then Atom/npm take care of installing the dependencies.
https://discuss.atom.io/t/load-developing-package/2554/4
When you start Atom it loads packages from various directories. When you open it in developer mode it loads additional packages from ~/.atom/dev/packages
, so the first thing to do is to move/symlink your package to that 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With