-
Notifications
You must be signed in to change notification settings - Fork 205
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
Have NPM as a runtime dependency #246
Comments
If you run |
I am having the same problem. When I run that command I get:
|
Did you run |
I had the same issue, apparently it's caused by npm/npm#19393. I was able to work around it by downgrading npm: |
Another workaround mentioned in npm/npm#19393 that worked for me (with npm version 5.8.0): |
Good to know! |
After updating the dependencies for my extension, the |
@hbenl Thanks, that's good to know. Maybe VSCE should depend on a specific NPM version? |
@joaomoreno I'm afraid that wouldn't solve the problem: if an extension developer has a newer version of |
Sorry, that was a confusing comment. I meant: let's add NPM as a node dependency to VSCE. That way we can lock it and use it as a library as well. |
Actually I think I had understood you correctly, but apparently my comment wasn't clear enough :) So it doesn't matter what version of So what can be done? First of all, you could try to detect if Apart from that, I don't see an easy solution: |
It happen to me when using yarn. Is it possible to give options for using yarn instead of npm? |
@uudashr |
Ahh... thanks
The console output still using npm, but it works. |
It works for me to run:
|
|
It solved my problem as well and sorry for references. They weren't intentional. |
Hello! At first, when I packaged the vscode plug-in, I reported an error as follows Error: Command failed: npm list --production --parseable --depth=99999` However, according to the feedback from GitHub, it was the NPM version problem. I said that NPM version 5.5.1 was needed. However, after the version was changed here, the following errors appeared again report errors ERROR Command failed: npm list --production --parseable --depth=99999 --loglevel=error |
I found that the error is not only related to the NPM version, but also to the location of the dependent package and the dev dependent package |
What was the relation and how did you fix it? I'm having the same issue and I specifically need to use npm as my package manager rather than yarn |
For Here are the full steps for both npm and Yarn: npm
Yarn
|
Thinking about it, I think adding npm as a dependency to vsce is a bad idea. People use different versions of it, or even different tools such as yarn. Closing as out of scope. |
I'm trying to package my extension based on the lsp-sample. I run vsce package in the client directory and it says:
The text was updated successfully, but these errors were encountered: