I get the following Error in Node.js `Uncaught SyntaxError: Invalid or unexpected token`

I get the following Error in Node.js `Uncaught SyntaxError: Invalid or unexpected token`

C:\Users\User 1\Desktop\nlp_samurai\nlp_samurai\>npm install --save

如果我在 Node.js 终端中 运行 这个命令我得到以下错误 Uncaught SyntaxError: Invalid or unexpected token..我需要 运行 这个命令来安装所有需要的 [=来自 github..Check the project In this link for better understanding

的项目的 15=] 个模块

您遇到的问题是尝试使用其中的目录名称调用命令 npm install --save,而不是 运行从 目录调用命令 .

项目页面上提到的命令是为了安装项目依赖项。它必须是目录 nlp_samurai\nlp_samurai\ 中的 运行。最简单的方法是调用 cd [directory name](更改目录),然后调用 运行 npm install --save.

您可以查看 this tutorial 以了解有关在 Windows 命令行中导航的更多信息。