-
Notifications
You must be signed in to change notification settings - Fork 231
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
Comments
Replacing node-sass with sass, resolved this issue for me. diff --git a/package.json b/package.json
index 3d34021..5f4cc9f 100644
--- a/package.json
+++ b/package.json
@@ -37,7 +37,7 @@
"http-server": "^13.0.2",
"imagemin-webpack-plugin": "^2.1.5",
"mini-css-extract-plugin": "^2.3.0",
- "node-sass": "^6.0.1",
+ "sass": "^1.77.4",
"postcss-import": "^14.0.2",
"postcss-loader": "^6.1.1",
"postcss-scss": "^4.0.1", Also remove |
What version of Node are you using? No luck for me after adding Another issues states node
|
v22.2.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 [email protected]
npm ERR! gyp info using [email protected] | 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/[email protected]/bin/python3.11"
npm ERR! gyp verb find Python - executing "/usr/local/opt/[email protected]/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/[email protected]/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
The text was updated successfully, but these errors were encountered: