Closed xiaohp closed 5 years ago
You should update the package.json to:
"node-sass": "^4.10.0"
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± ⮀
update to "node-sass": "^4.11.0"
update to "node-sass": "^4.11.0"
thank you,it works
system: macOS 10.13.6 Node: 10.12.0 terminal message: