Open spboyer opened 8 years ago
TFS: 168825 I've added this to our internal TFS, we will reply back here soon.
Same here.
Thanks for reporting this issue. The next version of the Web Tools for VS will include newer versions of Node.js and npm, which seems to handle this syntax better. By default, current versions of the Web Tools are using a very old version of npm which does not appear to handle this syntax.
Since it sounds like you have a newer version of npm installed already, you can tell VS to use that version instead, by going to Tools->Options->Projects and Solutions->External Web Tools, and moving the $(PATH) value above the VS install locations in the list.
Found this on a blog which allows you to target your installed version of NodeJS: While Node.js and its corresponding package manager, namely “npm” are part of the install for Visual Studio 2015 – it installs with 1.4.9 which is unfortunately an outdated version. Angular2 might play nicer with a later version of npm. “Node.js” package ecosystem, npm, is the largest ecosystem of open source libraries in the world! Let’s address this now, so that we do not run into issues once we start writing code. Install the latest version of Node.js here. Once installed navigate to the following directory:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\
Open the npm.cmd file in your favorite text editor (running as Administrator) and replace the contents of this file with the following:
@”C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” %*
Now Visual Studio 2015 will utilize the npm version that was installed from the aforementioned steps.
@ChuckkNorris Thanks for response.
The GitHub Issue Tracker for the aspnet/Tooling repo is being deprecated in favor of Visual Studio's Report a Problem tool.
If this issue is still a problem with the RTW release of Visual Studio 2017, please report a new issue using the Report a Problem tool. While you can still use .NET Core and ASP.NET Preview tools with Visual Studio 2015, Visual Studio 2017 is now the officially supported tool for developing .NET Core and ASP.NET Core projects.
By using the Report a Problem tool (available in both VS 2017 and VS 2015), you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks. See Visual Studio's Talk to Us page for more details.
Please use the discussion topic here for feedback and questions on the deprecation of this issue tracker. Thanks!
When opening a project that has the npm package
@reactivex/rxjs
or an npm package with that dependency is fails when doing right click -> restore dependencies.However when using cmd line
npm restore
package(s) restore appropriately.Here is the package.json file
@madskristensen