Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动时提示,node不是内容命令 #513

Open
tomnattle opened this issue Dec 14, 2022 · 0 comments
Open

启动时提示,node不是内容命令 #513

tomnattle opened this issue Dec 14, 2022 · 0 comments

Comments

@tomnattle
Copy link

错误如下:
node is not recognized as an internal or external command

启动时提示,node不是内容命令,有人提示是环境变量错误,经过我检查node的环境变量是正确的。

解决办法:填写具体的node路径,
改制前
"start:dev": "nodemon --ext js,ts,json,env --exec "node --experimental-specifier-resolution=node --loader ts-node/esm" src/main.ts",
改之后
"start:dev": "nodemon --ext js,ts,json,env --exec "C://PROGRA~1//nodejs//node --experimental-specifier-resolution=node --loader ts-node/esm" src/main.ts",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant