grunt server报错,No such file or directory

在初次运行一个h5项目(技术:jq + grunt)时,报错如下:

Loading "Gruntfile.js" tasks...ERROR
>> Error: ENOENT: no such file or directory, open '/Users/chen/.ssh/id_rsa'
Warning: Task "build-js" not found. Use --force to continue.

Aborted due to warnings.

我的思路:应该是缺少ssh验证(确保新密钥确实已在GitHub配置文件中注册)

实际解决步骤:

(1)

ssh-keygen -t rsa -C "[email protected]"

生成id_rsa和id_rsa.pub两个文件

(2)

cat /c/Users/lijp/.ssh/id_rsa.pub

(3)

ssh-keygen -E md5 -lf /c/Users/lijp/.ssh/id_rsa.pu

参考:

  1. https://stackoverflow.com/questions/42685633/ssh-vt-gitgithub-com-get-no-such-file-or-directory-error#comment72500698_42687786 [最终解决]

  2. https://bbs.csdn.net/topics/392117025 【思路参考】

    thanks!

你可能感兴趣的:(grunt)