回送4项目建设返回错误(错误2)开箱
回送4项目建设返回错误(错误2)开箱
尝试使用回送一个新项目(来决定这件事),并在之后我按照the docs page提到的步骤我得到这个错误:
Found 12 errors.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: `tsc --outDir dist --targ
回送4项目建设返回错误(错误2)开箱
尝试使用回送一个新项目(来决定这件事),并在之后我按照the docs page提到的步骤我得到这个错误:
Found 12 errors.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: `tsc --outDir dist --target es2017`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build 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/aa/.npm/_logs/2019-02-06T16_44_9_286Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] prepare: `npm run build`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] prepare 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/aa/.npm/_logs/2019-02-06T16_44_9_49Z-debug.log
Application start was created in start.`
任何想法,这是什么的,以及如何我可以解决呢?
对于错误的最后一部分提到的日志,这些都是它的相关线路:
7676 silly install [email protected]
7677 info lifecycle [email protected]~install: [email protected]
7678 silly postinstall [email protected]
7679 info lifecycle [email protected]~postinstall: [email protected]
7680 silly prepublish [email protected]
7681 info lifecycle [email protected]~prepublish: [email protected]
7682 info lifecycle [email protected]~prepare: [email protected]
768 verbose lifecycle [email protected]~prepare: unsafe-perm in lifecycle true
7684 verbose lifecycle [email protected]~prepare: PATH: /Users/aa/.nvm/versi/node/v10.14.1/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/aa/Documents/loopback-test-app/trial/start/node_modules/.bin:/Library/Frameworks/Python.framework/Versi/.7/bin:/Library/Frameworks/Python.framework/Versi/2.7/bin:/opt/local/bin:/opt/local/sbin:/Users/aa/.nvm/versi/node/v10.14.1/bin:/Users/aa/go/bin:/data/mongo/bin:/Users/aa/Users/aa/npm/lib/node_modules/strapi:/Users/aa/.npm-packages/bin:/Users/g/Library/Haskell/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applicati:/usr/local/go/bin:/Applicati/Postgres.app/Contents/Versi/latest/bin
7685 verbose lifecycle [email protected]~prepare: CWD: /Users/aa/Documents/loopback-test-app/trial/start
7686 silly lifecycle [email protected]~prepare: Args: [ '-c', 'npm run build' ]
7687 silly lifecycle [email protected]~prepare: Returned: code: 2 signal: null
7688 info lifecycle [email protected]~prepare: Failed to exec prepare script
7689 verbose stack Error: [email protected] prepare: `npm run build`
7689 verbose stack Exit status 2
7689 verbose stack at EventEmitter.<anonymous> (/Users/aa/.nvm/versi/node/v10.14.1/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:01:16)
7689 verbose stack at (events.js:182:1)
7689 verbose stack at ChildProcess.<anonymous> (/Users/aa/.nvm/versi/node/v10.14.1/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
7689 verbose stack at (events.js:182:1)
7689 verbose stack at maybeClose (internal/child_process.js:962:16)
7689 verbose stack at Process.ChildProcess._ (internal/child_process.js:251:5)
7690 verbose pkgid [email protected]
7691 verbose cwd /Users/aa/Documents/loopback-test-app/trial/start
7692 verbose Darwin 18.2.0
769 verbose ar "/Users/aa/.nvm/versi/node/v10.14.1/bin/node" "/Users/aa/.nvm/versi/node/v10.14.1/bin/npm" "install" "--cache-min" "86400"
7694 verbose node v10.14.1
7695 verbose npm v6.4.1
7696 error code ELIFECYCLE
7697 error errno 2
7698 error [email protected] prepare: `npm run build`
7698 error Exit status 2
7699 error Failed at the [email protected] prepare script.
7699 error This is probably not a problem with npm. There is likely additional logging output above.
7700 verbose exit [ 2, true ]
回答如下:
原来,回送4未知原因没有安装所需的打字稿摩卡类型。我进入应用程序的根文件夹,并用npm install @types/mocha
安装。现在,它的工作原理。
#感谢您对电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格的认可,转载请说明来源于"电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格
上传时间: 2024-04-14 21:44:53
推荐阅读
留言与评论(共有 15 条评论) |
本站网友 鸡蛋煮几分钟 | 9分钟前 发表 |
npm ERR! /Users/aa/.npm/_logs/2019-02-06T16_44_9_49Z-debug.log Application start was created in start.` 任何想法 | |
本站网友 html5网站 | 29分钟前 发表 |
npm ERR! /Users/aa/.npm/_logs/2019-02-06T16_44_9_286Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! [email protected] prepare | |
本站网友 什么是商住楼 | 30分钟前 发表 |
npm ERR! /Users/aa/.npm/_logs/2019-02-06T16_44_9_286Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! [email protected] prepare | |
本站网友 槟榔是什么 | 23分钟前 发表 |
`tsc --outDir dist --target es2017` npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the [email protected] build 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 | |
本站网友 保险费计算器 | 7分钟前 发表 |
/Applicati | |
本站网友 铱星公司 | 1分钟前 发表 |
14) 7689 verbose stack at (events.js | |
本站网友 东莞男科 | 12分钟前 发表 |
unsafe-perm in lifecycle true 7684 verbose lifecycle [email protected]~prepare | |
本站网友 离婚案 | 20分钟前 发表 |
/opt/local/bin | |
本站网友 涅磐乐队 | 0秒前 发表 |
回送4未知原因没有安装所需的打字稿摩卡类型 | |
本站网友 丰田suv报价及图片 | 0秒前 发表 |
/Users/aa/.nvm/versi/node/v10.14.1/bin | |
本站网友 深圳中信红树湾 | 8分钟前 发表 |
并在之后我按照the docs page提到的步骤我得到这个错误: Found 12 errors. npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! [email protected] build | |
本站网友 新生儿如何护理 | 12分钟前 发表 |
962 | |
本站网友 企业增资流程 | 9分钟前 发表 |
它的工作原理 | |
本站网友 割眼皮 | 13分钟前 发表 |
它的工作原理 |