Discord bot configure shows Input Files Missing Error
See original GitHub issueHey,
I installed node-gyp for my discord bot. I ran everything correctly until I reached node-gyp configure
. I placed a binding.gyp
file in the root of my project.
Binding.gyp File
{
"targets": [
{
"target_name": "binding",
"sources": [ "src/binding.cc" ]
}
]
}
Then, I ran, node-gyp configure
. When I ran this, it showed that everything was ok, except for one part. The last three lines threw an error, that the Input Files were missing
.
Configure Output
node-gyp configure
gyp info it worked if it ends with ok
gyp info using node-gyp@7.1.2
gyp info using node@15.7.0 | win32 | x64
gyp info find Python using Python version 3.9.1 found at "C:\Python39\python.exe"
gyp info find VS using VS2017 (15.9.28307.1401) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Python39\python.exe
gyp info spawn args [
gyp info spawn args 'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-I',
gyp info spawn args 'D:\\Chintu\\Discord\\Xyborg\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\Administrator\\AppData\\Local\\node-gyp\\Cache\\15.7.0\\include\\node\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\Administrator\\AppData\\Local\\node-gyp\\Cache\\15.7.0',
gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\Administrator\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\15.7.0\\\\<(target_arch)\\\\node.lib',
gyp info spawn args '-Dmodule_root_dir=D:\\Chintu\\Discord\\Xyborg',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'D:\\Chintu\\Discord\\Xyborg\\build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
Warning: Missing input files:
D:\Chintu\Discord\Xyborg\build\..\src\binding.cc
gyp info ok
I thought that this was some ignorable error because the last line showed that gyp info ok
. I proceeded with the node-gyp build
command
Build Output
gyp info it worked if it ends with ok
gyp info using node-gyp@7.1.2
gyp info using node@15.7.0 | win32 | x64
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe
gyp info spawn args [
gyp info spawn args 'build/binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64'
gyp info spawn args ]
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
binding.cc
c1xx : fatal error C1083: Cannot open source file: '..\src\binding.cc': No such file or directory [D:\Chintu\Discord\Xyborg\build\binding.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\Administrator\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (node:events:379:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
gyp ERR! System Windows_NT 10.0.19042
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build"
gyp ERR! cwd D:\Chintu\Discord\Xyborg
gyp ERR! node -v v15.7.0
gyp ERR! node-gyp -v v7.1.2
gyp ERR! not ok
So, how do I fix that Input Files Missing Error
, and finally use gyp, so that I can use sqlite3
Thanks for helping me 😃
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
discord bot missing permission but granted admin access
If the bot has administrator, it simply has access to all channels. This error means that the bot user either does not have...
Read more >Errors - discord.js Guide
The most common causes of this error are: Not importing the config or env file correctly; Copying the client secret instead of the...
Read more >How to Make a Discord Bot: An Overview and Tutorial - Toptal
First, we need to create a log channel in Discord and get its channel ID. The channel ID can be found using the...
Read more >How Roles cause Missing Permission Errors in Discord.js
After struggling to understand why my Discord.js bot was throwing a DiscordAPIError: Missing Permissions even with full admin permissions, I found out that ......
Read more >Discord Bot Maker - Steam Community
Updated to Discord.js v13.8.0. This will add compatibility for vc text channels. Fixed issue with Show Modal that made slash-command parameters inaccessible ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok, so I found a fix I changed some things in my
binding.gyp file
Binding.gyp file
This helped me… Thanks for the help @cclauss
Copy paste the binding.gyp file, and then add an empty binding.cc file at the root, beside package.json-this didnt work for me showing the same error@WickedWizard3588