npm-link Questions

7

Solved

I have created a project using angular-cli. There is one AppModule and AppComponent I want to use this AppModule and its components (AppComponent) in other angular apps. So I have created index.ts ...
Recitation asked 3/8, 2017 at 9:36

10

Solved

When installing a node package using sudo npm link in the package's directory, how can I uninstall the package once I'm done with development? npm link installs the package as a symbolic link in t...
Paine asked 30/9, 2013 at 12:44

4

Solved

I have a problem. I'm trying to make a Angular 8 Library using ng-cli, but i can't preserve symlinks from my external application using npm link. I've tried to add this on my angular.json: "bui...
Jerky asked 6/10, 2019 at 18:34

6

Solved

Issue description: I'm currently authoring a package called eformless I've used CRA to create a directory called sandbox, where I linked the package. I keep getting the following error, when try...
Electoral asked 9/10, 2020 at 16:21

3

I'm learning about using yarn link to work on a package and have changes reflected in a host app and I either don't get something or somethings not working. It is all built in angular5.. I have a...
Competent asked 28/6, 2018 at 1:13

2

Solved

I'm getting a weird error while linking local packages: I have 2 packages (let's call them A and B). When I link either one of those to my project using npm link A it works as intended. But then I ...
Inconceivable asked 23/7, 2021 at 18:36

2

I am trying to do local development of an NPM package and test it in a package which depends on it. I'm using NPM (7.5.3) and specifically npm link for this but running into a problem with the chai...
Scissure asked 19/2, 2021 at 19:32

13

Solved

I am developing a button ui package for react native. I try to build an example project to test this button. The directory structure is as follows: my-button/ package.json index.js example/ pa...
Freeboard asked 19/5, 2017 at 3:52

1

I linked a locally developed package using NPM link command. Since then, I am not able to unlink it back. I am on Windows 10. I have tried: npm unlink npm remove npm uninstall Completely wipe out ...
Guesswarp asked 21/5, 2017 at 16:28

1

I know there are subtle differences between yarn and npm. Now I have a library managed with yarn and an app managed with npm. Should it work without issues, if I create a linked pkg in my lib direc...
Bobbe asked 12/1, 2021 at 10:13

1

I'm trying to debug a NodeJS app and its related typescript packages linked with npm link. Structure looks like this: /root/package-a # typescript package /root/package-b # another typescript packa...

0

Edit So, what turned out to be the problem? I had two instances of React and ReactDOM contributing to the served bundle of applicationB. I was misled in diagnosing the problem-space and therefore t...
Tow asked 21/8, 2022 at 22:33

4

I am running into the following problem when trying to develop a React component library using styled-components. For the purpose of this example, let's assume we have two repos, app and core and...
Stoeber asked 4/3, 2019 at 21:25

0

I want to create an npm module with Nuxt 3 components. For that I defined the "nuxt.js" file the following way. import { join } from 'path' import { defineNuxtModule} from '@nuxt/kit' ex...
Braga asked 20/7, 2022 at 13:53

7

Solved

I have an internal project where I want to link a command to a file with bin. Like expect this package.json: { "name": "my-project", "bin": { "cli-name": "./bin/my-executable.js" }, "dependen...
Adust asked 21/2, 2017 at 13:39

4

I learn React JavaScript and now I have this problem I Fork the notistack library in GitHub then download my fork with Git Desktop so the project are on Windows 10 here D:/git/notistack. After foll...
Serilda asked 10/9, 2021 at 18:45

2

When I am developing a JavaScript module, I can use npm link to install my local development version in local projects that use the module as a dependency. This is a great workflow. It's not devel...
Turbo asked 8/6, 2018 at 17:11

5

Solved

I have a basic create-react-app TypeScript project (client). Just directory up, I have a server and a shared folder. Inside the shared folder I have a number of interfaces and enums that I share be...
Furness asked 25/1, 2021 at 23:22

3

I have a multi-package project set up, where I have one JavaScript package that relies on a TypeScript library. Initially I installed Sinopia and was reinstalling the library every time I made chan...
Abalone asked 23/1, 2018 at 20:25

1

I've created an Angular lib (mylib) using the cli and have created a symlink using npm link from the dist directory. I've created an Angular app using the cli and have linked the lib using npm link...
Rascally asked 11/2, 2021 at 18:21

1

Solved

i'm struggling to use npm link. in fact i have two local packages that i would like to use in my project. on each of the packages I performed the sudo npm link command. when I do an npm -g list I c...
Mirianmirielle asked 12/4, 2021 at 8:54

3

Solved

I'm developing a React library for my common used components. In my root folder where there is: my rollup config and my src/ folder containing my library. When it's build, the bundle files (ES, C...
Woodberry asked 22/7, 2019 at 11:37

1

Solved

Question Why does importing from a linked local NPM pacakage (built as an ES module) using the pacakge name works when the pacakge.json has the "main" property, but fails when it has the ...
Brainwash asked 25/8, 2021 at 20:1

3

Solved

It appears that when I run npm link, it will install the project globally, and it seems to install devDependencies with it. Is there a way to run npm link without devDependencies, perhaps with the...
Farmyard asked 19/6, 2017 at 23:0

2

Solved

Is there a way to restrict npm link to create the symlink only to point at ./dist? I am struggling so far as I want to test my library (react component) locally before publishing. In my package.j...
Echoechoic asked 22/12, 2019 at 17:11

© 2022 - 2025 — McMap. All rights reserved.