最新消息: 电脑我帮您提供丰富的电脑知识,编程学习,软件下载,win7系统下载。

回送4项目建设返回错误(错误2)开箱

IT培训 admin 2浏览 0评论

回送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_39_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_39_349Z-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]
7683 verbose lifecycle [email protected]~prepare: unsafe-perm in lifecycle true
7684 verbose lifecycle [email protected]~prepare: PATH: /Users/aa/.nvm/versions/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/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/opt/local/bin:/opt/local/sbin:/Users/aa/.nvm/versions/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:/Applications:/usr/local/go/bin:/Applications/Postgres.app/Contents/Versions/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/versions/node/v10.14.1/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
7689 verbose stack     at EventEmitter.emit (events.js:182:13)
7689 verbose stack     at ChildProcess.<anonymous> (/Users/aa/.nvm/versions/node/v10.14.1/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
7689 verbose stack     at ChildProcess.emit (events.js:182:13)
7689 verbose stack     at maybeClose (internal/child_process.js:962:16)
7689 verbose stack     at Process.ChildProcess._handle.onexit (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
7693 verbose argv "/Users/aa/.nvm/versions/node/v10.14.1/bin/node" "/Users/aa/.nvm/versions/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安装。现在,它的工作原理。

回送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_39_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_39_349Z-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]
7683 verbose lifecycle [email protected]~prepare: unsafe-perm in lifecycle true
7684 verbose lifecycle [email protected]~prepare: PATH: /Users/aa/.nvm/versions/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/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/opt/local/bin:/opt/local/sbin:/Users/aa/.nvm/versions/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:/Applications:/usr/local/go/bin:/Applications/Postgres.app/Contents/Versions/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/versions/node/v10.14.1/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
7689 verbose stack     at EventEmitter.emit (events.js:182:13)
7689 verbose stack     at ChildProcess.<anonymous> (/Users/aa/.nvm/versions/node/v10.14.1/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
7689 verbose stack     at ChildProcess.emit (events.js:182:13)
7689 verbose stack     at maybeClose (internal/child_process.js:962:16)
7689 verbose stack     at Process.ChildProcess._handle.onexit (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
7693 verbose argv "/Users/aa/.nvm/versions/node/v10.14.1/bin/node" "/Users/aa/.nvm/versions/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安装。现在,它的工作原理。

发布评论

评论列表 (0)

  1. 暂无评论