Comments (3)
Hi @arpitprod
I am afraid this issue has nothing to do with the template itself.
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’
indicates that you do not have permission to write to the directories that npm uses to store packages.
Please take a look at:
- https://github.com/sass/node-sass/blob/master/TROUBLESHOOTING.md#cannot-find-module-rootinstalljs
- https://docs.npmjs.com/getting-started/fixing-npm-permissions
from coreui-free-react-admin-template.
one more thing, I'm using this template version 1.0.4
https://github.com/mrholek/CoreUI-React/tree/v1.0.4
this is the error log after use this command
sudo npm install
`[email protected] 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’ }
[email protected] 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=‘,
gyp verb cli ‘--libsass_library=’ ]
gyp info using [email protected]
gyp info using [email protected] | linux | x64
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 “python2" in the PATH
gyp verb which
succeeded python2 /usr/bin/python2
gyp verb check python version /usr/bin/python2 -c "import platform; print(platform.python_version());"
returned: “2.7.12\n”
gyp verb get node dir no --target version specified, falling back to host node version: 8.9.1
gyp verb command install [ ‘8.9.1’ ]
gyp verb install input version string “8.9.1"
gyp verb install installing version: 8.9.1
gyp verb install --ensure was passed, so won’t reinstall if already installed
gyp verb install version is already installed, need to check “installVersion”
gyp verb got “installVersion” 9
gyp verb needs “installVersion” 9
gyp verb install version is good
gyp verb get node dir target node version installed: 8.9.1
gyp verb build dir attempting to create “build” dir: /var/www/nodejs/Admin-Panel/node_modules/node-sass/build
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/var/www/nodejs/Admin-Panel/node_modules/node-sass/build’
gyp ERR! System Linux 4.4.0-62-generic
gyp ERR! command “/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 ERR! cwd /var/www/nodejs/Admin-Panel/node_modules/node-sass
gyp ERR! node -v v8.9.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN [email protected] requires a peer of [email protected] - 3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@^15.5.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-dom@^15.5.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.`
from coreui-free-react-admin-template.
I uninstalled and installed node without sudo and then try
then npm install was working
from coreui-free-react-admin-template.
Related Issues (20)
- Unable to upload changed project into a personal reposatory HOT 1
- Replace color-adjust to print-color-adjust HOT 1
- Autho integration with core ui appending wrong url. Same working fine with normal react app. HOT 1
- Pro typescript issue HOT 5
- cannot use React.useMemo HOT 1
- Tooltip position issue HOT 1
- Animation CCollapse at CSmartTable Doesn`t Work HOT 1
- npm run build failed HOT 4
- How can I put the itemsPerPageSelect to bottom of CDataTable? HOT 1
- Failed to compile on npm build HOT 2
- How to enable sidebar open by default on mobile devices? HOT 1
- React router dom v6 BrowserRouter not working on build version HOT 1
- `CNavGroup` icons not working on Coreui Free Admin Template ReactJS 4.3.0 HOT 1
- Dependency issue with "react-scripts" package HOT 1
- Modal (CModal) Closing Unexpectedly HOT 4
- Hash route not working in production mode HOT 1
- Template stops responding after a while on iPhone 12 HOT 2
- Config url # HOT 3
- Sidebar Opening and Closing Infinitely on Resizing
- Clean install. Navigation (buttons do not work). HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coreui-free-react-admin-template.