npm ERR! code ELIFECYCLE
发布于 5 年前 作者 ping11 11370 次浏览 来自 问答

编译不通过 什么原因呢

2 回复

是使用了 TypeScript 的项目?在终端命令行打开这个目录,运行 npm run compile 或者 tsc 试下呢

对 输入npm run compile

error TS2318: Cannot find global type ‘CallableFunction’.

error TS2318: Cannot find global type ‘NewableFunction’.

Found 2 errors.

npm ERR! code ELIFECYCLE

npm ERR! errno 2

npm ERR! [email protected] compile: `tsc`

npm ERR! Exit status 2

npm ERR!

npm ERR! Failed at the [email protected] compile script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

npm ERR!     /Users/zhangxiaolong/.npm/_logs/2019-01-11T07_20_07_330Z-debug.log

回到顶部