NPM optional package installation failure #479
Comments
Confirming that the problem is present in the official release. |
TFS: 224850 |
@sayedihashimi: Any feedback on this issue? |
@Luigie FWIW I think this is an issue in npm rather than VS but they don't seem eager to fix it. Maybe you should add your voice to this issue: npm/npm#11632 |
the packages are loading now, but message remains |
I've tried to workaround this problem by using script wrapping npm and appending I can sleep relatively well now, knowing VS is not yelling at me that I'm missing something. |
Whenever I start my visual studio dot net project it again starts loading the package files due to which slowness occurs while loading the project. Is there is any work around ? |
Any update on this issue please? Npm download the packages however still showing not installed as mentioned above |
To echo @Kukkimonsuta, I created a
This didn't fix anything. The only solution was to remove any reference to |
I have fixed the issue like this: Installed the latest version of npm: npm install -g npm@next |
@lokap adding |
Any fix for this still seems to be an issue PM> node -v |
Got the same problem. |
Yep I too get have the same issue; very annoying! I guess one could write a script to always uninstall the fsevents package. |
You can globally set optional to false when installing packages through NPM. "npm set optional=false". This eliminated the warning from the "Bower/npm" output in visual studio but I still get dependencies - not installed. If you search for "not installed" in the solution explorer, it will display "fsevents - not installed" for "chokidar". Still is starting to piss me off! |
In no way should we have to resort to tampering with npm, node, or messing with the individual packages. |
Upgrade to Visual Studio 2017. no problem on that end now! |
My problem was one of the packages that stopped all other packages from loading, the best way to see if all your packages that work is to start the command line interface "CMD" and navigate to your project -> Type:
and you will see if all your packets go through the installation without problems. The package I had problems with the
I had to uninstall it with Package Installer tool. just right click and uninstall package.
|
I am having this issue with the latest version of Visual Studio 2017 (15.5.1). Noty is installed in node_modules. Does anyone know what steps visual studio takes to determine whether or not a package is installed. There's obviously something about Noty that is causing this? I will raise a Noty issue if I can figure out what it's not displaying correctly, but I think it's a studio problem. The package is installed. |
@jimmymain Have you tried turning it off and on again? I've just created empty mvc project in VS 15.5.1 and it works fine. I can also confirm that missing optional dependencies no longer cause this behavior, so the issue can be probably closed. @sayedihashimi |
mmmh odd. I tried a few things... then I erased all the code, fetched clean from TFS, and rebuilt from scratch. |
Some packages (for instance
webpack
) have dependency on packages that are not supported on windows which causes NPM to print warning about it. VS interprets it as generic problem and says that packages are not installed even though in reality this warning should be ignored.There is an issue about this at npm repo npm/npm#11632 , but meanwhile it would be nice if VS could just ignore these warnings since everything actually works as expected. Also note that I'm using 'leaked' RC2/Preview1 tooling, I'll report back whether this behaviour changed when the proper release is out.
Output while using tools packaged with VS tooling:
Output while using newer external tools:
Node v5.11.0
Npm v3.9.0
The text was updated successfully, but these errors were encountered: