0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

yarnを実行すると「Name contains illegal characters」が発生する

Posted at

yarnの実行時に不正な文字列が検出されたというエラーが出ることがあります。

$ yarn run
yarn run v1.22.5
error package.json: Name contains illegal characters
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

これは package.json のnameの値に空白が含まれていると発生するようです。

- "name": "hoge fuga"
+ "name": "hogefuga"

空白を取り除けば発生しなくなります。


参考
Github issue - Name contains illegal characters

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?