How to "re-install" local package to get it's new deps downloaded?


#1

Hi, I’m developing my first package. I created the template with Package Generator, and now every new window of Atom Editor loads actual package code - don’t know how it works this way but it’s ok. But when I add a new dependency in code (and in “package.json”), like: {CSON} = require('cson') - I don’t know how to get it.

The activated package command says: Cannot find module 'cson'.

How to solve this problem properly?

Thanks.


#2

Go to the root of the directory where you have your source code and execute the apm install command. It will install all missing dependencies.