m0_46694882 2021-10-14 01:56 采纳率: 0%
浏览 54

npm 报错,求人才指点看看有什么好方法

@uniswap/interface@ build C:\qd
react-scripts build

It looks like you're trying to use TypeScript but do not have typescript installed.
Please install typescript by running yarn add typescript.
If you are not trying to use TypeScript, please remove the tsconfig.json file from your package root (and any TypeScript files).

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @uniswap/interface@ build: react-scripts build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @uniswap/interface@ build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\财分天下\AppData\Roaming\npm-cache_logs\2021-10-13T17_52_13_575Z-debug.log

  • 写回答

2条回答 默认 最新

  • CSDN专家-微编程 2021-10-14 06:20
    关注

    执行这个命令试试
    yarn install typescript
    yarn install ts-loader
    上面不是说你需要安装 typescript吗,你就安装一下吧

    评论

报告相同问题?

问题事件

  • 创建了问题 10月14日