投稿

7月, 2017の投稿を表示しています

gulpfile.ts (122,1): Expected 1-2 arguments, but got 3. (2554)

gulpfile.ts (122,1): Expected 1-2 arguments, but got 3. (2554) gulpfile.ts (145,21): Argument of type 'string[]' is not assignable to parameter of type 'TaskFunction'.   Type 'string[]' provides no match for the signature '(done: (error?: any) => void): any'. (2345) というようなエラーが出ましたら、gulp を 4.0.4 → 3.8.33 に戻してあげます。 npm i @types/gulp@3.8.33 または package.json を修正:     "@types/gulp": "^3.8.33",     "@types/jquery": "^3.2.9", npm install

Error in plugin 'gulp-gm' Error: write EOF

Error: write EOF     at finish (C:\...\Ayame\node_modules\gulp-gm\index.js:40:21)     at gm.<anonymous> (C:\...\Ayame\node_modules\gulp-image-resize\node_modules\async\lib\async.js:485:30)     at emitMany (events.js:146:13)     at gm.emit (events.js:223:7)     at gm.<anonymous> (C:\...\Ayame\node_modules\gulp-gm\node_modules\gm\lib\getters.js:70:16)     at Socket.cb (C:\...\Ayame\node_modules\gulp-gm\node_modules\gm\lib\command.js:322:16)     at Object.onceWrapper (events.js:316:30)     at emitOne (events.js:115:13)     at Socket.emit (events.js:210:7)     at onwriteError (_stream_writable.js:392:12) C:\Windows\system32\convert.exe が応答しているようです。 ImageMagick 6.x をインストールして、そのパスを通すようにしましょうか… PATH C:\Program Files (x86)\ImageMagick-6.7.6-Q8;%PATH% https://stackoverflow.com/a/41091671

NODE_ENV=production gulp deploy

> Ayame@3.3.7-1 deploy C:\...\Ayame > NODE_ENV=production gulp deploy 'NODE_ENV' は、内部コマンドまたは外部コマンド、 操作可能なプログラムまたはバッチ ファイルとして認識されていません。 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! Ayame@3.3.7-1 deploy: `NODE_ENV=production gulp deploy` package.json:     "deploy": "NODE_ENV=production gulp deploy", Windows 用に書き直し:     "deploy": "set NODE_ENV=production && gulp deploy",

aspNetCore mvc superPad 備忘録編

プロジェクトの作成 yo aspnet ? What type of application do you want to create? Empty Web Application https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app-xplat/start-mvc csproj プロジェクト作成。認証とか、高尚なテクノロジーは考慮しない dotnet new mvc 実行まで dotnet restore dotnet build dotnet run Npgsql インストール dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL および dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL.Design csproj に追加↓ <ItemGroup> <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="1.1.1" PrivateAssets="All" /> </ItemGroup> <ItemGroup> <DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.0" /> </ItemGroup> お忘れなく↓ dotnet restore DBFirst で DbContext を構築したい。 dotnet ef dbcontext scaffold "Host=xxx;Database=xxx;Username=xxx;Password=xxx;Port=xxx" Npgsql.EntityFrameworkCore.PostgreSQL -o M...

HTTP Error 502.5 - Process Failure

イメージ
dotnet publish --framework netcoreapp1.1 --configuration Release --output ... にてデプロイし、確認したとこと、このような… エラー メッセージ HTTP Error 502.5 - Process Failure Common causes of this issue: The application process failed to start The application process started but then stopped The application process started but failed to listen on the configured port Troubleshooting steps: Check the system event log for error messages Enable logging the application process’ stdout messages Attach a debugger to the application process and inspect For more information visit: http://go.microsoft.com/fwlink/?LinkID=808681 大体はこういう状態に陥っているのだと思われます: C:\Users\ku_000>dotnet 'dotnet' is not recognized as an internal or external command, operable program or batch file. こちらから、 Download .NET Core SDK を入手し、インストール。 https://www.microsoft.com/net/core#windowscmd こちらから .NET Core Windows Server ホスティング バンドルを入手し、インストール。 参考 https://aka.ms/dotnetcore-2-windowshosting C:\Program Files\dotn...