'Issue for "Sorry, name can only contain URL-friendly characters."
I am trying tutorial for Angular 12 from https://www.positronx.io/build-angular-crud-application-with-nodejs-and-express-rest-api/ and cannot execute below command:
npm install express cors body-parser mongoose
Below is the code:
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.
Solution 1:[1]
This is actually a request for confirmation. The failure you're seeing could be solved by pressing return/enter and confirming the name. After doing this you will see multiple details to be confirmed. (test) is indeed a url-friendly name.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Giovanni Hislop |