Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install fails if package url contains port number #3182

Closed
Torvin opened this issue Feb 21, 2021 · 2 comments · Fixed by #3183
Closed

install fails if package url contains port number #3182

Torvin opened this issue Feb 21, 2021 · 2 comments · Fixed by #3183
Milestone

Comments

@Torvin
Copy link

Torvin commented Feb 21, 2021

pnpm version:

5.17.3

Code to reproduce the issue:

I have an private package reference in my package.json that looks like this:
"my-private-package": "http://buildserver.mycompany.com:81/my-private-package-0.1.6.tgz",

When I try to do pnpm i I get the following error:

ERROR  ENOENT: no such file or directory, mkdir

.pnpm-debug.log doesn't have any more details:

  "5477 error pnpm": {
    "message": {
      "errno": -4058,
      "code": "ENOENT",
      "syscall": "mkdir"
    },
    "err": {
      "name": "Error",
      "message": "ENOENT: no such file or directory, mkdir",
      "code": "ENOENT",
      "stack": "Error: ENOENT: no such file or directory, mkdir"
    }
  }

but I'm seeing this in ProcessMonitor:

CreateFile C:\Projects\my-app\node_modules\.pnpm\@buildserver.mycompany.com:81@my-private-package-0.1.6.tgz_react-dom@16.14.0+react@16.14.0\node_modules NAME INVALID

I believe this happens because on Windows a colon : is not allowed in file names

Is there any workaround available?

@zkochan
Copy link
Member

zkochan commented Feb 22, 2021

I think it is easy to fix. I'll look into it.

@zkochan
Copy link
Member

zkochan commented Feb 24, 2021

🚢 5.18.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants