所以我一直在尝试创建一个简单的 azure 函数,这将是一个 http 触发器“CreateUser”。
我做了另一个 http 触发器来简化问题,它看起来很简单:
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Azure.WebJobs.Host;
namespace TutoTableAzureTemplate
{
public static class TestTrigger
{
[FunctionName("TestTrigger")]
public static async Task<HttpResponseMessage> Run([HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = null)]HttpRequestMessage req, TraceWriter log)
{
return req.CreateResponse(HttpStatusCode.OK, "This request arrived succcesfully");
}
}
}
Run Code Online (Sandbox Code Playgroud)
这在模拟器上运行,给我带来了以下错误:
Error indexing method 'TestTrigger.Run'. Microsoft.Azure.WebJobs.Host: Cannot bind parameter 'log' to type TraceWriter. Make sure the parameter Type is supported by the binding.
Run Code Online (Sandbox Code Playgroud)
(我的模拟器版本是 5.3)
我试图删除参数TraceWriter log …
我正在使用Laravel 5,视图位于ressources/views/<view>
.
我想做一些事情ressources/views/<directory>/<views>
,把视图放在另一个目录级别(因为我有很多,并且我想将它们存储在部分中).
我创建了dorectories,然后将Controller返回更改为类似的东西return view('directory1/view1');
,但是找不到view1.
可能在控制器方面我需要纠正一些事情,但我真的不知道......
所以我现在已经在Vue.js项目上工作了几次,我遇到了一个我以前从未见过的问题.
试图将项目拉到另一台计算机上,甚至将项目作为zip文件下载,到时候npm install
,vue-material模块失败并且无法运行整个项目.
它是这样的,用vie-material:
vue-material@1.0.0 postinstall C:\<my_things>\node_modules\vue-material
sh build/git-hooks/install.sh
然后我看到了这个:
/usr/bin/bash: build/git-hooks/install.sh: No such file or directory
然后模块的树显示在终端中,最后,我可以看到与vue-material相关的所有错误,并带有以下声明:
Tell the author that this fails on your system:
sh build/git-hooks/install.sh
顺便说一句,我试图创建一个全新的Vue项目,并尝试在内部添加vue-material,没问题,所以它与我的项目有关.
显然,/usr/bin/bash
不存在,因为我正在运行Windows 10.
有关npm安装程序的任何知识吗?我没有办法解决...