每个人,
尝试通过安装 MS Graph 工具包的包时
npm install @microsoft/mgt
我收到一个错误,找不到 typescript-typings 包:
PS C:\Users\dev\Dev\Webpart> npm install @microsoft/mgt
npm ERR! path git
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR! syscall spawn git
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/microsoftgraph/msgraph-typescript-typings.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\dev\AppData\Roaming\npm-cache_logs\2020-03-11T11_44_15_649Z-debug.log
我通过 nodist 尝试了几个节点版本。并且还开始了一个具有相同结果的新项目。我使用 Windows 10 (1903)。
感谢您的帮助。