我是一个node.js的菜鸟。 我git clone源码后,然后全局安装,运行tests,但报错:

ERR! resumake-client@0.1.0 lint: `blyss | snazzy`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the resumake-client@0.1.0 lint script 'blyss | snazzy'.
npm ERR! Make sure you have the latest version of node.js and npm installed.

我的运行环境是:

node.js version is 8.10.0
npm version is 3.5.2
ubuntu 18.04
发布于 2020-11-26 10:48
共1个回答
UJ
游客uJLTPs

不建议全局安装任何东西。你的NPM版本有点低,建议升级到V5.0.0+,只需要运行npm install -g npm即可更新npm。

正确的安装步骤是: - 克隆或下载源码到本地 - 转到源码目录,运行npm run build,这样它会在client和server运行npm install。 - 运行npm start。客户端运行在localhost:3000,服务端运行在localhost:3001

回答问题