Help us understand the problem. What is going on with this article?

node.jsをバージョンアップしたら最初にやるべきこと

More than 5 years have passed since last update.

これだけ

node_modules入れ直しの例.
// node_modulesを消して
rm -rf node_modules

// 新たに入れ直し(必要に応じてsudo)
npm install

なんで?

バージョンをあげたら、node_modulesは新しい処理系でビルドし直す必要があるからということです。でも、たまに消さなくても動いちゃうことがあるのでややこしいという。

おまけ

npm installして起動したのにエラーが出る場合は、エラーメッセージで吼えているnpmを探しましょう。
大方、該当のnpm入れ直すと改善します。一度uninstallしてからまたinstallしましょう

swig-email-templates入れ直しの例.
npm uninstall swig-email-templates
npm install swig-email-templates
hiro93n
IoT界隈のプロダクトマネージャーの人
https://note.mu/hiro93n
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした