我在使用带有初始化项目的 aeproject 测试命令时遇到错误
I'm getting an error using aeproject test command with initialized project
我通过以下方式安装了 aeproject:
$ npm install -g aeproject
用
初始化了我的项目
$ aeproject init
当我想用
测试它时
$ aeproject test
我收到以下错误:
(node:68448) UnhandledPromiseRejectionWarning:
/Users/meli/MyStuff/MyAE/ae_tutorial1/node_modules/aeproject-lib/dist/aeproject-deployer.js:1
Error: Cannot find module 'aeproject-utils' Require stack:
- /Users/meli/MyStuff/MyAE/ae_tutorial1/node_modules/aeproject-lib/dist/aeproject-deployer.js
- /Users/meli/MyStuff/MyAE/ae_tutorial1/node_modules/aeproject-lib/dist/index.js
- /Users/meli/MyStuff/MyAE/ae_tutorial1/test/exampleTest.js
- /usr/local/lib/node_modules/aeproject/node_modules/mocha/lib/mocha.js
- /usr/local/lib/node_modules/aeproject/node_modules/mocha/index.js
- /usr/local/lib/node_modules/aeproject/aeproject-test/aeproject-test.js
- /usr/local/lib/node_modules/aeproject/aeproject-test/test.js
- /usr/local/lib/node_modules/aeproject/commands.js
- /usr/local/lib/node_modules/aeproject/aeproject-cli.js
at Object. (/Users/meli/MyStuff/MyAE/ae_tutorial1/node_modules/aeproject-lib/dist/aeproject-deployer.js:21:43)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) (Use
node --trace-warnings ...
to show where the warning was created) (node:68448)
UnhandledPromiseRejectionWarning: Unhandled promise rejection. This
error originated either by throwing inside of an async function
without a catch block, or by rejecting a promise which was not handled
with .catch(). To terminate the node process on unhandled promise
rejection, use the CLI flag --unhandled-rejections=strict
(see
https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode).
(rejection id: 2) (node:68448) [DEP0018] DeprecationWarning: Unhandled
promise rejections are deprecated. In the future, promise rejections
that are not handled will terminate the Node.js process with a
non-zero exit code.
您可以通过
解决这个问题
$ npm install aeproject-utils prompts aeproject-logger
我通过以下方式安装了 aeproject:
$ npm install -g aeproject
用
初始化了我的项目$ aeproject init
当我想用
测试它时$ aeproject test
我收到以下错误:
(node:68448) UnhandledPromiseRejectionWarning: /Users/meli/MyStuff/MyAE/ae_tutorial1/node_modules/aeproject-lib/dist/aeproject-deployer.js:1 Error: Cannot find module 'aeproject-utils' Require stack:
- /Users/meli/MyStuff/MyAE/ae_tutorial1/node_modules/aeproject-lib/dist/aeproject-deployer.js
- /Users/meli/MyStuff/MyAE/ae_tutorial1/node_modules/aeproject-lib/dist/index.js
- /Users/meli/MyStuff/MyAE/ae_tutorial1/test/exampleTest.js
- /usr/local/lib/node_modules/aeproject/node_modules/mocha/lib/mocha.js
- /usr/local/lib/node_modules/aeproject/node_modules/mocha/index.js
- /usr/local/lib/node_modules/aeproject/aeproject-test/aeproject-test.js
- /usr/local/lib/node_modules/aeproject/aeproject-test/test.js
- /usr/local/lib/node_modules/aeproject/commands.js
- /usr/local/lib/node_modules/aeproject/aeproject-cli.js at Object. (/Users/meli/MyStuff/MyAE/ae_tutorial1/node_modules/aeproject-lib/dist/aeproject-deployer.js:21:43) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) (Use
node --trace-warnings ...
to show where the warning was created) (node:68448) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) (node:68448) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
您可以通过
解决这个问题$ npm install aeproject-utils prompts aeproject-logger