LoginSignup
3
0

More than 3 years have passed since last update.

Resolve error: No valid exports main found for /node_modules/colorette の解決法

Last updated at Posted at 2020-08-10

Vue.js書いていてコミットしようとしたら、 vue-cli-service lint で怒られた。

✖ vue-cli-service lint found some errors. Please fix them and try committing again.
Error resolving webpackConfig Error: No valid exports main found for '/path/to/project/node_modules/colorette'

なんのこっちゃ・・・と思って調べたら、Node.jsのバージョンが古いのが問題らしい。
v13.5.0 でした。

別PCで作ったプロジェクトをクローンしたときに、差異が発生したのだろうか。

nvmが入っていたので、この記事を参考にバージョン上げ。

nvm ls-remote

で最新バージョンを確認。

nvm install v14.7.0

で最新バージョンをインストール。

プロジェクト内の node_modules を削除し、改めてパッケージをインストール。

npm install

無事、コミットできるようになりました:v:

3
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
3
0