首页 > 解决方案 > “抱歉,名称只能包含 URL 友好字符”的问题。

问题描述

我正在尝试来自https://www.positronx.io/build-angular-crud-application-with-nodejs-and-express-rest-api/的 Angular 12 教程,但无法执行以下命令:

npm install express cors body-parser mongoose

下面是代码:

PS D:\VArdhan\projects\node-angular\test> npm init

This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.

See `npm help init` for definitive documentation on these fields
and exactly what they do.

Use `npm install <pkg>` afterwards to install a package and
save it as a dependency in the package.json file.

Press ^C at any time to quit.

package name: (test) npm install express cors body-parser mongoose

Sorry, name can only contain URL-friendly characters.

标签: node.jsnpm

解决方案


推荐阅读