I tried using the docker "official image" for node:

  docker pull node
  docker run -it --rm node bash
  mkdir -p test/foo
  cd test
  yes '' | yarn init
  yarn add file:foo

yields:

  yarn add file:foo
  yarn add v1.22.5
  info No lockfile found.
  [1/4] Resolving packages...
  [2/4] Fetching packages...
  error /test@0.0.0: Name contains illegal characters
  info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this 
command.

you need to add the following as in my previous message:

  cd foo
  yes '' | yarn init
  cd ..

P.

Reply via email to