我在升级节点后的npm i时出现以下错误。后来我尝试使用nvm重新安装它,但我仍然有问题。似乎node-gyp失败了
> integer@1.0.1 install /Users/whoIam/Desktop/Projects/starter-app/node_modules/integer
> node tools/install
CXX(target) Release/obj.target/integer/src/integer.o
SOLINK_MODULE(target) Release/integer.node
> better-sqlite3@4.0.3 install /Users/whoIam/Desktop/Projects/starter-app/node_modules/better-sqlite3
> node deps/install
==> cwd: /Users/whoIam/Desktop/Projects/starter-app/node_modules/better-sqlite3
==> /Users/whoIam/Desktop/Projects/starter-app/node_modules/lzz-gyp/lzz-compiled/osx -hx hpp -sx cpp -k BETTER_SQLITE3 -d -hl -sl -e ./src/better_sqlite3.lzz
==> cwd: /Users/whoIam/Desktop/Projects/starter-app/node_modules/better-sqlite3
==> node-gyp rebuild
ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3190300/sqlite3.c
TOUCH Release/obj.target/deps/action_before_build.stamp
CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3190300/sqlite3.o
LIBTOOL-STATIC Release/sqlite3.a
libtool: unrecognized option `-static'
libtool: Try `libtool --help' for more information.
make: *** [Release/sqlite3.a] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/whoIam/.nvm/versions/node/v8.9.3/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Darwin 16.6.0
gyp ERR! command "/Users/whoIam/.nvm/versions/node/v8.9.3/bin/node" "/Users/whoIam/.nvm/versions/node/v8.9.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/whoIam/Desktop/Projects/starter-app/node_modules/better-sqlite3
gyp ERR! node -v v8.9.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Error: exit code 1
at ChildProcess.<anonymous> (/Users/whoIam/Desktop/Projects/starter-app/node_modules/lzz-gyp/lib/exec.js:19:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)