@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
执行这个命令试试
yarn install typescript
yarn install ts-loader
上面不是说你需要安装 typescript吗,你就安装一下吧
少依赖包了
如果你的目录下面没有【node_modules】这个文件夹,则需要要执行npm install安装依赖。如果有则按如下操作:
报错提示需要安装TypeScript,
执行yarn install typescript或者npm install typescript
或者
在依赖包的文件中(package.json)添加typescript及要使用的版本,重新安装所有的依赖包