基础新命令失败,称NPM节点模块未安装
我对基本上所有的事情都很陌生,抱歉。按照说明,我已经用NPM安装了基础CLI, 以下是我对一切的看法:基础新命令失败,称NPM节点模块未安装,npm,zurb-foundation,Npm,Zurb Foundation,我对基本上所有的事情都很陌生,抱歉。按照说明,我已经用NPM安装了基础CLI, 以下是我对一切的看法: NodeJS:10.0.0 净现值:6.0.0 基金会CLI:2.2.5 运行foundationnew,我选择一个网站项目,输入其名称,然后选择基本模板 命令逐渐消失,但最终得出: There were some problems during the installation. ✓ New project folder created. ✗ Node modules not in
- NodeJS:10.0.0
- 净现值:6.0.0
- 基金会CLI:2.2.5
foundationnew
,我选择一个网站项目,输入其名称,然后选择基本模板
命令逐渐消失,但最终得出:
There were some problems during the installation.
✓ New project folder created.
✗ Node modules not installed. Try running npm install manually.
✓ Bower components installed.
在此输出之前,有一些内容看起来与其相关:
make: Entering directory '/home/testproject/testproject/node_modules/gulp-sass/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/testproject/.node-gyp/10.0.0/include/node -I/home/testproject/.node-gyp/10.0.0/src -I/home/testproject/.node-gyp/10.0.0/deps/uv/include -I/home/testproject/.node-gyp/10.0.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
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
src/libsass.target.mk:139: recipe for target 'Release/obj.target/libsass/src/libsass/src/ast.o' failed
make: *** [Release/obj.target/libsass/src/libsass/src/ast.o] Error 4
make: Leaving directory '/home/testproject/testproject/node_modules/gulp-sass/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/testproject/testproject/node_modules/gulp-sass/node_modules/node-sass/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:225:12)
gyp ERR! System Linux 4.4.0-1055-aws
gyp ERR! command "/usr/bin/node" "/home/testproject/testproject/node_modules/gulp-sass/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/testproject/testproject/node_modules/gulp-sass/node_modules/node-sass
gyp ERR! node -v v10.0.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
因此,看起来同样的问题正在发生。最后一行提到的日志文件长10459行,因此我将其放在gist.github.com上:
我不知道该怎么办。谢谢问题是基础用大口——sass@2.1.0默认情况下,这取决于节点-sass@3.0.0. Npm将此依赖项解析为节点-sass@3.13.1,它与节点v8及更高版本不兼容 您必须使用最新版本的gulp sass。可通过以下步骤简单完成:
- 删除
文件夹节点\u模块/
- 删除
文件包锁.json
- 删除
package.json中的“^2.1.0”
- 运行
npm i gulp sass——保存开发
- 你可以在这里看到
使用命令
npx-pnode@10基础新——框架电子邮件
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/testproject/testproject/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:225:12)
gyp ERR! System Linux 4.4.0-1055-aws
gyp ERR! command "/usr/bin/node" "/home/testproject/testproject/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/testproject/testproject/node_modules/node-sass
gyp ERR! node -v v10.0.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
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/testproject/.npm/_logs/2018-05-04T01_51_12_745Z-debug.log