Resolution of NPM Local Package Dependencies - NPM v.5+


I am running InteliiJ IDEA Ultimate 2017.3.5 on CentOS to develop a React application bootstrapped with create-react-app.

The module resolution works fine for the most part but doesn't seem to support dependencies declared using a local path ( created with NPM v.5.

Although it doesn't appear to be documented, NPM v.5 creates symlinks in a project's node_modules folder instead of copying the files over. I suppose this might create some trouble for reading a local package's index.

Is there any workaround for this? My particular local package is within the directory tree of my IntelliJ project (it actually exists as a module inside the project) if that helps any.

1 comment
Comment actions Permalink

What problems resolving modules did you face namely? Please can you share a sample project I can use to recreate the issue?


Please sign in to leave a comment.