microsoft / TypeScript-Node-Starter

A reference example for TypeScript and Node with a detailed README describing how to use the two together.
MIT License
11.31k stars 2.77k forks source link

npm install error #178

Closed xiaohp closed 5 years ago

xiaohp commented 5 years ago

system: macOS 10.13.6 Node: 10.12.0 terminal message:

npm install

> fsevents@1.1.3 install /Users/fredxiao/arena/ts-node/node_modules/fsevents
> node install

node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.1.3 and node@10.12.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp ERR! Tried to download(undefined): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.1.3 and node@10.12.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
  SOLINK_MODULE(target) Release/.node
  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
  CXX(target) Release/obj.target/fse/fsevents.o
In file included from In file included from ../fsevents.cc../fsevents.cc::66:
:
In file included from In file included from ../../nan/nan.h../../nan/nan.h::203203:
:
In file included from In file included from ../../nan/nan_new.h../../nan/nan_new.h::189189:
:
../../nan/nan_implementation_12_inl.h:337:../../nan/nan_implementation_12_inl.h28::337 :28:warning : warning: 'New''New'  isis  deprecateddeprecated  [-Wdeprecated-declarations][-Wdeprecated-declarations]

  return v8::StringObject::New(value).As<v8::StringObject>();  return v8::StringObject::New(value).As<v8::StringObject>();

                           ^                           ^

/Users/fredxiao/.node-gyp/10.12.0/include/node/v8.h:5052:3: note: 'New' has been explicitly marked deprecated/Users/fredxiao/.node-gyp/10.12.0/include/node/v8.h :here5052:
3: note: 'New' has been  V8_DEPRECATED("Use Isolate* version",
explicitly   ^marked
 deprecated here
/Users/fredxiao/.node-gyp/10.12.0/include/node/v8config.h  V8_DEPRECATED("Use Isolate* version",:
327:  ^29
: note: expanded from macro 'V8_DEPRECATED'
/Users/fredxiao/.node-gyp/10.12.0/include/node/v8config.h:327:29: note:   declarator __attribute__((deprecated))
expanded                             ^from
 macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:839:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context)
      [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
In file included from ../fsevents.cc:6/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h:
:175:../../nan/nan.h1::839 :18:note : 'MakeCallback'warning : has been'MakeCallback'  explicitlyis  markeddeprecated:  deprecatedUse
       MakeCallback(...,here async_context)

      [-Wdeprecated-declarations]
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
    return node::MakeCallback(/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h
:91:                 ^20
: note: expanded/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h :from175 :macro1 : 'NODE_DEPRECATED'note: 'MakeCallback' has been explicitly marked
deprecated
      here
    __attribute__((deprecated(message))) declaratorNODE_DEPRECATED("Use MakeCallback(..., async_context)",

^                   ^

/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:854:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context)
      [-Wdeprecated-declarations]In file included from
../fsevents.cc:6:
../../nan/nan.h:854:18    return node::MakeCallback(:
                  ^
warning: 'MakeCallback' /Users/fredxiao/.node-gyp/10.12.0/include/node/node.his: 168deprecated:: 1Use:  MakeCallback(..., async_context)note
:       [-Wdeprecated-declarations]'MakeCallback'
has been explicitly marked deprecated
    return node::MakeCa      llback(
here
                 ^
/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h:168:1: note: 'MakeCallback' has been NODE_DEPRECATED("Use MakeCallback(..., async_context)",explicitly
 marked ^deprecated

      here
/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h:91:20: NODE_DEPRECATED("Use MakeCallback(..., async_context)",
note^:
expanded from macro/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h :'NODE_DEPRECATED'91:
20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
    __attribute__((deprecated(message))) declarator
                   ^
In file included from In file included from ../fsevents.cc../fsevents.cc::66:
:
../../nan/nan.h../../nan/nan.h::869869::1818::  warningwarning: : 'MakeCallback''MakeCallback'  isis  deprecated:deprecated:  UseUse  MakeCallback(...,MakeCallback(...,  async_context)async_context)

            [-Wdeprecated-declarations][-Wdeprecated-declarations]

    return node::MakeCallback(
    return node::MakeCallback(
                 ^
                 ^
/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h:161:1/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h:: 161:1note::  'MakeCallback' notehas:  been'MakeCallback'  explicitlyhas  markedbeen  deprecatedexplicitly
       markedhere deprecated

      here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h:^91
:20: /Users/fredxiao/.node-gyp/10.12.0/include/node/node.hnote:: 91:expanded20 :from  macro note'NODE_DEPRECATED':
expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:916In file included from :44../fsevents.cc:: 6:
warning../../nan/nan.h: :916:'ToString'44 :is  deprecated warning[-Wdeprecated-declarations]:
'ToString' is deprecated [-Wdeprecated-declarations]
      v8::Local<v8::String> string = from->ToString();
                                           ^
/Users/fredxiao/.node-gyp/10.12.0/include/node/v8.h:2454:10:       v8::Local<v8::String> string = from->ToString();
note:                                            ^
'ToString' has been explicitly/Users/fredxiao/.node-gyp/10.12.0/include/node/v8.h :marked2454 :deprecated10 :here
note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/fredxiao/.node-gyp/10.12.0/include/node/v8config.h:327:29: note: expanded  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const); from
         ^macro
 'V8_DEPRECATED'/Users/fredxiao/.node-gyp/10.12.0/include/node/v8config.h
:327:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
  declarator __attribute__((deprecated))
                            ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:926:27: In file included from ../fsevents.cc:warning6: :
../../nan/nan.h'WriteUtf8': 926is: 27deprecated:  [-Wdeprecated-declarations]
warning: 'WriteUtf8' is deprecated [-Wdeprecated-declarations]
        length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
                          ^
/Users/fredxiao/.node-gyp/10.12.0/include/node/v8.h:2658        length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);:
3:                          ^
note: 'WriteUtf8'/Users/fredxiao/.node-gyp/10.12.0/include/node/v8.h :has2658 :been3 explicitly:  marked deprecatednote : here'WriteUtf8'
 has been explicitly marked deprecated   V8_DEPRECATED("Use Isolate* version",here

  ^
/Users/fredxiao/.node-gyp/10.12.0/include/node/v8config.h:327:29  V8_DEPRECATED("Use Isolate* version",:
   ^
note: expanded from/Users/fredxiao/.node-gyp/10.12.0/include/node/v8config.h :macro327 :'V8_DEPRECATED'29:
 note: expanded from  declarator __attribute__((deprecated))
macro                             ^'V8_DEPRECATED'

  declarator __attribute__((deprecated))
                            ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:1478:31: warning: 'MakeCallback' is deprecated: Use MakeCallback(...,In file included from  ../fsevents.ccasync_context):
6      :
[-Wdeprecated-declarations]../../nan/nan.h
:1478:31: warning: 'MakeCallback'    return scope.Escape(node::MakeCallback(
is                               ^deprecated:
 Use MakeCallback(..., async_context)/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h
:      175[-Wdeprecated-declarations]:1
: note: 'MakeCallback' has been    return scope.Escape(node::MakeCallback(
explicitly                               ^marked
 deprecated
      here/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h
:175:1: note: 'MakeCallback' hasNODE_DEPRECATED("Use MakeCallback(..., async_context)",
been ^explicitly
 marked deprecated/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h
:      91here:20
: note: expanded from macro 'NODE_DEPRECATED'
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
    __attribute__((deprecated(message))) declarator
                   ^
/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
7 warnings generated.
7 warnings generated.
rm: ./Release/.deps/Release/obj.target/fse/fsevents.o.d.raw: No such file or directory
make: *** [Release/obj.target/fse/fsevents.o] Error 1
gyp  SOLINK_MODULE(target) Release/fse.node
 ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/fredxiao/arena/ts-node/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" "--module_name=fse" "--module_path=/Users/fredxiao/arena/ts-node/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64"
gyp ERR! cwd /Users/fredxiao/arena/ts-node/node_modules/fsevents
gyp ERR! node -v v10.12.0
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 build --fallback-to-build --module=/Users/fredxiao/arena/ts-node/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=/Users/fredxiao/arena/ts-node/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/fredxiao/arena/ts-node/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 17.7.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/fredxiao/arena/ts-node/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/fredxiao/arena/ts-node/node_modules/fsevents
node-pre-gyp ERR! node -v v10.12.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
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 build --fallback-to-build --module=/Users/fredxiao/arena/ts-node/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=/Users/fredxiao/arena/ts-node/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64' (1)
ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd and library file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//CoreServices.framework/CoreServices.tbd and library file /System/Library/Frameworks//CoreServices.framework/CoreServices are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//CFNetwork.framework/Versions/A/CFNetwork.tbd and library file /System/Library/Frameworks//CFNetwork.framework/Versions/A/CFNetwork are out of sync. Falling back to library file for linking.

> node-sass@4.7.2 install /Users/fredxiao/arena/ts-node/node_modules/node-sass
> node scripts/install.js

ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList are out of sync. Falling back to library file for linking.
  COPY /Users/fredxiao/arena/ts-node/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node
  TOUCH Release/obj.target/action_after_build.stamp
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.7.2/darwin-x64-64_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.7.2/darwin-x64-64_binding.node":

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location
      try setting a proxy via HTTP_PROXY, e.g.

      export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

      npm config set proxy http://example.com:8080

> node-sass@4.7.2 postinstall /Users/fredxiao/arena/ts-node/node_modules/node-sass
> node scripts/build.js

Building: /usr/local/bin/node /Users/fredxiao/arena/ts-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   '/Users/fredxiao/arena/ts-node/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@10.12.0 | 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` succeeded python2 /usr/local/bin/python2
gyp verb check python version `/usr/local/bin/python2 -c "import platform; print(platform.python_version());"` returned: "2.7.15\n"
gyp verb get node dir no --target version specified, falling back to host node version: 10.12.0
gyp verb command install [ '10.12.0' ]
gyp verb install input version string "10.12.0"
gyp verb install installing version: 10.12.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: 10.12.0
gyp verb build dir attempting to create "build" dir: /Users/fredxiao/arena/ts-node/node_modules/node-sass/build
gyp verb build dir "build" dir needed to be created? /Users/fredxiao/arena/ts-node/node_modules/node-sass/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /Users/fredxiao/arena/ts-node/node_modules/node-sass/build/config.gypi
gyp verb config.gypi checking for gypi file: /Users/fredxiao/arena/ts-node/node_modules/node-sass/config.gypi
gyp verb common.gypi checking for gypi file: /Users/fredxiao/arena/ts-node/node_modules/node-sass/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn /usr/local/bin/python2
gyp info spawn args [ '/Users/fredxiao/arena/ts-node/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/fredxiao/arena/ts-node/node_modules/node-sass/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/fredxiao/arena/ts-node/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/fredxiao/.node-gyp/10.12.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/fredxiao/.node-gyp/10.12.0',
gyp info spawn args   '-Dnode_gyp_dir=/Users/fredxiao/arena/ts-node/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/fredxiao/.node-gyp/10.12.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/fredxiao/arena/ts-node/node_modules/node-sass',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Traceback (most recent call last):
  File "/Users/fredxiao/arena/ts-node/node_modules/node-gyp/gyp/gyp_main.py", line 16, in <module>
    sys.exit(gyp.script_main())
  File "/Users/fredxiao/arena/ts-node/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 545, in script_main
    return main(sys.argv[1:])
  File "/Users/fredxiao/arena/ts-node/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 538, in main
    return gyp_main(args)
  File "/Users/fredxiao/arena/ts-node/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 523, in gyp_main
    generator.GenerateOutput(flat_list, targets, data, params)
  File "/Users/fredxiao/arena/ts-node/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 2170, in GenerateOutput
    part_of_all=qualified_target in needed_targets)
  File "/Users/fredxiao/arena/ts-node/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 795, in Write
    self.Pchify))
  File "/Users/fredxiao/arena/ts-node/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 1190, in WriteSources
    cflags = self.xcode_settings.GetCflags(configname)
  File "/Users/fredxiao/arena/ts-node/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 551, in GetCflags
    archs = self.GetActiveArchs(self.configname)
  File "/Users/fredxiao/arena/ts-node/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 420, in GetActiveArchs
    xcode_archs_default = GetXcodeArchsDefault()
  File "/Users/fredxiao/arena/ts-node/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 118, in GetXcodeArchsDefault
    xcode_version, _ = XcodeVersion()
  File "/Users/fredxiao/arena/ts-node/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 1265, in XcodeVersion
    version = re.match(r'(\d\.\d\.?\d*)', version).groups()[0]
AttributeError: 'NoneType' object has no attribute 'groups'
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/fredxiao/arena/ts-node/node_modules/node-gyp/lib/configure.js:336:16)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/usr/local/bin/node" "/Users/fredxiao/arena/ts-node/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/fredxiao/arena/ts-node/node_modules/node-sass
gyp ERR! node -v v10.12.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 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.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!     /Users/fredxiao/.npm/_logs/2019-01-22T03_15_38_530Z-debug.log
florian-badaluma commented 5 years ago

165 seems to solve the issue.

You should update the package.json to:

"node-sass": "^4.10.0"

xiaohp commented 5 years ago

update the node-sass version to ^4.10.0, still install error

~/arena/ts-node ⮀ ⭠ master± ⮀ npm i

> fsevents@1.1.3 install /Users/fredxiao/arena/ts-node/node_modules/fsevents
> node install

node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.1.3 and node@10.12.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp ERR! Tried to download(undefined): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.1.3 and node@10.12.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
  SOLINK_MODULE(target) Release/.node
  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
  CXX(target) Release/obj.target/fse/fsevents.o
In file included from ../fsevents.cc:6:
In file included from ../../nan/nan.h:203:
In file included from ../../nan/nan_new.h:189:
../../nan/nan_implementation_12_inl.h:337:28: warning: 'New' is deprecated [-Wdeprecated-declarations]
  return v8::StringObject::New(value).As<v8::StringObject>();
                           ^
/Users/fredxiao/.node-gyp/10.12.0/include/node/v8.h:5052:3: note: 'New' has been explicitly marked deprecated here
  V8_DEPRECATED("Use Isolate* version",
  ^
/Users/fredxiao/.node-gyp/10.12.0/include/node/v8config.h:327In file included from :29../fsevents.cc:: 6:
In file included from note../../nan/nan.h: :203expanded:
 In file included from from../../nan/nan_new.h :macro189 :
'V8_DEPRECATED'
../../nan/nan_implementation_12_inl.h:337:28:   declarator __attribute__((deprecated))
warning:                             ^
'New' is deprecated [-Wdeprecated-declarations]
  return v8::StringObject::New(value).As<v8::StringObject>();
                           ^
/Users/fredxiao/.node-gyp/10.12.0/include/node/v8.h:5052:3: note: 'New' has been explicitly marked deprecated here
  V8_DEPRECATED("Use Isolate* version",
  ^
/Users/fredxiao/.node-gyp/10.12.0/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:839:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context)
      [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h:175:1: note: 'MakeCallback' has been explicitly marked deprecated
      here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:854:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context)
      [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h:168:1: note: 'MakeCallback' has been explicitly marked deprecated
      here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:869:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context)
      [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h:161:1: note: 'MakeCallback' has been explicitly marked deprecated
      In file included from here../fsevents.cc
:6:
../../nan/nan.h:839:18: warningNODE_DEPRECATED("Use MakeCallback(..., async_context)",:
^'MakeCallback'
 is deprecated: /Users/fredxiao/.node-gyp/10.12.0/include/node/node.hUse: 91MakeCallback(...,: 20async_context):
       [-Wdeprecated-declarations]note
: expanded from macro 'NODE_DEPRECATED'
    return node::MakeCallback(
                 ^
/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h:    __attribute__((deprecated(message))) declarator175
:1                   ^:
 note: 'MakeCallback' has been explicitly marked deprecated
      here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:854:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context)
      [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h:168:1: note: 'MakeCallback' has been explicitly marked deprecated
      here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:916:44: warning: 'ToString' is deprecated [-Wdeprecated-declarations]
In file included from       v8::Local<v8::String> string = from->ToString();
../fsevents.cc:                                           ^6
:
../../nan/nan.h:869/Users/fredxiao/.node-gyp/10.12.0/include/node/v8.h::182454:: 10: warning: note: 'MakeCallback''ToString'  ishas  deprecated:been  Useexplicitly  MakeCallback(...,marked  async_context)deprecated
       here[-Wdeprecated-declarations]

    return node::MakeCallback(
                 ^  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);

         ^
/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h:161/Users/fredxiao/.node-gyp/10.12.0/include/node/v8config.h::1327::29 : note: note: 'MakeCallback' expandedhas  frombeen  macroexplicitly  'V8_DEPRECATED'marked
deprecated
      here
  declarator __attribute__((deprecated))
                            ^
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:926:27: warning: 'WriteUtf8' is deprecated [-Wdeprecated-declarations]
        length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
                          ^
/Users/fredxiao/.node-gyp/10.12.0/include/node/v8.h:2658:3: note: 'WriteUtf8' has been explicitly marked deprecated here
  V8_DEPRECATED("Use Isolate* version",
  ^
/Users/fredxiao/.node-gyp/10.12.0/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:916:44: warning: 'ToString' is deprecated [-Wdeprecated-declarations]
      v8::Local<v8::String> string = from->ToString();
                                           ^
/Users/fredxiao/.node-gyp/10.12.0/include/node/v8.h:2454:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/fredxiao/.node-gyp/10.12.0/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:926:27: warning: 'WriteUtf8' is deprecated [-Wdeprecated-declarations]
        length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
                          ^
/Users/fredxiao/.node-gyp/10.12.0/include/node/v8.h:2658:3: note: 'WriteUtf8' has been explicitly marked deprecated here
  V8_DEPRECATED("Use Isolate* version",
  ^
/Users/fredxiao/.node-gyp/10.12.0/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:1478:31: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context)
      [-Wdeprecated-declarations]
    return scope.Escape(node::MakeCallback(
                              ^
/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h:175:1: note: 'MakeCallback' has been explicitly marked deprecated
      here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../fsevents.cc:6:
../../nan/nan.h:1478:31: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context)
      [-Wdeprecated-declarations]
    return scope.Escape(node::MakeCallback(
                              ^
/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h:175:1: note: 'MakeCallback' has been explicitly marked deprecated
      here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/fredxiao/.node-gyp/10.12.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
7 warnings generated.
7 warnings generated.
rm: ./Release/.deps/Release/obj.target/fse/fsevents.o.d.raw: No such file or directory
make: *** [Release/obj.target/fse/fsevents.o] Error 1
gyp  SOLINK_MODULE(target) Release/fse.node
 ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/fredxiao/arena/ts-node/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" "--module_name=fse" "--module_path=/Users/fredxiao/arena/ts-node/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64"
gyp ERR! cwd /Users/fredxiao/arena/ts-node/node_modules/fsevents
gyp ERR! node -v v10.12.0
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 build --fallback-to-build --module=/Users/fredxiao/arena/ts-node/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=/Users/fredxiao/arena/ts-node/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/fredxiao/arena/ts-node/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 17.7.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/fredxiao/arena/ts-node/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/fredxiao/arena/ts-node/node_modules/fsevents
node-pre-gyp ERR! node -v v10.12.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
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 build --fallback-to-build --module=/Users/fredxiao/arena/ts-node/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=/Users/fredxiao/arena/ts-node/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64' (1)
ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd and library file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//CoreServices.framework/CoreServices.tbd and library file /System/Library/Frameworks//CoreServices.framework/CoreServices are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//CFNetwork.framework/Versions/A/CFNetwork.tbd and library file /System/Library/Frameworks//CFNetwork.framework/Versions/A/CFNetwork are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList are out of sync. Falling back to library file for linking.
  COPY /Users/fredxiao/arena/ts-node/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node
  TOUCH Release/obj.target/action_after_build.stampostinstall 700
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 install: `node install`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

audited 15037 packages in 6.887s
found 148 vulnerabilities (93 low, 45 moderate, 10 high)
  run `npm audit fix` to fix them, or `npm audit` for details
 ~/arena/ts-node ⮀ ⭠ master± ⮀
azran4u commented 5 years ago

update to "node-sass": "^4.11.0"

xiaohp commented 5 years ago

update to "node-sass": "^4.11.0"

thank you,it works