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

Cannot npm install #32

Open
magic3584 opened this issue Jan 16, 2024 · 0 comments
Open

Cannot npm install #32

magic3584 opened this issue Jan 16, 2024 · 0 comments

Comments

@magic3584
Copy link

npm ERR! code 1
npm ERR! path Downloads/Mobile-app-landingpage-template-master/node_modules/node-sass
npm ERR! command failed
npm ERR! command sh -c node scripts/build.js
npm ERR! Building: /usr/local/Cellar/node/21.4.0/bin/node Downloads/Mobile-app-landingpage-template-master/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp verb cli [
npm ERR! gyp verb cli '/usr/local/Cellar/node/21.4.0/bin/node',
npm ERR! gyp verb cli 'Downloads/Mobile-app-landingpage-template-master/node_modules/node-gyp/bin/node-gyp.js',
npm ERR! gyp verb cli 'rebuild',
npm ERR! gyp verb cli '--verbose',
npm ERR! gyp verb cli '--libsass_ext=',
npm ERR! gyp verb cli '--libsass_cflags=',
npm ERR! gyp verb cli '--libsass_ldflags=',
npm ERR! gyp verb cli '--libsass_library='
npm ERR! gyp verb cli ]
npm ERR! gyp info using node-gyp@7.1.2
npm ERR! gyp info using node@21.4.0 | darwin | x64
npm ERR! gyp verb command rebuild []
npm ERR! gyp verb command clean []
npm ERR! gyp verb clean removing "build" directory
npm ERR! gyp verb command configure []
npm ERR! gyp verb find Python Python is not set from command line or npm configuration
npm ERR! gyp verb find Python Python is not set from environment variable PYTHON
npm ERR! gyp verb find Python checking if "python3" can be used
npm ERR! gyp verb find Python - executing "python3" to get executable path
npm ERR! gyp verb find Python - executable path is "/usr/local/opt/python@3.11/bin/python3.11"
npm ERR! gyp verb find Python - executing "/usr/local/opt/python@3.11/bin/python3.11" to get version
npm ERR! gyp verb find Python - version is "3.11.6"
npm ERR! gyp info find Python using Python version 3.11.6 found at "/usr/local/opt/python@3.11/bin/python3.11"
npm ERR! gyp verb get node dir no --target version specified, falling back to host node version: 21.4.0
npm ERR! gyp verb command install [ '21.4.0' ]
npm ERR! gyp verb install input version string "21.4.0"
npm ERR! gyp verb install installing version: 21.4.0
npm ERR! gyp verb install --ensure was passed, so won't reinstall if already installed
npm ERR! (node:67904) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
npm ERR! (Use node --trace-deprecation ... to show where the warning was created)
npm ERR! gyp verb install version is already installed, need to check "installVersion"
npm ERR! gyp verb got "installVersion" 9
npm ERR! gyp verb needs "installVersion" 9
npm ERR! gyp verb install version is good
npm ERR! gyp verb get node dir target node version installed: 21.4.0
npm ERR! gyp verb build dir attempting to create "build" dir: Downloads/Mobile-app-landingpage-template-master/node_modules/node-sass/build
npm ERR! gyp verb build dir "build" dir needed to be created? Downloads/Mobile-app-landingpage-template-master/node_modules/node-sass/build
npm ERR! gyp verb build/config.gypi creating config file
npm ERR! gyp ERR! UNCAUGHT EXCEPTION
npm ERR! gyp ERR! stack TypeError: Cannot assign to read only property 'cflags' of object '#'
npm ERR! gyp ERR! stack at createConfigFile (Downloads/Mobile-app-landingpage-template-master/node_modules/node-gyp/lib/configure.js:117:21)
npm ERR! gyp ERR! stack atDownloads/Mobile-app-landingpage-template-master/node_modules/node-gyp/lib/configure.js:84:9
npm ERR! gyp ERR! stack at FSReqCallback.oncomplete (node:fs:191:23)
npm ERR! gyp ERR! System Darwin 22.6.0
npm ERR! gyp ERR! command "/usr/local/Cellar/node/21.4.0/bin/node" "/Mobile-app-landingpage-template-master/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd Downloads/Mobile-app-landingpage-template-master/node_modules/node-sass
npm ERR! gyp ERR! node -v v21.4.0
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! Node-gyp failed to build your package.
npm ERR! gyp ERR! Try to update npm and/or node-gyp and if it does not help file an issue with the package author.
npm ERR! Build failed with error code: 7

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

No branches or pull requests

1 participant