Ask Your Question
1

What is the meaning of the error "Name contains illegal characters" that is displayed when using the Yarn command on the file ..\..\package.json?

asked 2023-05-18 13:01:28 +0000

djk gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-05-18 13:16:01 +0000

qstack gravatar image

This error message indicates that the name of the package listed in the package.json file contains characters that are not allowed in a package name. In npm or Yarn, package names must be lowercase and can only contain lowercase letters, numbers, hyphens, and underscores. Any other characters will generate this error message.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-18 13:01:28 +0000

Seen: 9 times

Last updated: May 18 '23