我正在嘗試遵循此處的設定部分(使用編譯器 API)。
這會導致以下錯誤:
PS C:\Users\Volker\Desktop\ts-projects\using-the-compiler> npm install -g typescript
changed 1 package, and audited 2 packages in 2s
found 0 vulnerabilities
PS C:\Users\Volker\Desktop\ts-projects\using-the-compiler> npm link typescript
npm ERR! code 1
npm ERR! path C:\Users\Volker\AppData\Roaming\npm\node_modules\typescript
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c gulp build-eslint-rules
npm ERR! [13:58:28] No gulpfile found
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Volker\AppData\Local\npm-cache\_logs\2022-03-15T12_58_28_853Z-debug.log
我的節點版本是v16.13.1.
我做錯了什么?我該如何解決?
uj5u.com熱心網友回復:
我不確定這些說明是怎么回事(可能已過時)。然后像往常一樣npm install --save typescript匯入它:
import * as ts from "typescript";
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/444514.html
上一篇:元組映射器函式型別
