drobnikj/how-to-share-code-between-apify-actors

Explain that you can delete npm installs from the bash script to save time and space.

Closed this issue · 3 comments

Explain that you can delete npm installs from the bash script to save time and space.

I think you need to run npm install to install the latest shared version to node_modules. Did it work without that?

I think that would make sense only if you upgraded the version. But since everything is deleted and the build again I think it works fine without install. At least it worked for me in my repo when I was changing the shared code without changing any version numbers.

Actually, you are right. I first tested it on Apify where it is installed by Dockerfile. But to run it locally you have to install after you add it to package.json.