ansrdyn
November 19, 2024, 5:14am
1
Hi, i already have project (actually old project), I’m using node v16.20.2 Mac M3 Sequoia 15 and python3 --version 3.13.0. I clone project meteor version 2.7.1, and when npm i its didn’t have error, but when running meteor it show error like this :
Errors prevented startup:
While loading package fourseven:scss@4.15.0:
error: Command failed:
/Users/admin/.meteor/packages/meteor-tool/.2.7.1.1ad0i45.8b42++os.osx.arm64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.arm64/dev_bundle/bin/npm
rebuild --update-binary
Cannot download “https://github.com/sass/node-sass/releases/download/v4.14.1/darwin-arm64-83_binding.node ”:
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY
or configure npm proxy via
npm config set proxy http :// example. com: 8080
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli
‘/Users/admin/.meteor/packages/meteor-tool/.2.7.1.1ad0i45.8b42++os.osx.arm64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.arm64/dev_bundle/bin/node’,
gyp verb cli
‘/Users/admin/.meteor/packages/fourseven_scss/.4.15.0.1qpj9hj.tpfe++os+web.browser+web.browser.legacy+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/node-gyp/bin/node-gyp.js’,
gyp verb cli ‘rebuild’,
gyp verb cli ‘–verbose’,
gyp verb cli ‘–libsass_ext=’,
gyp verb cli ‘–libsass_cflags=’,
gyp verb cli ‘–libsass_ldflags=’,
gyp verb cli ‘–libsass_library=’
gyp verb cli ]
gyp info using node-gyp@3.8.0
gyp info using node@14.19.1 | darwin | arm64
gyp verb command rebuild
gyp verb command clean
gyp verb clean removing “build” directory
gyp verb command configure
gyp verb check python checking for Python executable “/opt/homebrew/bin/python3.9” in the PATH
gyp verb which
succeeded /opt/homebrew/bin/python3.9 /opt/homebrew/bin/python3.9
gyp ERR! configure error
gyp ERR! stack Error: Command failed: /opt/homebrew/bin/python3.9 -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:383:12)
gyp ERR! stack at ChildProcess.emit (events.js:400:28)
gyp ERR! stack at maybeClose (internal/child_process.js:1058:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5)
gyp ERR! System Darwin 24.1.0
gyp ERR! command
“/Users/admin/.meteor/packages/meteor-tool/.2.7.1.1ad0i45.8b42++os.osx.arm64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.arm64/dev_bundle/bin/node”
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
i already tying using
brew install pyenv
pyenv install 2.7.18
export PATH=“$(pyenv root)/shims:${PATH}”
but it didnt works, could you guys help me?
thanks
Check if this discussion is helpful.
Meteor 3 required node version 20, when I try to run the command meteor add fourseven:scss, it fails with the following error
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 ‘build’,
npm error gyp info spawn args ‘-Goutput_dir=.’
npm error gyp info spawn args ]
npm error gyp: Undefined variable standalone_st…
ansrdyn
November 19, 2024, 7:18am
3
hallo, its didn’t working on me
do you have any suggest?
Did you try this
meteor remove fourseven:scss
meteor add leonardoventurini:scss
ansrdyn
November 19, 2024, 8:10am
5
its shows same error
meteor remove fourseven:scss
=> Errors after removing packages
While loading package fourseven:scss@4.15.0:
error: Command failed:
/Users/admin/.meteor/packages/meteor-tool/.2.7.1.1ad0i45.8b42++os.osx.arm64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.arm64/dev_bundle/bin/npm rebuild
–update-binary
Cannot download “https://github.com/sass/node-sass/releases/download/v4.14.1/darwin-arm64-83_binding.node ”:
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli
‘/Users/admin/.meteor/packages/meteor-tool/.2.7.1.1ad0i45.8b42++os.osx.arm64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.arm64/dev_bundle/bin/node’,
gyp verb cli
‘/Users/admin/.meteor/packages/fourseven_scss/.4.15.0.1qpj9hj.tpfe++os+web.browser+web.browser.legacy+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/node-gyp/bin/node-gyp.js’,
gyp verb cli ‘rebuild’,
gyp verb cli ‘–verbose’,
gyp verb cli ‘–libsass_ext=’,
gyp verb cli ‘–libsass_cflags=’,
gyp verb cli ‘–libsass_ldflags=’,
gyp verb cli ‘–libsass_library=’
gyp verb cli ]
gyp info using node-gyp@3.8.0
gyp info using node@14.19.1 | darwin | arm64
gyp verb command rebuild
gyp verb command clean
gyp verb clean removing “build” directory
gyp verb command configure
gyp verb check python checking for Python executable “/opt/homebrew/bin/python3.9” in the PATH
gyp verb which
succeeded /opt/homebrew/bin/python3.9 /opt/homebrew/bin/python3.9
gyp ERR! configure error
gyp ERR! stack Error: Command failed: /opt/homebrew/bin/python3.9 -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:383:12)
gyp ERR! stack at ChildProcess.emit (events.js:400:28)
gyp ERR! stack at maybeClose (internal/child_process.js:1058:16)
gyp ERR! stack at Socket. (internal/child_process.js:443:11)
gyp ERR! stack at Socket.emit (events.js:400:28)
gyp ERR! stack at Pipe. (net.js:686:12)
gyp ERR! System Darwin 24.1.0
gyp ERR! command
“/Users/admin/.meteor/packages/meteor-tool/.2.7.1.1ad0i45.8b42++os.osx.arm64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.arm64/dev_bundle/bin/node”
“/Users/admin/.meteor/packages/fourseven_scss/.4.15.0.1qpj9hj.tpfe++os+web.browser+web.browser.legacy+web.cordova/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=”
gyp ERR! cwd
/Users/admin/.meteor/packages/fourseven_scss/.4.15.0.1qpj9hj.tpfe++os+web.browser+web.browser.legacy+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/.temp-natlg4.c78a/node_modules/node-sass
gyp ERR! node -v v14.19.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.14.1 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.14.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
ok maybe try to delete the record from project/.meteor/packages
ansrdyn
November 19, 2024, 9:24am
7
its showing same error when running ‘meteor’ …
Is it caused by the ARM64 architecture?
btw, when running meteor list, its show same error too
rjdavid
November 19, 2024, 9:32am
8
You need to build the package locally using python 2.
harry97
November 19, 2024, 9:32am
9
Try pip3 install setuptools
the problem is that this doesn’t exist:
Cannot download https://github.com/sass/node-sass/releases/download/v4.14.1/darwin-arm64-83_binding.node
I think you need to somehow hard remove this package from your project. Maybe try to remove the package with internet turned off or remove the line from the packages files and delete everything from the .meteor/local folder except the db folder