Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

create-directus-project run failured #13166

Closed
liuyang3688 opened this issue May 7, 2022 · 0 comments
Closed

create-directus-project run failured #13166

liuyang3688 opened this issue May 7, 2022 · 0 comments

Comments

@liuyang3688
Copy link

liuyang3688 commented May 7, 2022

Describe the Bug

Steps:

Error:

gyp: Undefined variable module_name in binding.gyp while trying to load binding.gyp

Path:

  1. create-directus-project.cmd
  2. npm install directus
  3. npm install argon2
  4. node-gyp compile
  5. compile need configure module_name & module_path. But I didnt found pos.

Question:
I dont know exactly where to configure variables above?

If somebody knows and would like inform me, appreciated and thanks.

To Reproduce

npm init directus-project sample

OR

yarn create directus-project sample

Errors Shown

npm ERR! path E:\ruilang\qserver\node_modules\argon2
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.4.1
npm ERR! gyp info using node@16.14.2 | win32 | x64
npm ERR! gyp info find Python using Python version 3.8.0 found at "E:\Devenv\Python\Python38\python.exe"
npm ERR! gyp info find VS using VS2022 (17.1.32421.90) found at:
npm ERR! gyp info find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
npm ERR! gyp info find VS run with --verbose for detailed information
npm ERR! gyp info spawn E:\Devenv\Python\Python38\python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args 'E:\ruilang\qserver\node_modules\node-gyp\gyp\gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'msvs',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'E:\ruilang\qserver\node_modules\argon2\build\config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'E:\ruilang\qserver\node_modules\node-gyp\addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\Users\Administrator\AppData\Local\node-gyp\Cache\16.14.2\include\node\common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=C:\Users\Administrator\AppData\Local\node-gyp\Cache\16.14.2',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=E:\ruilang\qserver\node_modules\node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\Users\\Administrator\\AppData\\Local\\node-gyp\\Cache\\16.14.2\\<(target_arch)\\node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=E:\ruilang\qserver\node_modules\argon2',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'E:\ruilang\qserver\node_modules\argon2\build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp: Undefined variable module_name in binding.gyp while trying to load binding.gyp
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: gyp failed with exit code: 1
npm ERR! gyp ERR! stack at ChildProcess.onCpExit (E:\ruilang\qserver\node_modules\node-gyp\lib\configure.js:259:16)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:526:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Windows_NT 10.0.19043
npm ERR! gyp ERR! command "E:\Devenv\nodejs\node.exe" "E:\ruilang\qserver\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd E:\ruilang\qserver\node_modules\argon2
npm ERR! gyp ERR! node -v v16.14.2
npm ERR! gyp ERR! node-gyp -v v8.4.1
npm ERR! gyp ERR! not ok

What version of Directus are you using?

9.10.0

What version of Node.js are you using?

16.14.2

What database are you using?

mysql

What browser are you using?

chrome

How are you deploying Directus?

running locally

@liuyang3688 liuyang3688 changed the title create-directus-project exec failure create-directus-project run failured May 7, 2022
@directus directus locked and limited conversation to collaborators May 7, 2022
@azrikahar azrikahar converted this issue into discussion #13168 May 7, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant