mySweetApp
├─┬ node_modules
│ ├─┬ packageA@1.0.3 (top level dep)
│ │ ├── node_modules
│ │ │ ├── packageC@2.3.4 (2nd level dep)
│ ├─┬ packageB@0.4.5 (top level dep)
│ │ ├── node_modules
│ │ │ ├── packageC@2.3.4 (2nd level dep)
etc...
mySweetApp
├─┬ node_modules
│ ├── packageA@1.0.3
│ ├── packageB@0.4.5
│ ├── packageC@2.3.4
etc...
npm -v
npm install -g npm@latest
  1. First, adjust your body into a crouching position and hold on to your desk with one hand.
  2. With the other hand, carefully peck out npm install --force on your keyboard.
  3. Press <enter>, then watch the screen nervously. Try not to lose your balance. Hopefully, in a few seconds, all will be well. But if not, unleash the nuclear option with npm cache clear and then try force installing again.
  4. If that doesn’t work, step away for a second. Listen to some TLC and pour yourself some sparkling grape juice. When you feel ready, continue to the next step. Only you will know when you’re ready.
  5. With your mind refreshed, poke around a bit in the console output from NPM and see if anything jumps out. If you’re at a loss, head over to GitHub and open an issue in the Sails repo. One of us will help you out ASAP.

--

--

--

We make Sails work and things work with Sails.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sails

Sails

We make Sails work and things work with Sails.

More from Medium

The Most Popular JavaScript Frameworks of 2022

Why does my useEffect call twice in React 18?!

3 reasons you should be using ES6 Proxy for higher-order functions

JS-08— JavaScript for Programmers, Bonus Points