Questions tagged [npm-link]

npm link is a command on npm CLI which symlink's a package folder

Reference:

176 questions
0
votes
0 answers

Can we use 'npm link' command in teams?

I was trying to use npm link to link to components and code which we use in different JS projects. Both the projects, and the shared components and packages are in the same Git repository. Using 'npm link' allowed me to access such a package from a…
Ben Carp
  • 24,214
  • 9
  • 60
  • 72
0
votes
1 answer

React component, npm install throws error while npm link works

I've created a small react component, and uploaded it to a private npm. I try to implement it in my create-react app. When I use it localy (npm link), all works preferct But when I try to use to server version (npm install), I get the following…
0
votes
1 answer

React - How to use npm-linked module

How can I use a module imported via npm link into webpack for a React application? MyModule_Folder --------------------------------- |--package.json |--src |--myModule |--MyComponent.jsx |--MyStyle.css …
Vito Lipari
  • 795
  • 8
  • 35
0
votes
1 answer

Executing npm link from a common folder

I use custom built library and then link them between other libraries using 'npm link'. One problem is that, if I do 'npm install' the links disappear and then I will have to go manually and do the linking. In order to solve this issue, I am…
Johnson Samuel
  • 2,046
  • 2
  • 18
  • 29
0
votes
1 answer

NPM Link Error EEXIST -4075 when linking multiple folders

I am working on a installer, after we install the files we run a script that uses NPM Link to setup some folders. When I run the script on my VM it works without any errors/warnings. When I try to run it on my own machine I get this error: 84…
user7545513
0
votes
1 answer

Npm link issues with Two angular projects

So I've been running into an issue for some time while when trying to develop in an angular project that uses npm link with a library that also contains it's own node modules folder. Both need their own copy of node modules because both will contain…
Christian
  • 1
  • 2
0
votes
0 answers

Storing types in an external / separate project

I have my types for a project in a separate codebase, because it's shared between multiple projects. I have the following directory structure in suman-types: In my main project, I import suman-types, and in my main project's tsconfig.json file, I…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
0
votes
1 answer

Debug local npm link package in meteor app

I am writing a javascript library that is npm linked to my meteor app. I didn't yet publish the library to npm so it is only local. Now my problem is, that I want to debug inside the library while using it in my meteor app. I can debug the meteor…
Benjamin
  • 68
  • 7
0
votes
1 answer

Node/NPM managing local packages

TL;DR How do I configure different "sub-modules" in a modular node.js project to refer to one another as simply as possible? I'm trying to wrap my head around local packages for NPM, specifically as they relate to a modular project. I'm building a…
Kryten
  • 15,230
  • 6
  • 45
  • 68
-1
votes
1 answer

NPM link - Application cannot find linked library's dependencies [ANGULAR]

I am developing an application and a library used in said application. I need to update the library, however, when I use NPM link the application says that the library I have imported does not have the dependencies required. This is a deployed…
Kieran
  • 9
  • 2
-1
votes
1 answer

Keep npm linked folder color in grep on terminal

I have a folder in node_modules which is linked to another project (using npm link my-plugin). Let's call it my-plugin. When I run ls node_modules I get a list with all folders which contains my-plugin of course. The my-plugin folder has a different…
Mosh Feu
  • 28,354
  • 16
  • 88
  • 135
1 2 3
11
12