-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Template working on localhost but showing some error on server #34
Comments
one more thing, I'm using this template version 1.0.4 this is the error log after use this command `node-sass@4.7.2 install /var/www/nodejs/Admin-Panel/node_modules/node-sass Unable to save binary /var/www/nodejs/Admin-Panel/node_modules/node-sass/vendor/linux-x64-57 : { Error: EACCES: permission denied, mkdir ‘/var/www/nodejs/Admin-Panel/node_modules/node-sass/vendor’ node-sass@4.7.2 postinstall /var/www/nodejs/Admin-Panel/node_modules/node-sass Building: /usr/local/bin/node /var/www/nodejs/Admin-Panel/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= npm ERR! code ELIFECYCLE |
Hi @arpitprod
Please take a look at: |
I uninstalled and installed node without sudo and then try |
when I tried to run 'npm install' then showing these logs
`node-sass@4.7.2 install /var/www/nodejs/Admin-Panel/node_modules/node-sass
node scripts/install.js
Unable to save binary /var/www/nodejs/Admin-Panel/node_modules/node-sass/vendor/linux-x64-57 : { Error: EACCES: permission denied, mkdir ‘/var/www/nodejs/Admin-Panel/node_modules/node-sass/vendor’
at Object.fs.mkdirSync (fs.js:885:18)
at sync (/var/www/nodejs/Admin-Panel/node_modules/mkdirp/index.js:71:13)
at Function.sync (/var/www/nodejs/Admin-Panel/node_modules/mkdirp/index.js:77:24)
at checkAndDownloadBinary (/var/www/nodejs/Admin-Panel/node_modules/node-sass/scripts/install.js:111:11)
at Object. (/var/www/nodejs/Admin-Panel/node_modules/node-sass/scripts/install.js:154:1)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
errno: -13,
code: ‘EACCES’,
syscall: ‘mkdir’,
path: ‘/var/www/nodejs/Admin-Panel/node_modules/node-sass/vendor’ }
node-sass@4.7.2 postinstall /var/www/nodejs/Admin-Panel/node_modules/node-sass
node scripts/build.js
Building: /usr/local/bin/node /var/www/nodejs/Admin-Panel/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ ‘/usr/local/bin/node’,
gyp verb cli ‘/var/www/nodejs/Admin-Panel/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=’,
Build failed with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.7.2 postinstall:
node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.7.2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.`
The text was updated successfully, but these errors were encountered: