“ node server.js”有效,但“ npm start”找不到节点

Answers to similar questions here and here do not resolve my issue.

在一个空目录中,我创建一个文件'server.js',它所做的只是一个console.log('hello')。使用“ node server.js”运行该文件运行良好。但是在通过“ npm start”运行“ npm init -y”之后,给出:

npm start  
The system cannot find the path specified.

> prj@1.0.0 start E:\projects\prj
> node server.js

/bin/bash: node: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file bash
npm ERR! errno ENOENT
npm ERR! prj@1.0.0 start: `node server.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the prj@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

详细的日志文件报告npm和node的正确版本。而所有这些都是在卸载/重新安装node.js之后。

有关如何解决/修复问题的任何提示。

项目目录:

E:\prj
 package.json
 package-lock.json
 server.js   
评论