我试图使用npm安装express,运行此代码:
npm install express mongoose jade less expresso
但我一直收到这个错误,
> make deps/jscoverage/node-jscoverage
sh: make: command not found
npm ERR! expresso@0.9.2 preinstall: `make deps/jscoverage/node-jscoverage`
npm ERR! `sh "-c" "make deps/jscoverage/node-jscoverage"` failed with 127
npm ERR! Failed at the expresso@0.9.2 preinstall script.
npm ERR! This is most likely a problem with the expresso package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! make deps/jscoverage/node-jscoverage
Run Code Online (Sandbox Code Playgroud)
我搜索了很多,似乎无法找到答案.干杯.
你没有make,你必须安装它(它是gcc的一部分).
如果您使用的是基于Debian的Linux发行版:
sudo apt-get install build-essential
Run Code Online (Sandbox Code Playgroud)
如果您使用的是Mac OS X,则必须安装XCode,然后安装其命令行工具:
安装XCode 4然后打开它,进入首选项 - >下载 - >组件 - >单击命令行工具,然后单击其安装按钮.
而我只是希望你不在Windows上,因为我无法帮助你呵呵:-P
希望这可以帮助!