Tag: visual studio 2015

我们可以从Visual Studio任务运行器资源pipe理器中运行npm start

我在Visual Studio中设置了Angular 4代码,我可以从Visual Studio成功构build。 但是,如果我想启动angular码,我会转到命令提示符并手动inputnpm start来运行应用程序。 运行npm start ,我用注册的端口浏览它的工作正常。 但我不想使用命令提示符,所有我想在Visual Studio任务运行器资源pipe理器中。 可能吗?

如何安装Visual Studio 2015以使用现有的NodeJs,Cordova和android SDK的安装

我使用nodejs , cordova , android sdk currenlty 。 我试图安装visual studio 2015,但它似乎想要再次下载和安装这些软件包,创build自己的副本。 我想要使​​用现有的工具。 可能吗?

Azure / Node.js无例外:错误:找不到模块'ms'

我已经使用Azure发布选项(右键单击 – 发布 – azure色configuration文件等)部署了一个小型的node.js应用程序,该应用程序在Visual Studio 2015中本地运行到Azure。 但是,当我访问该网站时,我在页面上得到的是: 页面无法显示,因为发生了内部服务器错误。 如果我将VS Server Explorer连接到Azure实例以查看日志,则可以在logging-errors.txt中看到以下logging的很多次: Wed Jul 29 2015 12:22:36 GMT+0000 (Coordinated Universal Time): Unaught exception: Error: Cannot find module 'ms' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (D:\home\site\wwwroot\node_modules\debug\debug.js:14:20) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) […]

在Visual Studio之外的Node / Gulp失败(无法加载gulp-sass)

我们正在与我们的VS项目build立Gulp。 当从VS Task Runner运行任务时,他们完美地工作,但从命令行,它失败。 的package.json: { "name": "OurProject", "description": "OurProject", "repository": { "type": "git", "url": "https://github.com/something.git" }, "private": true, "devDependencies": { "gulp": "^3.9.0", "gulp-cached": "^1.1.0", "gulp-coffee": "^2.3.1", "gulp-notify": "^2.2.0", "gulp-sass": "^2.0.4", "gulp-sourcemaps": "^1.5.2" } } Gulpfile.js(简体): var gulp = require('gulp'), sass = require('gulp-sass'); gulp.task('scss-compile', function () { return gulp .src("./Web/css/**/*.scss") .pipe(sass()) .pipe(gulp.dest("./Web/css")); }); Visual Studio […]

visual studio 2015节点js应用程序不启动debugging

我正在Visual Studio中创build一个纯粹的服务器端nodejs应用程序,大部分时间我去debugging它,它不会开始运行我的JavaScript。 我看到“debugging器监听端口xxxx”,没有别的。 打开和closures项目解决了这个问题,手动结束了VSHub.exe进程(可能是巧合),但是我不想在每次debugging时都这样做。 任何人看到这个或有任何想法?

在gulpfile Visual Studio 2015的npm del错误

我在我的gulp文件中使用del包作为干净任务的一部分。 以下是我正在使用的东西的版本Visual Studio 2015社区Node.js v2.11.3 gulp v3.9.0 del v2.0.2 这是从我的大文件提取: var gulp = require('gulp'); var del = require('del'); var config = require('./gulp.config')(); var $ = require('gulp-load-plugins')({ lazy: true }); gulp.task('images', ['clean-images'], function () { log('Copying and compressing the images'); return gulp .src(config.images) .pipe($.imagemin({optimizationLevel: 4})) .pipe(gulp.dest(config.build + 'images')); }); gulp.task('clean-images', function (done) { clean(config.build + 'images/**/*.*', […]

为什么visual studio需要nodejs项目的解决scheme文件?

我想创build一个nodejs应用程序,可以使用IDE /编辑器而不是visual studio进行编辑,并想知道为什么需要解决scheme文件,因为依赖项是由npmpipe理的。

Visual Studio 2015编辑器使用ECMA Script 6语法显示错误

我正在使用Node.js Web服务器编写应用程序。 我使用了自从ECMA Script 2015以来可用的箭头函数 ,并且正确地构build了我的项目。 不过,Visual Studio 2015在“错误列表”窗口中显示了很多错误: 这真的很烦人,有谁知道如何解决这个VS2015的行为?

我怎样才能得到Visual Studio Typescript 1.7 intellisense与nodejs库(angular2,rxjs)?

[已解决]我logging了一个对TypeScript的错误 ,修复应该汇总到下一个VS插件版本。 本质上,如果您指定模块分辨率为“NodeJs”,则可以使智能感知工作。 但编译器不喜欢这个,因为它期望它是“节点”。 它看起来像他们正在做的修复是通过指定“节点”,使一切工作。 我正在尝试使用msbuild构build一个Angular2项目,因为我想使用ASP.Net Web API作为我的后端。 代码编译和运行良好,但我的编辑器(SublimeText 3或Visual Studio 2015)不喜欢我导入Angular2库的方式: boot.ts: import {bootstrap} from 'angular2/platform/browser'; // error: cannot find module import {AppComponent} from './app.component'; bootstrap(AppComponent, []); 如果我使用TypeScript编译器直接使用tsconfig.json和node lite-server作为文档运行相同的示例( Angular2 Hero教程 ),那么SublimeText3可以工作,并且可以很好地识别此语法。 但是,一旦我切换到msbuild,由于某种原因,我得到这个intellisense错误。 以下是我认为相关的其他项目: 文件夹结构: \ – index.html – package.json \app – boot.ts – app.component.ts \node_modules \angular2 \platform – browser.js – browser.d.ts 的package.json: { […]

在Visual Studio 2015中构buildnode-gyp项目时发生LNK1104错误

我已经尝试了一切,我有正确版本的Python(Python27),安装了Windows SDK 8.1,也安装了Visual C ++,但构build仍然失败。 我正在使用Visual Studio 2015社区编辑器顺便说一句。 当我尝试从cmd执行node-gyp build ,出现以下错误: > C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Platform.t argets(44,5): error MSB8020: The builds tools for v140 (Platform Toolset = 'v14 0') cannot be found. To build using the v140 build tools, either click the Proj ect menu or right-click the solution, and then select "Update VC++ Projects…" . […]