Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.

npm install node-sass@4.1.1 fails for node < 7.6 #23

Closed
itsashis4u opened this issue Mar 12, 2018 · 4 comments
Closed

npm install node-sass@4.1.1 fails for node < 7.6 #23

itsashis4u opened this issue Mar 12, 2018 · 4 comments
Labels
non issue Issue is not a problem or requires changes

Comments

@itsashis4u
Copy link

itsashis4u commented Mar 12, 2018

Info:

{ http_parser: '2.7.0',
  node: '6.9.1',
  v8: '5.1.281.84',
  uv: '1.9.1',
  zlib: '1.2.8',
  ares: '1.10.1-DEV',
  icu: '57.1',
  modules: '48',
  openssl: '1.0.2j' }

Installing node-sass@4.1.1 tries to build node-sass and runs into the following error:

> node-sass@4.1.1 install node_modules/node-sass
> node scripts/install.js

node_modules/sntp/lib/index.js:19
exports.time = async function (options = {}) {
                     ^^^^^^^^
SyntaxError: Unexpected token function
    at Object.exports.runInThisContext (vm.js:76:16)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/node_modules/hawk/lib/index.js:5:16)
    at Module._compile (module.js:570:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.1.1 install: `node scripts/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.1.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
@Rakk4403
Copy link

Rakk4403 commented Mar 12, 2018

Same as me.
I got at Object.<anonymous> (/node_modules/hawk/lib/index.js:5:16) when running jest

@wms
Copy link

wms commented Mar 12, 2018

Looks like this is being caused by an upstream consumer - see request/request#2891

@itsashis4u itsashis4u changed the title npm install fails for node < 7.6 npm install node-sass@4.1.1 fails for node < 7.6 Mar 12, 2018
@hueniverse
Copy link
Contributor

Not my problem.

@hueniverse hueniverse added the non issue Issue is not a problem or requires changes label Mar 12, 2018
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
non issue Issue is not a problem or requires changes
Projects
None yet
Development

No branches or pull requests

4 participants