Issue with npm
dhirendradaffodil opened this issue · comments
Hi,
I am getting below issue, I have done to set permission but still I am getting the error
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: 10.6.0
gyp verb build dir attempting to create "build" dir: /var/www/html/propertylab_react_laravel/node_modules/node-sass/build
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/var/www/html/propertylab_react_laravel/node_modules/node-sass/build'
gyp ERR! System Linux 4.4.0-94-generic
gyp ERR! command "/usr/local/bin/node" "/var/www/html/propertylab_react_laravel/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /var/www/html/propertylab_react_laravel/node_modules/node-sass
gyp ERR! node -v v10.6.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN laravel-react@2.2.2 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
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.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/daffolap-604/.npm/_logs/2018-07-12T07_48_06_904Z-debug.log
Please let me know where I am doing wrong
Thanks
what is your node and npm version
this is the permission error on your server. npm is failed to create files
EACCES: permission denied, mkdir '/var/www/html/propertylab_react_laravel/node_modules/node-sass/build'
resolve your permissions