Skip to content
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

replace node-sass with sass and add some padding #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bhavya3024
Copy link

@bhavya3024 bhavya3024 commented Dec 1, 2024

Using node-sass gives errors in later version of python versions (internally uses python) and also this package has been deprecated as well. See here: https://www.npmjs.com/package/node-sass

Replaced with sass with no breaking changes guranteed.
Also added some padding. Your website requires some kind of spacing. Let me know if there is a requirement for these kind of fixes. I can help there.

npm error code 1
npm error path C:\Users\bhavy\Documents\Unstoppable-Wallet-Website\node_modules\node-sass
npm error command failed
npm error command C:\Windows\system32\cmd.exe /d /s /c node scripts/build.js
npm error Binary found at C:\Users\bhavy\Documents\Unstoppable-Wallet-Website\node_modules\node-sass\vendor\win32-x64-127\binding.node
npm error Testing binary
npm error Binary has a problem: Error: \\?\C:\Users\bhavy\Documents\Unstoppable-Wallet-Website\node_modules\node-sass\vendor\win32-x64-127\binding.node is not a valid Win32 application.
npm error \\?\C:\Users\bhavy\Documents\Unstoppable-Wallet-Website\node_modules\node-sass\vendor\win32-x64-127\binding.node
npm error     at Module._extensions..node (node:internal/modules/cjs/loader:1544:18)
npm error     at Module.load (node:internal/modules/cjs/loader:1249:32)
npm error     at Module._load (node:internal/modules/cjs/loader:1065:12)
npm error     at Module.require (node:internal/modules/cjs/loader:1271:19)
npm error     at require (node:internal/modules/helpers:123:16)
npm error     at module.exports (C:\Users\bhavy\Documents\Unstoppable-Wallet-Website\node_modules\node-sass\lib\binding.js:19:10)
npm error     at Object.<anonymous> (C:\Users\bhavy\Documents\Unstoppable-Wallet-Website\node_modules\node-sass\lib\index.js:13:35)
npm error     at Module._compile (node:internal/modules/cjs/loader:1434:14)
npm error     at Module._extensions..js (node:internal/modules/cjs/loader:1518:10)
npm error     at Module.load (node:internal/modules/cjs/loader:1249:32) {
npm error   code: 'ERR_DLOPEN_FAILED'
npm error }
npm error Building the binary locally
npm error Building: C:\Program Files\nodejs\node.exe C:\Users\bhavy\Documents\Unstoppable-Wallet-Website\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm error gyp info it worked if it ends with ok
npm error gyp verb cli [
npm error gyp verb cli   'C:\\Program Files\\nodejs\\node.exe',
npm error gyp verb cli   'C:\\Users\\bhavy\\Documents\\Unstoppable-Wallet-Website\\node_modules\\node-gyp\\bin\\node-gyp.js',
npm error gyp verb cli   'rebuild',
npm error gyp verb cli   '--verbose',
npm error gyp verb cli   '--libsass_ext=',
npm error gyp verb cli   '--libsass_cflags=',
npm error gyp verb cli   '--libsass_ldflags=',
npm error gyp verb cli   '--libsass_library='
npm error gyp verb cli ]
npm error gyp info using [email protected]
npm error gyp info using [email protected] | win32 | x64
npm error gyp verb command rebuild []
npm error gyp verb command clean []
npm error gyp verb clean removing "build" directory
npm error gyp verb command configure []
npm error gyp verb find Python Python is not set from command line or npm configuration
npm error gyp verb find Python checking Python explicitly set from environment variable PYTHON
npm error gyp verb find Python - process.env.PYTHON is " C:\Users\bhavy\AppData\Local\Microsoft\WindowsApps"    
npm error gyp verb find Python - executing " C:\Users\bhavy\AppData\Local\Microsoft\WindowsApps" to get executable path
npm error (node:10112) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
npm error (Use `node --trace-deprecation ...` to show where the warning was created)
npm error gyp verb find Python - " C:\Users\bhavy\AppData\Local\Microsoft\WindowsApps" is not in PATH or produced an error
npm error gyp verb find Python checking if "python3" can be used
npm error gyp verb find Python - executing "python3" to get executable path
npm error gyp verb find Python - executable path is "C:\Users\bhavy\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\python.exe"
npm error gyp verb find Python - executing "C:\Users\bhavy\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\python.exe" to get version
npm error gyp verb find Python - version is "3.12.7"
npm error gyp info find Python using Python version 3.12.7 found at "C:\Users\bhavy\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\python.exe"
npm error gyp verb get node dir no --target version specified, falling back to host node version: 22.2.0        
npm error gyp verb command install [ '22.2.0' ]
npm error gyp verb install input version string "22.2.0"
npm error gyp verb install installing version: 22.2.0
npm error gyp verb install --ensure was passed, so won't reinstall if already installed
npm error gyp verb install version is already installed, need to check "installVersion"
npm error gyp verb got "installVersion" 11
npm error gyp verb needs "installVersion" 9
npm error gyp verb install version is good
npm error gyp verb get node dir target node version installed: 22.2.0
npm error gyp verb build dir attempting to create "build" dir: C:\Users\bhavy\Documents\Unstoppable-Wallet-Website\node_modules\node-sass\build
npm error gyp verb build dir "build" dir needed to be created? Yes
npm error gyp verb find VS msvs_version not set from command line or npm config
npm error gyp verb find VS VCINSTALLDIR not set, not running in VS Command Prompt
npm error gyp verb find VS checking VS2022 (17.11.35431.28) found at:
npm error gyp verb find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
npm error gyp verb find VS - found "Visual Studio C++ core features"
npm error gyp verb find VS - found VC++ toolset: v143
npm error gyp verb find VS - found Windows SDK: 10.0.19041.0
npm error gyp info find VS using VS2022 (17.11.35431.28) found at:
npm error gyp info find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
npm error gyp info find VS run with --verbose for detailed information
npm error gyp verb build/config.gypi creating config file
npm error gyp verb build/config.gypi writing out config file: C:\Users\bhavy\Documents\Unstoppable-Wallet-Website\node_modules\node-sass\build\config.gypi
npm error gyp verb config.gypi checking for gypi file: C:\Users\bhavy\Documents\Unstoppable-Wallet-Website\node_modules\node-sass\config.gypi
npm error gyp verb common.gypi checking for gypi file: C:\Users\bhavy\Documents\Unstoppable-Wallet-Website\node_modules\node-sass\common.gypi
npm error gyp verb gyp gyp format was not specified; forcing "msvs"
npm error gyp info spawn C:\Users\bhavy\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\python.exe
npm error gyp info spawn args [
npm error gyp info spawn args   'C:\\Users\\bhavy\\Documents\\Unstoppable-Wallet-Website\\node_modules\\node-gyp\\gyp\\gyp_main.py',
npm error gyp info spawn args   'binding.gyp',
npm error gyp info spawn args   '-f',
npm error gyp info spawn args   'msvs',
npm error gyp info spawn args   '-I',
npm error gyp info spawn args   'C:\\Users\\bhavy\\Documents\\Unstoppable-Wallet-Website\\node_modules\\node-sass\\build\\config.gypi',
npm error gyp info spawn args   '-I',
npm error gyp info spawn args   'C:\\Users\\bhavy\\Documents\\Unstoppable-Wallet-Website\\node_modules\\node-gyp\\addon.gypi',
npm error gyp info spawn args   '-I',
npm error gyp info spawn args   'C:\\Users\\bhavy\\AppData\\Local\\node-gyp\\Cache\\22.2.0\\include\\node\\common.gypi',
npm error gyp info spawn args   '-Dlibrary=shared_library',
npm error gyp info spawn args   '-Dvisibility=default',
npm error gyp info spawn args   '-Dnode_root_dir=C:\\Users\\bhavy\\AppData\\Local\\node-gyp\\Cache\\22.2.0',    
npm error gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\bhavy\\Documents\\Unstoppable-Wallet-Website\\node_modules\\node-gyp',
npm error gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\bhavy\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\22.2.0\\\\<(target_arch)\\\\node.lib',
npm error gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\bhavy\\Documents\\Unstoppable-Wallet-Website\\node_modules\\node-sass',
npm error gyp info spawn args   '-Dnode_engine=v8',
npm error gyp info spawn args   '--depth=.',
npm error gyp info spawn args   '--no-parallel',
npm error gyp info spawn args   '--generator-output',
npm error gyp info spawn args   'C:\\Users\\bhavy\\Documents\\Unstoppable-Wallet-Website\\node_modules\\node-sass\\build',
npm error gyp info spawn args   '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error Traceback (most recent call last):
npm error   File "C:\Users\bhavy\Documents\Unstoppable-Wallet-Website\node_modules\node-gyp\gyp\gyp_main.py", line 42, in <module>
npm error     import gyp  # noqa: E402
npm error     ^^^^^^^^^^
npm error   File "C:\Users\bhavy\Documents\Unstoppable-Wallet-Website\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 9, in <module>
npm error     import gyp.input
npm error   File "C:\Users\bhavy\Documents\Unstoppable-Wallet-Website\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 19, in <module>
npm error     from distutils.version import StrictVersion
npm error ModuleNotFoundError: No module named 'distutils'
npm error gyp ERR! configure error
npm error gyp ERR! stack Error: `gyp` failed with exit code: 1
npm error gyp ERR! stack     at ChildProcess.onCpExit (C:\Users\bhavy\Documents\Unstoppable-Wallet-Website\node_modules\node-gyp\lib\configure.js:259:16)
npm error gyp ERR! stack     at ChildProcess.emit (node:events:520:28)
npm error gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:294:12)
npm error gyp ERR! System Windows_NT 10.0.22631
npm error gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\bhavy\\Documents\\Unstoppable-Wallet-Website\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm error gyp ERR! cwd C:\Users\bhavy\Documents\Unstoppable-Wallet-Website\node_modules\node-sass
npm error gyp ERR! node -v v22.2.0
npm error gyp ERR! node-gyp -v v8.4.1
npm error gyp ERR! not ok
npm error Build failed with error code: 1

npm error A complete log of this run can be found in: C:\Users\bhavy\AppData\Local\npm-cache\_logs\2024-12-01T21_06_41_681Z-debug-0.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant