# Upgrade Polygonjs

Since Polygonjs is just an npm module, you can decide which version you want from the `package.json` file:

```json
{
	"dependencies": {
		"polygonjs-editor": "1.5.49-1"
	}
}
```

When you update this file, make sure to actually install it with:.

<DocCodeBlock npm="npm install" yarn="yarn"></DocCodeBlock>

And now, when you start Polygonjs wit the usual command, it will launch using that new version.

<DocCodeBlock npm="npm run polygon" yarn="yarn polygon"></DocCodeBlock>

## Troubleshooting

Note that in some cases, you may see an error when restarting, in which case deleting the `node_modules` folder and the file `package-lock.json` or `yarn.lock` before reinstalling the modules solves the issue.

<DocCodeBlock
	npm="rm -rf node_modules package-lock.json && npm install"
	yarn="rm -rf node_modules yarn.lock && yarn"
></DocCodeBlock>

## What's next?

Let's now have a look at <DocRouterLink bang href="/docs/assets" innerText="How to Import 3D Assets &rarr;"></DocRouterLink>
