I was trying to install node-sass on Linux Mint by running the command sudo npm install node-sass, but I got some errors. It says that it does not have access to some directories, which doesn't make any sense because I ran it with sudo. I have tried many solutions on StackOverflow, including purging node, using a different version, etc. but none have worked. Here is the full terminal log:
> node-sass#4.9.3 install /home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/node-sass
> node scripts/install.js
Unable to save binary /home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/node-sass/vendor/linux-x64-57 : { Error: EACCES: permission denied, mkdir '/home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/node-sass/vendor'
at Object.fs.mkdirSync (fs.js:885:18)
at sync (/home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/mkdirp/index.js:71:13)
at Function.sync (/home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/mkdirp/index.js:77:24)
at checkAndDownloadBinary (/home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/node-sass/scripts/install.js:114:11)
at Object.<anonymous> (/home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/node-sass/scripts/install.js:157:1)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
errno: -13,
code: 'EACCES',
syscall: 'mkdir',
path: '/home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/node-sass/vendor' }
> node-sass#4.9.3 postinstall /home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/node-sass
> node scripts/build.js
Building: /usr/local/bin/node /home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/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 '/home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/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 node-gyp#3.8.0
gyp info using node#8.11.0 | 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 sys; print "2.7.12
gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 8.11.0
gyp verb command install [ '8.11.0' ]
gyp verb install input version string "8.11.0"
gyp verb install installing version: 8.11.0
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.11.0
gyp verb build dir attempting to create "build" dir: /home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/node-sass/build
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/node-sass/build'
gyp ERR! System Linux 4.10.0-37-generic
gyp ERR! command "/usr/local/bin/node" "/home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/caden/Desktop/Infinite_Robots_Work/infinite-robots-homepage/infinite-robots-homepage/node_modules/node-sass
gyp ERR! node -v v8.11.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN ajv-keywords#3.2.0 requires a peer of ajv#^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass#4.9.3 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass#4.9.3 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/caden/.npm/_logs/2018-08-10T00_32_24_558Z-debug.log
Try Using The following, Source
sudo npm install --unsafe-perm -g node-sass
Try using the following command
npm install -f node-sass
Try this
npm i --unsafe-perm node-sass
I encountered the same error, after I upgraded node.
I tested all these solutions. Unfortunately no one help me.
But this one did:
npm rebuild node-sass
Related
I am trying to install node-sass on a node 8 installation, but it fails:
$ docker run --rm -i -t --entrypoint ash node:8.10.0-alpine -c 'npm install node-sass'
npm WARN notice [SECURITY] lodash has the following vulnerability: 1 high. Go here for more details: https://www.npmjs.com/advisories?search=lodash&version=4.17.21 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator#5.1.5: this library is no longer supported
npm WARN deprecated uuid#3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
> node-sass#6.0.1 install /node_modules/node-sass
> node scripts/install.js
Unable to save binary /node_modules/node-sass/vendor/linux_musl-x64-57 : { Error: ENOENT: no such file or directory, mkdir '/node_modules/node-sass/vendor/linux_musl-x64-57'
at Object.fs.mkdirSync (fs.js:885:18)
at checkAndDownloadBinary (/node_modules/node-sass/scripts/install.js:113:8)
at Object.<anonymous> (/node_modules/node-sass/scripts/install.js:156:1)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
errno: -2,
code: 'ENOENT',
syscall: 'mkdir',
path: '/node_modules/node-sass/vendor/linux_musl-x64-57' }
> node-sass#6.0.1 postinstall /node_modules/node-sass
> node scripts/build.js
Building: /usr/local/bin/node /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 '/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 node-gyp#7.1.2
gyp info using node#8.10.0 | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb find Python Python is not set from command line or npm configuration
gyp verb find Python Python is not set from environment variable PYTHON
gyp verb find Python checking if "python3" can be used
gyp verb find Python - executing "python3" to get executable path
gyp verb find Python - "python3" is not in PATH or produced an error
gyp verb find Python checking if "python" can be used
gyp verb find Python - executing "python" to get executable path
gyp verb find Python - "python" is not in PATH or produced an error
gyp verb find Python checking if "python2" can be used
gyp verb find Python - executing "python2" to get executable path
gyp verb find Python - "python2" is not in PATH or produced an error
gyp ERR! find Python
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - "python3" is not in PATH or produced an error
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - "python" is not in PATH or produced an error
gyp ERR! find Python checking if "python2" can be used
gyp ERR! find Python - "python2" is not in PATH or produced an error
gyp ERR! find Python
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
gyp ERR! find Python (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
gyp ERR! find Python
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Python installation to use
gyp ERR! stack at PythonFinder.fail (/node_modules/node-gyp/lib/find-python.js:302:47)
gyp ERR! stack at PythonFinder.runChecks (/node_modules/node-gyp/lib/find-python.js:136:21)
gyp ERR! stack at PythonFinder.<anonymous> (/node_modules/node-gyp/lib/find-python.js:179:16)
gyp ERR! stack at PythonFinder.execFileCallback (/node_modules/node-gyp/lib/find-python.js:266:16)
gyp ERR! stack at exithandler (child_process.js:282:5)
gyp ERR! stack at ChildProcess.errorhandler (child_process.js:294:5)
gyp ERR! stack at emitOne (events.js:116:13)
gyp ERR! stack at ChildProcess.emit (events.js:211:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:196:12)
gyp ERR! stack at onErrorNT (internal/child_process.js:372:16)
gyp ERR! System Linux 5.4.72-microsoft-standard-WSL2
gyp ERR! command "/usr/local/bin/node" "/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /node_modules/node-sass
gyp ERR! node -v v8.10.0
gyp ERR! node-gyp -v v7.1.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN enoent ENOENT: no such file or directory, open '/package.json'
npm WARN !invalid#1 No description
npm WARN !invalid#1 No repository field.
npm WARN !invalid#1 No README data
npm WARN !invalid#1 No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass#6.0.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass#6.0.1 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! /root/.npm/_logs/2021-08-12T14_48_49_350Z-debug.log
npm was trying to install latest node-sass version, 6.0.1. It turns out this version is incompatible with node 8, according to node-sass official documentation:
Installing the latest compatible version (4.14.1) fixed my problem:
$ docker run --rm -i -t --entrypoint ash node:8.10.0-alpine -c 'npm install node-sass#4.14.1'
npm WARN notice [SECURITY] lodash has the following vulnerability: 1 high. Go here for more details: https://www.npmjs.com/advisories?search=lodash&version=4.17.21 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN notice [SECURITY] trim-newlines has the following vulnerability: 1 high. Go here for more details: https://www.npmjs.com/advisories?search=trim-newlines&version=1.0.0 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated tar#2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm WARN deprecated har-validator#5.1.5: this library is no longer supported
npm WARN deprecated uuid#3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
> node-sass#4.14.1 install /node_modules/node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.14.1/linux_musl-x64-57_binding.node
Download complete ] - :
Binary saved to /node_modules/node-sass/vendor/linux_musl-x64-57/binding.node
Caching binary to /root/.npm/node-sass/4.14.1/linux_musl-x64-57_binding.node
> node-sass#4.14.1 postinstall /node_modules/node-sass
> node scripts/build.js
Binary found at /node_modules/node-sass/vendor/linux_musl-x64-57/binding.node
Testing binary
Binary is fine
npm WARN saveError ENOENT: no such file or directory, open '/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/package.json'
npm WARN !invalid#1 No description
npm WARN !invalid#1 No repository field.
npm WARN !invalid#1 No README data
npm WARN !invalid#1 No license field.
+ node-sass#4.14.1
added 193 packages in 16.761s
I am fine running one of our current projects with Nativescript but when I try to install it on a new project using the following command:
sudo ng new --collection=#nativescript/schematics the-juice-box --shared
I get the following error output:
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Pre-built binaries not installable for fsevents#1.2.7 and node#10.14.2 (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error EACCES: permission denied, mkdir '/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/fsevents/lib'
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/fsevents/build'
gyp ERR! System Darwin 18.5.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" "--module_name=fse" "--module_path=/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64" "--napi_version=3" "--node_abi_napi=napi"
gyp ERR! cwd /Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/fsevents
gyp ERR! node -v v10.14.2
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64 --napi_version=3 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:962:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
node-pre-gyp ERR! System Darwin 18.5.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/fsevents
node-pre-gyp ERR! node -v v10.14.2
node-pre-gyp ERR! node-pre-gyp -v v0.10.3
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64 --napi_version=3 --node_abi_napi=napi' (1)
> node-sass#4.10.0 install /Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/node-sass
> node scripts/install.js
Unable to save binary /Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/node-sass/vendor/darwin-x64-64 : { Error: EACCES: permission denied, mkdir '/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/node-sass/vendor'
at Object.mkdirSync (fs.js:753:3)
at sync (/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/mkdirp/index.js:71:13)
at Function.sync (/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/mkdirp/index.js:77:24)
at checkAndDownloadBinary (/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/node-sass/scripts/install.js:114:11)
at Object.<anonymous> (/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/node-sass/scripts/install.js:157:1)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
errno: -13,
syscall: 'mkdir',
code: 'EACCES',
path:
'/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/node-sass/vendor' }
> node-sass#4.10.0 postinstall /Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/node-sass
> node scripts/build.js
Building: /usr/local/bin/node /Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/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 '/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/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 node-gyp#3.8.0
gyp info using node#10.14.2 | darwin | 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` failed Error: not found: python2
gyp verb `which` failed at getNotFoundError (/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/which/which.js:80:29)
gyp verb `which` failed at /Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/which/which.js:89:16
gyp verb `which` failed at /Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:154:21)
gyp verb `which` failed python2 { Error: not found: python2
gyp verb `which` failed at getNotFoundError (/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/which/which.js:80:29)
gyp verb `which` failed at /Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/which/which.js:89:16
gyp verb `which` failed at /Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:154:21)
gyp verb `which` failed stack:
gyp verb `which` failed 'Error: not found: python2\n at getNotFoundError (/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/which/which.js:13:12)\n at F (/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/which/which.js:68:19)\n at E (/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/which/which.js:80:29)\n at /Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/which/which.js:89:16\n at /Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/isexe/index.js:42:5\n at /Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/isexe/mode.js:8:5\n at FSReqWrap.oncomplete (fs.js:154:21)',
gyp verb `which` failed code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python /usr/bin/python
gyp verb check python version `/usr/bin/python -c "import sys; print "2.7.10
gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 10.14.2
gyp verb command install [ '10.14.2' ]
gyp verb install input version string "10.14.2"
gyp verb install installing version: 10.14.2
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: 10.14.2
gyp verb build dir attempting to create "build" dir: /Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/node-sass/build
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/node-sass/build'
gyp ERR! System Darwin 18.5.0
gyp ERR! command "/usr/local/bin/node" "/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/node-sass
gyp ERR! node -v v10.14.2
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
> nativescript-angular#7.2.3 postinstall /Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/nativescript-angular
> node postinstall.js
fs.js:115
throw err;
^
Error: EACCES: permission denied, mkdir '/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/hooks'
at Object.mkdirSync (fs.js:753:3)
at Object.<anonymous> (/Users/jamespuangco/Documents/PrivateWorkspace/ProjectJ/the-juice-box/node_modules/nativescript-angular/postinstall.js:11:12)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:282:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
npm WARN codelyzer#4.2.1 requires a peer of #angular/compiler#>=2.3.1 <7.0.0 || >6.0.0-beta <7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN codelyzer#4.2.1 requires a peer of #angular/core#>=2.3.1 <7.0.0 || >6.0.0-beta <7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN codelyzer#4.2.1 requires a peer of #angular/platform-browser-dynamic#>=2.3.1 <7.0.0 || >6.0.0-beta <7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN codelyzer#4.2.1 requires a peer of #angular/platform-browser#>=2.3.1 <7.0.0 || >6.0.0-beta <7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN codelyzer#4.2.1 requires a peer of #angular/common#>=2.3.1 <7.0.0 || >6.0.0-beta <7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords#3.4.0 requires a peer of ajv#^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.7 (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.7 install: `node install`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass#4.10.0 (node_modules/node-sass):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass#4.10.0 postinstall: `node scripts/build.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nativescript-angular#7.2.3 postinstall: `node postinstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nativescript-angular#7.2.3 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! /Users/jamespuangco/.npm/_logs/2019-04-14T19_19_01_032Z-debug.log
I am unsure what to do to fix this issue. I tried reinstalling angular and Nativescript schematics and angular cli. It also says in there permission denied a few times but I am using the sudo command and I am the admin of this laptop so I am need assistance to clarify how to proceed or if I am missing something I need to install. Your assistance is greatly appreciated, I would like to start programming as soon as possible.
You could try
npm cache clean or with --force flag like so npm cache clean --force
then run npm cache verify.
Ensure to have installed the latest version of node and npm.
Finally for EACCES' error i would suggest
npm config set prefix ~/npm
npm packages will be stored in your npm folder in your home directory.
then try to re install the packages.
Operating system: MacOS Mojave 10.14.2
ionic: 4.10.3
node: 10.15.2
npm: 6.4.1
When I am trying to create a new project the ionic or npm fails:
when giving the command:
sudo ionic start testApp blank --type=ionic-angular
> node-sass#4.11.0 postinstall /Users/international/Public/testApp/node_modules/node-sass
> node scripts/build.js
Building: /usr/local/bin/node /Users/international/Public/testApp/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 '/Users/international/Public/testApp/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 node-gyp#3.8.0
gyp info using node#10.15.2 | darwin | 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 "/usr/bin/python2.7" in the PATH
gyp verb `which` succeeded /usr/bin/python2.7 /usr/bin/python2.7
gyp verb check python version `/usr/bin/python2.7 -c "import sys; print "2.7.10
gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 10.15.2
gyp verb command install [ '10.15.2' ]
gyp verb install input version string "10.15.2"
gyp verb install installing version: 10.15.2
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: 10.15.2
gyp verb build dir attempting to create "build" dir: /Users/international/Public/testApp/node_modules/node-sass/build
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/international/Public/testApp/node_modules/node-sass/build'
gyp ERR! System Darwin 18.2.0
gyp ERR! command "/usr/local/bin/node" "/Users/international/Public/testApp/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/international/Public/testApp/node_modules/node-sass
gyp ERR! node -v v10.15.2
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.7 (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.7 install: `node install`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass#4.11.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass#4.11.0 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! /Users/international/.npm/_logs/2019-03-05T09_26_51_725Z-debug.log
[ERROR] An error occurred while running subprocess npm.
npm i exited with exit code 1.
Somewhere you will find "permission denied" as an error but in my command I used sudo as a prefix.
I have no clue what is happened and I tried many hours to find a solution to this. Also I am new user on MacOS
You need to change the ownership of the node_modules folder.
To change the permissions for the folder execute the following in the terminal:
sudo chown -R root:YOUR_USERNAME /Users/international/Public/testApp/node_modules/
sudo chmod -R 775 /Users/international/Public/testApp/node_modules/
If that doesn't work you can recursively set the permissions for your folder as follows:
sudo chmod 777 -R /Users/international/Public/testApp/
i have an angular 4 app and i want to run it on ubuntu. i copied all project files , package.json and package-lock.json to a folder in winscp but i didn't copy node_modules! now when i run npm install, i get the errors like this:
> node-sass#4.7.2 install /home/ubuntu/cms/node_modules/#angular/cli/node_modules/node-sass
> node scripts/install.js
Unable to save binary /home/ubuntu/cms/node_modules/#angular/cli/node_modules/node-sass/vendor/linux-x64-57 : { Error: EACCES: permission denied, mkdir '/home/ubuntu/cms/node_modules/#angular/cli/node_modules/node-sass/vendor'
at Object.fs.mkdirSync (fs.js:885:18)
at sync (/home/ubuntu/cms/node_modules/mkdirp/index.js:71:13)
at Function.sync (/home/ubuntu/cms/node_modules/mkdirp/index.js:77:24)
at checkAndDownloadBinary (/home/ubuntu/cms/node_modules/#angular/cli/node_modules/node-sass/scripts/install.js:111:11)
at Object.<anonymous> (/home/ubuntu/cms/node_modules/#angular/cli/node_modules/node-sass/scripts/install.js:154:1)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
errno: -13,
code: 'EACCES',
syscall: 'mkdir',
path: '/home/ubuntu/cms/node_modules/#angular/cli/node_modules/node-sass/vendor' }
> node-sass#4.9.1 install /home/ubuntu/cms/node_modules/node-sass
> node scripts/install.js
Unable to save binary /home/ubuntu/cms/node_modules/node-sass/vendor/linux-x64-57 : { Error: EACCES: permission denied, mkdir '/home/ubuntu/cms/node_modules/node-sass/vendor'
at Object.fs.mkdirSync (fs.js:885:18)
at sync (/home/ubuntu/cms/node_modules/mkdirp/index.js:71:13)
at Function.sync (/home/ubuntu/cms/node_modules/mkdirp/index.js:77:24)
at checkAndDownloadBinary (/home/ubuntu/cms/node_modules/node-sass/scripts/install.js:114:11)
at Object.<anonymous> (/home/ubuntu/cms/node_modules/node-sass/scripts/install.js:157:1)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
errno: -13,
code: 'EACCES',
syscall: 'mkdir',
path: '/home/ubuntu/cms/node_modules/node-sass/vendor' }
> node-sass#4.7.2 postinstall /home/ubuntu/cms/node_modules/#angular/cli/node_modules/node-sass
> node scripts/build.js
Building: /usr/bin/node /home/ubuntu/cms/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/bin/node',
gyp verb cli '/home/ubuntu/cms/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 node-gyp#3.7.0
gyp info using node#8.9.4 | 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.4
gyp verb command install [ '8.9.4' ]
gyp verb install input version string "8.9.4"
gyp verb install installing version: 8.9.4
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.4
gyp verb build dir attempting to create "build" dir: /home/ubuntu/cms/node_modules/#angular/cli/node_modules/node-sass/build
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/ubuntu/cms/node_modules/#angular/cli/node_modules/node-sass/build'
gyp ERR! System Linux 4.4.0-124-generic
gyp ERR! command "/usr/bin/node" "/home/ubuntu/cms/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/ubuntu/cms/node_modules/#angular/cli/node_modules/node-sass
gyp ERR! node -v v8.9.4
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
Build failed with error code: 1
> node-sass#4.9.1 postinstall /home/ubuntu/cms/node_modules/node-sass
> node scripts/build.js
Building: /usr/bin/node /home/ubuntu/cms/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/bin/node',
gyp verb cli '/home/ubuntu/cms/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 node-gyp#3.7.0
gyp info using node#8.9.4 | 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.4
gyp verb command install [ '8.9.4' ]
gyp verb install input version string "8.9.4"
gyp verb install installing version: 8.9.4
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.4
gyp verb build dir attempting to create "build" dir: /home/ubuntu/cms/node_modules/node-sass/build
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/ubuntu/cms/node_modules/node-sass/build'
gyp ERR! System Linux 4.4.0-124-generic
gyp ERR! command "/usr/bin/node" "/home/ubuntu/cms/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/ubuntu/cms/node_modules/node-sass
gyp ERR! node -v v8.9.4
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass#4.7.2 (node_modules/#angular/cli/node_modules/node-sass):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass#4.7.2 postinstall: `node scripts/build.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass#4.9.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass#4.9.1 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/ubuntu/.npm/_logs/2018-07-07T10_49_32_298Z-debug.log
i did the steps that i said before to run my project, but i don't know whats going on here now?
i also did rm -rf node_modules, rm package-lock.json, npm cache clean --force and used npm install again but it's still not working!
Add --unsafe-perm flag while installing
For linux/mac
sudo npm install --unsafe-perm -g node-sass
For windows environment , hit same command removing sudo
On Linux/mac
npm install --unsafe-perm node-sass
Just adding unsafe-perm would work. Using sudo would give unnecessary permissions to node modules and mess things with the file system.
I am new to NodeJS and I am trying to install node saas by sudo npm install -g --unsafe-perms node-sass
and I see this
/usr/local/bin/node-sass -> /usr/local/lib/node_modules/node-sass/bin/node-sass
> node-sass#4.7.2 install /usr/local/lib/node_modules/node-sass
> node scripts/install.js
Unable to save binary /usr/local/lib/node_modules/node-sass/vendor/linux-x64-59 : { Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/node-sass/vendor'
at Object.fs.mkdirSync (fs.js:905:18)
at sync (/usr/local/lib/node_modules/node-sass/node_modules/mkdirp/index.js:71:13)
at Function.sync (/usr/local/lib/node_modules/node-sass/node_modules/mkdirp/index.js:77:24)
at checkAndDownloadBinary (/usr/local/lib/node_modules/node-sass/scripts/install.js:111:11)
at Object.<anonymous> (/usr/local/lib/node_modules/node-sass/scripts/install.js:154:1)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
errno: -13,
code: 'EACCES',
syscall: 'mkdir',
path: '/usr/local/lib/node_modules/node-sass/vendor' }
> node-sass#4.7.2 postinstall /usr/local/lib/node_modules/node-sass
> node scripts/build.js
Building: /usr/local/bin/node /usr/local/lib/node_modules/node-sass/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 '/usr/local/lib/node_modules/node-sass/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 node-gyp#3.6.2
gyp info using node#9.4.0 | 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: 9.4.0
gyp verb command install [ '9.4.0' ]
gyp verb install input version string "9.4.0"
gyp verb install installing version: 9.4.0
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: 9.4.0
gyp verb build dir attempting to create "build" dir: /usr/local/lib/node_modules/node-sass/build
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/node-sass/build'
gyp ERR! System Linux 4.13.0-32-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /usr/local/lib/node_modules/node-sass
gyp ERR! node -v v9.4.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
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.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/baig772/.npm/_logs/2018-02-14T18_01_56_774Z-debug.log
sudo chown -R $USER:admin /usr/local