Installing a package and getting an error

I tried to install a package and got errors using the terminal but I received this message, could you let me know what this means

C:\Users\pilla\react-shooter-test>meteor add fourseven:scss
 => Errors while adding packages:

While loading fourseven:scss@4.16.0...:
error: Command failed: C:\Windows\system32\cmd.exe /c
C:\Users\pilla\AppData\Local\.meteor\packages\meteor-tool\3.1.0\mt-os.windows.x86_64\dev_bundle\bin\npm.cmd
rebuild --update-binary
npm error code 1
npm error path
C:\Users\pilla\AppData\Local\Temp\mt-av1i5e.g5uh\plugin.compileScssBatch.os\npm\node_modules\meteor\compileScssBatch\node_modules\.temp-11ltqw5380o\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 Building:
C:\Users\pilla\AppData\Local\.meteor\packages\meteor-tool\3.1.0\mt-os.windows.x86_64\dev_bundle\bin\node.exe
C:\Users\pilla\AppData\Local\Temp\mt-av1i5e.g5uh\plugin.compileScssBatch.os\npm\node_modules\meteor\compileScssBatch\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:\\Users\\pilla\\AppData\\Local\\.meteor\\packages\\meteor-tool\\3.1.0\\mt-os.windows.x86_64\\dev_bundle\\bin\\node.exe',
npm error gyp verb cli
'C:\\Users\\pilla\\AppData\\Local\\Temp\\mt-av1i5e.g5uh\\plugin.compileScssBatch.os\\npm\\node_modules\\meteor\\compileScssBatch\\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 node-gyp@3.8.0
npm error gyp info using node@22.11.0 | 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 check python checking for Python executable
"C:\Users\pilla\AppData\Local\.meteor\packages\meteor-tool\3.1.0\mt-os.windows.x86_64\dev_bundle\python\python.exe"
in the PATH
npm error gyp verb `which` succeeded
C:\Users\pilla\AppData\Local\.meteor\packages\meteor-tool\3.1.0\mt-os.windows.x86_64\dev_bundle\python\python.exe
C:\Users\pilla\AppData\Local\.meteor\packages\meteor-tool\3.1.0\mt-os.windows.x86_64\dev_bundle\python\python.exe
npm error (node:32876) [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 ERR! configure error
npm error gyp ERR! stack Error: Command failed:
C:\Users\pilla\AppData\Local\.meteor\packages\meteor-tool\3.1.0\mt-os.windows.x86_64\dev_bundle\python\python.exe
-c import sys; print "%s.%s.%s" % sys.version_info[:3];
npm error gyp ERR! stack   File "<string>", line 1
npm error gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
npm error gyp ERR! stack                       ^
npm error gyp ERR! stack SyntaxError: invalid syntax
npm error gyp ERR! stack
npm error gyp ERR! stack     at genericNodeError (node:internal/errors:983:15)
npm error gyp ERR! stack     at wrappedFn (node:internal/errors:537:14)
npm error gyp ERR! stack     at ChildProcess.exithandler (node:child_process:419:12)
npm error gyp ERR! stack     at ChildProcess.emit (node:events:518:28)
npm error gyp ERR! stack     at maybeClose (node:internal/child_process:1104:16)
npm error gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:304:5)
npm error gyp ERR! System Windows_NT 10.0.22631
npm error gyp ERR! command
"C:\\Users\\pilla\\AppData\\Local\\.meteor\\packages\\meteor-tool\\3.1.0\\mt-os.windows.x86_64\\dev_bundle\\bin\\node.exe"
"C:\\Users\\pilla\\AppData\\Local\\Temp\\mt-av1i5e.g5uh\\plugin.compileScssBatch.os\\npm\\node_modules\\meteor\\compileScssBatch\\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\pilla\AppData\Local\Temp\mt-av1i5e.g5uh\plugin.compileScssBatch.os\npm\node_modules\meteor\compileScssBatch\node_modules\.temp-11ltqw5380o\node_modules\node-sass
npm error gyp ERR! node -v v22.11.0
npm error gyp ERR! node-gyp -v v3.8.0
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\pilla\AppData\Local\npm-cache\_logs\2024-12-22T13_33_03_445Z-debug-0.log
npm error code 1
npm error path
C:\Users\pilla\AppData\Local\Temp\mt-av1i5e.g5uh\plugin.compileScssBatch.os\npm\node_modules\meteor\compileScssBatch\node_modules\.temp-11ltqw5380o\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 Building:
C:\Users\pilla\AppData\Local\.meteor\packages\meteor-tool\3.1.0\mt-os.windows.x86_64\dev_bundle\bin\node.exe
C:\Users\pilla\AppData\Local\Temp\mt-av1i5e.g5uh\plugin.compileScssBatch.os\npm\node_modules\meteor\compileScssBatch\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:\\Users\\pilla\\AppData\\Local\\.meteor\\packages\\meteor-tool\\3.1.0\\mt-os.windows.x86_64\\dev_bundle\\bin\\node.exe',
npm error gyp verb cli
'C:\\Users\\pilla\\AppData\\Local\\Temp\\mt-av1i5e.g5uh\\plugin.compileScssBatch.os\\npm\\node_modules\\meteor\\compileScssBatch\\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 node-gyp@3.8.0
npm error gyp info using node@22.11.0 | 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 check python checking for Python executable
"C:\Users\pilla\AppData\Local\.meteor\packages\meteor-tool\3.1.0\mt-os.windows.x86_64\dev_bundle\python\python.exe"
in the PATH
npm error gyp verb `which` succeeded
C:\Users\pilla\AppData\Local\.meteor\packages\meteor-tool\3.1.0\mt-os.windows.x86_64\dev_bundle\python\python.exe
C:\Users\pilla\AppData\Local\.meteor\packages\meteor-tool\3.1.0\mt-os.windows.x86_64\dev_bundle\python\python.exe
npm error (node:32876) [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 ERR! configure error
npm error gyp ERR! stack Error: Command failed:
C:\Users\pilla\AppData\Local\.meteor\packages\meteor-tool\3.1.0\mt-os.windows.x86_64\dev_bundle\python\python.exe
-c import sys; print "%s.%s.%s" % sys.version_info[:3];
npm error gyp ERR! stack   File "<string>", line 1
npm error gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
npm error gyp ERR! stack                       ^
npm error gyp ERR! stack SyntaxError: invalid syntax
npm error gyp ERR! stack
npm error gyp ERR! stack     at genericNodeError (node:internal/errors:983:15)
npm error gyp ERR! stack     at wrappedFn (node:internal/errors:537:14)
npm error gyp ERR! stack     at ChildProcess.exithandler (node:child_process:419:12)
npm error gyp ERR! stack     at ChildProcess.emit (node:events:518:28)
npm error gyp ERR! stack     at maybeClose (node:internal/child_process:1104:16)
npm error gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:304:5)
npm error gyp ERR! System Windows_NT 10.0.22631
npm error gyp ERR! command
"C:\\Users\\pilla\\AppData\\Local\\.meteor\\packages\\meteor-tool\\3.1.0\\mt-os.windows.x86_64\\dev_bundle\\bin\\node.exe"
"C:\\Users\\pilla\\AppData\\Local\\Temp\\mt-av1i5e.g5uh\\plugin.compileScssBatch.os\\npm\\node_modules\\meteor\\compileScssBatch\\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\pilla\AppData\Local\Temp\mt-av1i5e.g5uh\plugin.compileScssBatch.os\npm\node_modules\meteor\compileScssBatch\node_modules\.temp-11ltqw5380o\node_modules\node-sass
npm error gyp ERR! node -v v22.11.0
npm error gyp ERR! node-gyp -v v3.8.0
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\pilla\AppData\Local\npm-cache\_logs\2024-12-22T13_33_03_445Z-debug-0.log
message.txt
9 KB

Do you have Python on your station and added to your station PATH?

I don’t know what Meteor version you are on but there is a more modern version of this package as leonardoventurini:scss based on Dart Sass (meteor-scss/package.js at 01ea21f4d43a5e34dafd323405e76d1a3d024acc · leonardoventurini/meteor-scss · GitHub) rather than node-sass.

I see you recently joined the forum. Please also note that this forum is searchable and most of the time you may find a solution without having to wait for a reply.

Welcome to the community!

The error you’re getting seems to be related to an incompatibility with the version of Python used during the build process. The specific error is caused by a Python 2.x script running on Python 3.x, which results in a syntax error (print "%s.%s.%s" % sys.version_info[:3]), as the print statement syntax changed between Python versions. To fix this, try installing Python 2.7, as it’s required by node-gyp for compiling certain modules, or update the dependencies in your project to support newer versions of Python. Additionally, you might need to update node-gyp or the node-sass package to versions that are compatible with your current environment.