---
tags: feature
author: Oliver.W
---
# Auto install package dependencies for SCF
## Problems to solve
As a serverless developer
I want to use my own dependencies in my package.json
So thatn i can development with my own dependencies.
As a serverless developer
I want to get the dependencies auto installed after deployment with serverlss.
So that i can get fast deploy.
### Things need to consider
* Tencent SCF support install dependencies on SCF.
* This feature can be called as an action.
* Current we can't change this config on SCF console.
*
## Key Result:
* SCF components upload without node_modules fro node.js
* User should have choice to enable and disable the autoInstall feature.
* Dependencies should be installed through Tencent SCF action API when configured.
## Proposed Solution:
```yml
inputs:
src: ./
handler: index.main_handler
region: ap-guangzhou
runtime: Nodejs10.15
memorySize: 128
timeout: 3
installDependency: false # Config for auto install dependencies
events:
- apigw:
parameters:
endpoints:
- path: /
method: GET
```
### User Experience
```
Given there a serverless-tencent project
And there installDependency set to true in serverless.yml
When deploy to tencent SCF
Then the node_module folder will be auto ignored
And all the dependencies will be installed on SCF after deploy sucess.
```