执行$ npm install -g strongloop
报错没有编译环境,需要安装编译工具。 这个暂时不考虑。
改用以下命令安装loopback: npm install -g yo
npm install -g generator-loopback
安装成功后,loopback的slc命令,使用yo替代。
例如创建一个新应用 >yo loopback
? ==========================================================================
? ==========================================================================
? ==========================================================================
We're constantly looking for ways to make yo better!
May we anonymously report usage statistics to improve the tool over time?
More info: https://github.com/yeoman/insight & http://yeoman.io
========================================================================== Yes
? What's the name of your application? (projects) |