无法在Visual Studio中运行node.js

问题描述 投票:0回答:3

Can't run node.js in visual studio

错误:找不到模块'F:\ New folder \ exp.js'

javascript node.js visual-studio-code node-modules web-deployment
3个回答
0
投票

在我看来,这是找到导致问题的项目而不是node.js的原因尝试给出正确的路径,看看是否可行我只是在猜测您发布的问题


0
投票

尝试运行此程序。

> node 01-routing-requests exp.js

您实际上必须在01-routing-requests文件夹中,才能运行node exp.js


0
投票

您的exp.js文件路径为F:\NEW FOLDER\01-routing-requests\exp.js,当前路径为F:\NEW FOLDER\,应使用该命令运行它:

node 01-routing-requests\exp.js
© www.soinside.com 2019 - 2024. All rights reserved.