iview-admin icon indicating copy to clipboard operation
iview-admin copied to clipboard

centos7 安装依赖报错

Open wufeiqun opened this issue 5 years ago • 1 comments

使用的nvm安装的node10版本

[root@idc02 cmdb-fe]# npm install

[email protected] install /data/server/cmdb-fe/node_modules/nodent-runtime node build.js

sh: node: 未找到命令 npm WARN [email protected] requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] requires a peer of eslint@>=5.0.0 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] requires a peer of eslint-plugin-node@>=7.0.0 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] requires a peer of eslint-plugin-promise@>=4.0.0 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] requires a peer of eslint-plugin-standard@>=4.0.0 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] No repository field. npm WARN [email protected] No license field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: 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! [email protected] install: node build.js npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the [email protected] 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

wufeiqun avatar Jul 04 '19 08:07 wufeiqun

surprise!! https://lupeier.com/post/linux-npm-install-eacces/

Little-Little-Monster avatar Nov 21 '19 07:11 Little-Little-Monster