moved package install into node type script, variablized directories to be created