LINUX.ORG.RU

Ошибки npm install

 ,


0

1

При выполнении npm install появляются следующие ошибки:

gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir /home/and/.node-gyp/10.13.0
gyp verb `which` succeeded for `make` /usr/bin/make
gyp info spawn make
gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
make: вход в каталог «/home/and/project/test/react-redux-jwt-auth-example/node_modules/node-sass/build»
  g++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DLIBSASS_VERSION="3.3.6"' -I/home/and/.node-gyp/10.13.0/include/node -I/home/and/.node-gyp/10.13.0/src -I/home/and/.node-gyp/10.13.0/deps/openssl/config -I/home/and/.node-gyp/10.13.0/deps/openssl/openssl/include -I/home/and/.node-gyp/10.13.0/deps/uv/include -I/home/and/.node-gyp/10.13.0/deps/zlib -I/home/and/.node-gyp/10.13.0/deps/v8/include -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -std=gnu++1y -std=c++0x -fexceptions -frtti -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/ast.o.d.raw   -c -o Release/obj.target/libsass/src/libsass/src/ast.o ../src/libsass/src/ast.cpp
make: g++: Команда не найдена
src/libsass.target.mk:145: ошибка выполнения рецепта для цели «Release/obj.target/libsass/src/libsass/src/ast.o»
make: *** [Release/obj.target/libsass/src/libsass/src/ast.o] Ошибка 127
make: выход из каталога «/home/and/project/test/react-redux-jwt-auth-example/node_modules/node-sass/build»
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/and/project/test/react-redux-jwt-auth-example/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 Linux 4.10.0-38-generic
gyp ERR! command "/home/and/.nvm/versions/node/v10.13.0/bin/node" "/home/and/project/test/react-redux-jwt-auth-example/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/and/project/test/react-redux-jwt-auth-example/node_modules/node-sass
gyp ERR! node -v v10.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
Build failed with error code: 1
npm WARN karma-sinon-chai@1.3.4 requires a peer of sinon@>=2.1.0 <5 but none is installed. You must install peer dependencies yourself.
npm WARN karma-sinon-chai@1.3.4 requires a peer of sinon-chai@>=2.9.0 <4 but none is installed. You must install peer dependencies yourself.
npm WARN redux-devtools-dock-monitor@1.1.3 requires a peer of redux-devtools@^3.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN redux-devtools-log-monitor@1.4.0 requires a peer of react@^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN redux-devtools-log-monitor@1.4.0 requires a peer of redux-devtools@^3.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-dock@0.2.4 requires a peer of babel-runtime@^6.3.13 but none is installed. You must install peer dependencies yourself.
npm WARN react-json-tree@0.11.0 requires a peer of react@^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-json-tree@0.11.0 requires a peer of react-dom@^15.0.0 || ^16.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@3.13.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-sass@3.13.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/and/.npm/_logs/2018-11-15T05_57_17_712Z-debug.log

Помогите разобраться!


make: g++: Команда не найдена

surefire ★★★
()

jwt

Ненужен и вреден.

sass

Просто ненужен.

Если ты действительно хочешь это собрать — g++ поставь, в логе же написано.

Но я бы советовал выкинуть и sass и, особенно, jwt.

ChALkeR ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.