Questions tagged [npm-link]

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

Reference:

176 questions
1
vote
0 answers

npm 5 loses it with node_modules as a symbolic link

I have a system that builds several node.js projects and maintains the node_modules cache of each project separately. I'm trying to migrate from npm 3 to npm 5 but the issue below is causing a lot of problems. node_modules inside each project is a…
Tareq Sha
  • 515
  • 4
  • 14
1
vote
2 answers

Angular 5 broken after CLI upgrade from 1.2.8 to 1.3.0

I have an Angular 5 app that was previously running on Angular CLI 1.2.8 and everything was working great. After the upgrade to 1.3 (on my way to 1.5.4) there seems to be an issue with the external npm link libary we are using as I get an…
that_guy
  • 2,313
  • 4
  • 33
  • 46
1
vote
2 answers

Angular 5 Upgrade NullInjectorError: No provider for InjectionToken LocaleId

I have an Angular 4 app that I have upgraded to Angular 5 with CLI 1.5.4. I also have a shared library using npm link. After upgrading I had to add this to my tsconfig.app.json to get the CLI building again: "include": [ "./**/*.ts", …
that_guy
  • 2,313
  • 4
  • 33
  • 46
1
vote
1 answer

Git. "npm link" files are not ignored in the (node_modules is in gitignre)

A other local npm repository was link with the npm link command. Sample: npm link "@test\xyz". Despite the node_modules folder beeing already in the .gitignore the links was marked as changed. Adding another File, Link etc to the node_modules folder…
Stefan
  • 14,826
  • 17
  • 80
  • 143
1
vote
0 answers

Parent React App linting transpiled dependency code that is connected via `npm link`

I have a React app that has a dependency on another React component from a library that I created. When I run the build script on the Parent, and the dependency is installed via npm install, the dependency is not linted in the Parent App. But when I…
skellertor
  • 916
  • 1
  • 9
  • 26
1
vote
2 answers

Node.js - Mongoose not accessing DB in included package

I have started working of late on MEAN technologies; I have a module myModule. It has routes, services, models accessing database. I have created another project, myAnotherModule in a separate directory, and have "npm link" ed it into myModule.…
1
vote
1 answer

Linked Module Dependencies are not resolved

I am facing an issue related to npm link This is the case of publishing modules locally and using them in other angular apps. I have 2 apps 1) app-core (published locally) 2) app-main app-core contains following dependencies (installed via…
Dhaval Marthak
  • 17,246
  • 6
  • 46
  • 68
1
vote
1 answer

Work around to unsolved npm link symlink requires?

When developing an NPM package, it's common to use: npm link It allows to modify under development without the need of publishing and unpublishing all the time! The developer can make any changes locally and see it immediately. It's…
punkbit
  • 7,347
  • 10
  • 55
  • 89
1
vote
0 answers

Anyone know what these NPM warnings are about

I get these warnings after running "npm install" in my project or "npm link" in a project that depends on it. android-96cfb953347b915b:suman t_millal$ npm link npm WARN enoent ENOENT: no such file or directory, open…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
0
votes
0 answers

NPM LINK: The difference between importing external modules through package.json and using npm link in Angular

I would like to test a new version of angular/cli and core, but I don't want to publish my modules every time. Instead of it I use npm link locally on my PC. First of all, I would like to import my modules with npm link and not in package.json in…
0
votes
1 answer

npm link command is not working after I installed a package globally but want to run the command in the local project

I installed a package "cowsay" globally using npm i -g cowsay. I ran the "cowsay" command in the terminal as cowsay helloooo and it ran without any error producing output: < hellooooo > \ ^__^ \ (oo)\_______ (__)\ )\/\ …
0
votes
1 answer

VSCode breakpoints no binding with TypeScript npm linked package

I have a Next.js app written using TypeScript with the following .tsconfig: { "compilerOptions": { "baseUrl": "src", "experimentalDecorators": true, "target": "es5", "lib": [ "dom", "dom.iterable", "esnext" …
0
votes
0 answers

How to use local react library in test project during development of the library

I've looked around a lot in the last few days ... and I was never able to succeed with this What I'm trying to achieve: I am developing in a (forked) existing react library and I want to "link" the test project using this library to the development…
devnull69
  • 16,402
  • 8
  • 50
  • 61
0
votes
0 answers

How to dynamically update the local development package files of NPM links in the vite project

I linked the local package in the vite project, but after modifying my local package, I need to delete the node_ Modules, execute pnpm install and restart again to get the latest package. Is there any way to dynamically update them?
0
votes
0 answers

NPM Import linked packages as sub modules

I'm working on a project which has a few different modules, for example: /project /app /website /api /common /dist (gets generated from the ts build) /types (gets generated from the ts build) /src …