-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
strapi not installing with yarn create strapi-app my-project --quickstart #9120
Comments
same here man |
Did you find any way to install strapi ? |
just got fixed ! change the sqlite3 version to 5.0.0 in package.json let me know if it works for u |
same here |
Hi, [4/5] Linking dependencies... |
try clean install |
When you installed Node.js did you also install the build tools? On Windows when you install Node you will get a step like this: Which after install Node will bring up a command prompt window like this to install those tools: You can also find this script in your start menu if you forgot to check the box: When the script is finished you will see it installed 8 packages: Or you can visit: https://github.com/nodejs/node-gyp#on-windows |
Looks like there may be an issue with SQLite 5.0.1 on Windows, pending confirmation: TryGhost/node-sqlite3#1424 |
I am unable to reproduce on my own machine: OS Name Microsoft Windows 10 Pro |
Users having this issue, can you please navigate to your new project and modify the package.json to set the |
Hi, I tried to install buildtools from Nodejs (either using the suggested npm line or using the provided script) but it installs Python2.7 and this is messing up my environment which is based on Python 3.9 ... I think the problem is here, not in strapi itself but upstream, but I don't know how to convince buildtools/nodejs to use the existing Python (which is included in the PATH) and not overwrite ( = destroy) it. |
Did the issue is resolved |
same problem |
So now it's worked ? |
yes |
i do similar thing but not worked for me it's give different error not Step-1 i run the command: npx create-strapi-app test-project-1 --quickstart but it's give me the error link above:- PS C:\Users\prash\OneDrive\Desktop\root> npx create-strapi-app test-project-1 --quickstart Creating a quickstart project. npm ERR! code ELIFECYCLE npm ERR! A complete log of this run can be found in: Keep trying! Oh, it seems that you encountered errors while installing dependencies in your project. cd C:\Users\prash\OneDrive\Desktop\root\test-project-1 && npm install then i changed sqlite3 version to and run the command npm install inside project folder but when i run the project it's give the error like this and also its does not create any index.html file or build folder |
It's my case. try My case was same as you. I did it and success. |
but what if I want to debugging the project Isn't this command directly build the project for production use ? |
I thought like you :) But It was builded for developement version when I used that command ! After building it, you should use It will be builded with developement version when you don't use |
I applied tips in this thread but I'm still getting issue with sqlite3 and python path |
This issue has been mentioned on Strapi Community Forum. There might be relevant details there: https://forum.strapi.io/t/cannot-create-new-strapi-project-mac/2104/5 |
If you have depends issues: Windows => #9120 (comment) If you have an issues with building SQLite, see: #9120 (comment) Locking thread as no new info, will unlock if we need more info. |
This issue has been mentioned on Strapi Community Forum. There might be relevant details there: https://forum.strapi.io/t/error-while-doing-npm-install-i-tried-with-node-12-14-as-well/2880/2 |
Bug report
Describe the bug
Hi, I cannot install strapi at all, either using yarn or npx
I get errors installing dependencies but I don't know how to address this. It seems to me at some point (sqlite3) it executes a Python2 script, while my systems runs on Python3, but I've no idea (I'm new to th eecosystem as well)
Steps to reproduce the behavior
execute
yarn create strapi-app my-project --quickstart
at the CLI
Screenshots
See errors below
System
Additional context
Creating a quickstart project.
Creating files.
Error while installing dependencies:
warning strapi > [email protected]: This module has moved and is now available at @hapi/boom. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
warning strapi > koa-ip > [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
warning strapi > boom > [email protected]: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
warning strapi > chokidar > [email protected]: "Please update to latest v2.3 or v2.2"
warning strapi-admin > @babel/[email protected]: 🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.
warning strapi-admin > webpack-dev-server > [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning strapi-admin > webpack-dev-server > chokidar > [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning strapi-admin > @babel/polyfill > [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
warning strapi-admin > react-intl > @formatjs/[email protected]: We have renamed the package to @formatjs/intl-numberformat
warning strapi-admin > react-intl > [email protected]: backwards incompatible, please upgrade to 6.0 instead
warning strapi-admin > react-intl > intl-messageformat > [email protected]: backwards incompatible, please upgrade to 6.0 instead
warning strapi-admin > reactstrap > react-popper > [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
warning strapi-admin > webpack > watchpack > watchpack-chokidar2 > [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning strapi-admin > webpack-dev-server > chokidar > braces > snapdragon > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated
warning strapi-admin > webpack-dev-server > chokidar > braces > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
warning strapi-plugin-users-permissions > [email protected]: request has been deprecated, see request/request#3142
warning strapi-plugin-users-permissions > request > [email protected]: this library is no longer supported
warning strapi-plugin-email > strapi-provider-email-sendmail > sendmail > [email protected]: This project is unmaintained
warning strapi-plugin-email > strapi-provider-email-sendmail > sendmail > mailcomposer > [email protected]: This project is unmaintained
warning knex > [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
warning sqlite3 > node-gyp > [email protected]: request has been deprecated, see request/request#3142
warning "strapi-admin > [email protected]" has unmet peer dependency "[email protected] - 3".
warning "strapi-admin > [email protected]" has unmet peer dependency "popper.js@^1.16.1".
warning "strapi-admin > @buffetjs/styles > [email protected]" has unmet peer dependency "react-with-direction@^1.3.1".
warning "strapi-plugin-users-permissions > [email protected]" has unmet peer dependency "koa@>=2.0.0".
warning " > [email protected]" has incorrect peer dependency "knex@^0.20.0".
error C:\Users\mv68b\OneDrive - University of Glasgow\Data\git\strapi5\my-project\node_modules\sqlite3: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build
Arguments:
Directory: C:\Users\mv68b\OneDrive - University of Glasgow\Data\git\strapi5\my-project\node_modules\sqlite3
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | win32 | x64
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp info check checked for "C:\Users\mv68b\OneDrive - University of Glasgow\Data\git\strapi5\my-project\node_modules\sqlite3\lib\binding\napi-v6-win32-x64\node_sqlite3.node" (not found)
node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v5.0.1/napi-v6-win32-x64.tar.gz
node-pre-gyp http 403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v5.0.1/napi-v6-win32-x64.tar.gz
node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v5.0.1/napi-v6-win32-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v83 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v5.0.1/napi-v6-win32-x64.tar.gz
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Users\mv68b\AppData\Local\Programs\Python\Python39\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:308:12)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at maybeClose (internal/child_process.js:1048:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
gyp ERR! System Windows_NT 10.0.19041
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\mv68b\OneDrive - University of Glasgow\Data\git\strapi5\my-project\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Users\mv68b\OneDrive - University of Glasgow\Data\git\strapi5\my-project\node_modules\sqlite3\lib\binding\napi-v6-win32-x64\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\Users\mv68b\OneDrive - University of Glasgow\Data\git\strapi5\my-project\node_modules\sqlite3\lib\binding\napi-v6-win32-x64" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=6" "--node_napi_label=napi-v6"
gyp ERR! cwd C:\Users\mv68b\OneDrive - University of Glasgow\Data\git\strapi5\my-project\node_modules\sqlite3
gyp ERR! node -v v14.15.4
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\mv68b\OneDrive - University of Glasgow\Data\git\strapi5\my-project\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\mv68b\OneDrive - University of Glasgow\Data\git\strapi5\my-project\node_modules\sqlite3\lib\binding\napi-v6-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\mv68b\OneDrive - University of Glasgow\Data\git\strapi5\my-project\node_modules\sqlite3\lib\binding\napi-v6-win32-x64 --napi_version=7 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\mv68b\OneDrive - University of Glasgow\Data\git\strapi5\my-project\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1048:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
node-pre-gyp ERR! System Windows_NT 10.0.19041
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\mv68b\OneDrive - University of Glasgow\Data\git\strapi5\my-project\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\mv68b\OneDrive - University of Glasgow\Data\git\strapi5\my-project\node_modules\sqlite3
node-pre-gyp ERR! node -v v14.15.4
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\mv68b\OneDrive - University of Glasgow\Data\git\strapi5\my-project\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\mv68b\OneDrive - University of Glasgow\Data\git\strapi5\my-project\node_modules\sqlite3\lib\binding\napi-v6-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\mv68b\OneDrive - University of Glasgow\Data\git\strapi5\my-project\node_modules\sqlite3\lib\binding\napi-v6-win32-x64 --napi_version=7 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6' (1)
Keep trying!
The text was updated successfully, but these errors were encountered: