Difference between revisions of "Strapi Installation Tips"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
{{Blockquote | {{Blockquote | ||
|text= | |text= | ||
npm ERR! code ELIFECYCLE | npm ERR! code ELIFECYCLE | ||
npm ERR! errno 1 | npm ERR! errno 1 | ||
Line 23: | Line 22: | ||
|sign=[https://forum.strapi.io/t/errors-when-installing-strapi-npx-create-strapi-app-latest-my-project/17744/11 This error message is an excerpt from Strapi.io Website] | |sign=[https://forum.strapi.io/t/errors-when-installing-strapi-npx-create-strapi-app-latest-my-project/17744/11 This error message is an excerpt from Strapi.io Website] | ||
}} | }} | ||
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]]: | |||
<syntaxhighlight language=bash> | |||
sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*} | |||
</syntaxhighlight> |
Revision as of 12:19, 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:
sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*}