Difference between revisions of "Strapi Installation Tips"
Jump to navigation
Jump to search
Line 27: | Line 27: | ||
One may follow the instruction from [[ChatGPT]]: | One may follow the instruction from [[ChatGPT]]: | ||
1. Remove any Node.js versions installed on your system: | |||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*} | sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*} | ||
</syntaxhighlight> | |||
2. Remove the Node.js package manager (npm) cache: | |||
<syntaxhighlight lang=bash> | |||
sudo rm -rf ~/.npm | |||
</syntaxhighlight> | |||
3. Remove any global npm packages you have installed: | |||
<syntaxhighlight lang=bash> | |||
Remove any global npm packages you have installed: | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 12:20, 19 February 2023
For the Mac OS environment, when installing Strapi v. 4.6.1, is common to observe problems with Strapi Installation, it often fails by telling users the following message:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! better-sqlite3@7.4.6 install: prebuild-install
After facing the same problem many times, I realized that the best way is to remove the node installation files on your system, and then reinstall Strapi.
One may follow the instruction from ChatGPT:
1. Remove any Node.js versions installed on your system:
sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*}
2. Remove the Node.js package manager (npm) cache:
sudo rm -rf ~/.npm
3. Remove any global npm packages you have installed:
Remove any global npm packages you have installed: