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

[BUG] ENOENT: no such file or directory #964

Closed
kubilaysargin opened this issue Feb 29, 2020 · 14 comments
Closed

[BUG] ENOENT: no such file or directory #964

kubilaysargin opened this issue Feb 29, 2020 · 14 comments
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release

Comments

@kubilaysargin
Copy link

I have a problem while installing react-native-cli. When i type npm install -g react-native-cli it gives me so much no such file or directory errors. One example is ENOENT: no such file or directory, open 'C:\Users\KUBİLAY\AppData\Roaming\npm\node_modules.staging\winston-6bc268e1\test\transports\webhook-test.js'. When look this winston-6bc268e1 folder's inside, first name of folders are deleted(like est for test, ib for lib).
cmdererror
fileerror

@DanielRuf
Copy link

DanielRuf commented Mar 9, 2020

This is probably an issue with your username (special characters and spaces).

Duplicate of #417

@rushilsrivastava
Copy link

It's an issue with package-lock.json. Deleting it and clearing npm cache will fix the issue.

@DanielRuf
Copy link

It's an issue with package-lock.json. Deleting it and clearing npm cache will fix the issue.

Not in all cases. This can help as it refetches packages and updates the dependencies so a fresh cache is used.

You can also use npm i --force.

@rushilsrivastava
Copy link

You can also use npm i --force .

I can confirm that npm i --force does not work in this situation. The only work around seems to be deleting the package lock.

@darcyclarke darcyclarke added the Bug thing that needs fixing label Oct 30, 2020
@olavfosse
Copy link

olavfosse commented Apr 29, 2021

bump. can you please fix this, it has persisted for soon 4 years and been reported numerous times. It has surely affected a lot of people through the years.

https://github.com/zkat/npx/search?o=asc&q=space+windows&s=created&type=issues
https://github.com/npm/npx/search?q=space+windows&type=issues
https://github.com/npm/cli/search?q=space+windows&type=issues

Thanks

@darcyclarke
Copy link
Contributor

npm v6 is no longer in active development; We will continue to push security releases to v6 at our team's discretion as-per our Support Policy.

If your bug is preproducible on v7, please re-file this issue using our new issue template.

If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo

Closing: This is an automated message.

@olavfosse
Copy link

This bug has been discarded maybe 100 times now. Please re-open.

@olavfosse
Copy link

@isaacs @iarna @zkat

Please reopen this.

@ljharb
Copy link
Contributor

ljharb commented Jun 21, 2021

@fossegrim does it still occur on npm 7?

@olavfosse
Copy link

yes

@ljharb ljharb added Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release labels Jun 21, 2021
@ljharb ljharb reopened this Jun 21, 2021
@darcyclarke
Copy link
Contributor

@ljharb we're closing this as the codebase changed significantly between 6-7 - @fossegrim can you please create a new issue w/ more information about the specific problem you're seeing in v7

@ljharb
Copy link
Contributor

ljharb commented Jun 25, 2021

@darcyclarke i'm not sure why the codebase changes would have any bearing on the reported problem, which the OP claims still occurs in npm 7.

@olavfosse
Copy link

Steps to reproduce from what I remember is:

  1. Create user with username containing space, for example "Olav Fosse". (by default the installer infers username from email. To make the installer prompt for a username string you have to tell it that you cannot connect to internet).
  2. Install npm
  3. Try doing something with npm. I think I tried running cra npx create-react-app appname or something like that. Everything I ran failed.

@olavfosse
Copy link

I cannot be bothered to install Win10 and make a proper detailed bug report, because every time this has been reported previously the issue has been closed prematurely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release
Projects
None yet
Development

No branches or pull requests

6 participants