-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add documentation about npm unlink in DG #2467
Comments
Isn't the following section in the FAQ sufficient? Uninstalling will work:
|
It didn't seem to work with @LamJiuFong when we were trouble shooting for him that day. Only after he ran |
Yup, it only worked after I ran However, according to https://docs.npmjs.com/cli/v8/commands/npm-uninstall#examples, Edit: |
What worked after you ran unlink? |
The delinking - only after running npm unlink, he could use the released version of markbind |
Perhaps a detailed description of the steps taken (what commands ran and what results etc) would help debug the root cause. |
First, I run |
Some error -> what error exactly? Any logs? |
Sorry, I forgot what was the exact error, I remember it was related to missing layouts |
Yes this error came about because of some pull issue where the Layout.ts didnt get pull into the local repo. So because it wasn't unlinked properly, it resulted in this error. |
Hmm sorry so this error is not reproducible? If not could you reproduce and capture the error log when convenient? |
Hmmm I just tried it and the commands in the DG |
Running the sequence of operation suggested by @LamJiuFong , it seems like the current set of commands in DG suffice and results in no error. (macOS environment) |
I gave @Tim-Siu this set of instructions to try replicating the bug on his Mac:
Our results in Step 7 is different, @Tim-Siu's one has no error but mine still has the same error in Step 4. |
Why do you need to do this again in an empty folder ? Once you npm link and the package is available globally, the To get to the released version of MarkBind
To get to the master branch version of MarkBind
|
Sorry, I was following the instructions here: https://docs.npmjs.com/cli/v8/commands/npm-link |
I see. The steps in the docs should be relevant in the case that you are working on another node/npm project that relies/imports on your npm package. In our case we are making a cli tool available globally, it's not necessary for you to make in available in the folder that you want to invoke it in order to call the markbind cli (iirc).
I wonder if your empty folder is not an empty one but one with a node_modules as mentioned in the docs, will the error still occur? You can populate it by running npm init -y Also btw...you still have not posted the exact error message🙃 |
Hi @tlylt , so sorry for the late reply.
Ohh I see, I agree with you that it is unnecessary to do
These are the exact error messages
I tried this method in another folder after running However, after adding the Layout.ts back and running I am thinking if my laptop still links |
From the logs it looks like you are. You can confirm it either by checking the npm global installation folder in your machine or make some obvious change in the markbind repo instead of removing the Layout.ts to test it (e.g. add a console log somewhere or edit the output of markbind init). Maybe try testing after you run |
@LamJiuFong Since that's the case, could you try adding a print statement to console log the location of markbind-cli files? i.e. find out where it is executing from Could you also try double-checking the folder and verify that the markbind-cli folder is indeed deleted?
|
@LamJiuFong any updates? If not we can close this issue. |
Please confirm that you have searched existing issues in the repo
Yes, I have searched the existing issues
Any related issues?
No response
What is the area that this feature belongs to?
Documentation
Is your feature request related to a problem? Please describe.
When developing, we have to use
npm link
in the cli package. See instructions in DG.However, when trying to test using the released version of markbind, it is necessary to unlink (
npm unlink markbind-cli
)from the cli package. This step is not documented in the DG.Describe the solution you'd like
Add instructions on unlinking from cli package when trying to use the released version of markbind.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: