# Copying Project.toml doesn't install pakages (and throws error)

**URL:** https://discourse.julialang.org/t/copying-project-toml-doesnt-install-pakages-and-throws-error/20897
**Category:** General Usage
**Created:** [February 17, 2019, 10:23am UTC](https://discourse.julialang.org/t/copying-project-toml-doesnt-install-pakages-and-throws-error/20897 "2019-02-17T10:23:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![shivchawla](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@shivchawla](https://discourse.julialang.org/u/shivchawla)
#### Post date: [February 17, 2019, 10:23am UTC](https://discourse.julialang.org/t/copying-project-toml-doesnt-install-pakages-and-throws-error/20897/1 "2019-02-17T10:23:15Z")

</div>

I have a Project.toml file that I copy to new machine’s environment/v1.1 folder and run Pkg.resolve() to install all packages and dependencies. Is this the right way in Julia v1.1?

In case it’s the right way, it break randomly with error:

```julia
ERROR: Unsatisfiable requirements detected for package Redis [0cf705f9]:
 Redis [0cf705f9] log:
 ├─possible versions are: [0.0.1-0.0.2, 0.1.0-0.1.1] or uninstalled
 ├─restricted to versions * by an explicit requirement, leaving only versions [0.0.1-0.0.2, 0.1.0-0.1.1]
 └─restricted by julia compatibility requirements to versions: uninstalled — no versions left

```

To circumvent the problem , I used the old way of creating REQUIRE file and creating a startup file like below.

```julia
using Pkg

function Pkg_update()
    pkgs = readlines(joinpath(homedir(), ".julia", "REQUIRE"))
    Pkg.add(pkgs)
    Pkg.update(pkgs)
end

Pkg_update()
Pkg.add(PackageSpec(name="Redis", rev="master"))

```

based on [Does 0.7 support REQUIRE? - #22 by kristoffer.carlsson](https://discourse.julialang.org/t/does-0-7-support-require/13078/22)

Strangely, the second process works and end up generating the exactly the same Project.toml file in environment/v1.1 as the one I copied (but didn’t work)

Can someone please tell me what’s the right way of using Project.toml?

---

<div class="post-metadata">

### Author: ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)
#### Post date: [February 17, 2019, 10:26am UTC](https://discourse.julialang.org/t/copying-project-toml-doesnt-install-pakages-and-throws-error/20897/2 "2019-02-17T10:26:52Z")

</div>

It just seems that `Redis` doesn’t support julia versions over 0.7.

---

<div class="post-metadata">

### Author: ![jpsamaroo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jpsamaroo/32/46804_2.png) [@jpsamaroo](https://discourse.julialang.org/u/jpsamaroo)
#### Post date: [February 17, 2019, 12:41pm UTC](https://discourse.julialang.org/t/copying-project-toml-doesnt-install-pakages-and-throws-error/20897/3 "2019-02-17T12:41:36Z")

</div>

It apparently does now, but hasn’t been tagged yet (it hasn’t seen a tag since 2016!). Once that’s done this should work without the above script.

---

<div class="post-metadata">

### Author: ![shivchawla](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@shivchawla](https://discourse.julialang.org/u/shivchawla)
#### Post date: [February 17, 2019, 8:53pm UTC](https://discourse.julialang.org/t/copying-project-toml-doesnt-install-pakages-and-throws-error/20897/4 "2019-02-17T20:53:37Z")

</div>

But master version of Redis repo does work with Julia v1.1
