尝试使用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
1条答案
按热度按时间vd8tlhqk1#
我将节点版本升级到v19.7.0,它对我有效!