iview / iview/iview-admin

centos7 安装依赖报错

Open
#1,302 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
16.3k
Forks
4.7k
PR merge metrics
No merged PRs in 30d

Description

使用的nvm安装的node10版本

[root@idc02 cmdb-fe]# npm install

> nodent-runtime@3.2.1 install /data/server/cmdb-fe/node_modules/nodent-runtime
> node build.js

sh: node: 未找到命令
npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-standard@12.0.0 requires a peer of eslint@>=5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-standard@12.0.0 requires a peer of eslint-plugin-node@>=7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-standard@12.0.0 requires a peer of eslint-plugin-promise@>=4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-standard@12.0.0 requires a peer of eslint-plugin-standard@>=4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN iview-admin@2.0.0 No repository field.
npm WARN iview-admin@2.0.0 No license field.
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! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! nodent-runtime@3.2.1 install: `node build.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the nodent-runtime@3.2.1 install 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! /root/.npm/_logs/2019-07-04T07_57_42_339Z-debug.log

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the npm install output, especially nodent-runtime@3.2.1's build.js install script, and the referenced npm debug log. Check the Node 10/nvm environment used on CentOS 7 and determine whether npm can spawn node during installation. Done means the dependency installation completes without the reported ENOENT failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
centos, javascript, node.js
Domain
build-system, cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.