NodeJS 尝试在AdonisJS中安装新项目时出错

tv6aics1  于 2023-03-17  发布在  Node.js
关注(0)|答案(1)|浏览(98)

尝试使用npm安装adonisJs时出现错误,我nodeJs版本v16.17.0和npm版本9.6.1

Command failed with exit code 1: node ace configure tests Error: spawn npm ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:478:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) CREATE: test.ts CREATE: tests/bootstrap.ts CREATE: tests/functional/hello_world.spec.ts CREATE: contracts/tests.ts UPDATE: .adonisrc.json CREATE: .env.test UPDATE: tsconfig.json CREATE: .env.test [ wait ]  installing @japa/runner, @japa/preset-adonis ...

[ error ]  Unable to create project. Cleaning up
vd8tlhqk

vd8tlhqk1#

我将节点版本升级到v19.7.0,它对我有效!

相关问题