Skip to content

npm install/start not working properly when path contains '%'? #2439

@jonydog

Description

@jonydog

Can you reproduce the problem with latest npm?

Yes

Description

I deleted the node_modules of my project and then proceeded to run npm install (to check if it was ready for version control), the npm install everything until there. When I run npm start, the public/index.html is loaded but appears that the src/index.js is not evaluated, I've checked this with come console logs. After a a while trying to understand what was going on I noticed that a part of my project path is called 'XXX%20-%20XX%20-%20XXX%20XXXX%20-%20XX' with this suspicion I have changed the name of the folder and now everyhing is working ok

Expected behavior

npm start would start my app as normal with src/index.js being evaluated

Actual behavior

npm start appears to be not loading src/index.js when the project file path contains '%'

Environment

  1. npm ls react-scripts (if you haven’t ejected):
    `-- react-scripts@1.0.7
  2. node -v:
    6.9..5
  3. npm -v:
    5.0.0

Then, specify:

  1. Operating system:
    Windows 10

  2. Browser and version:
    Firefox and Chrome (latest)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions