在Webstorm 2017.1.3 / Ubuntu 16.04 LTS中安装npm软件包

时间:2017-06-04 14:54:51

标签: node.js ubuntu express npm webstorm

尝试创建新的" Node.js Express App"在WebStorm 2017.1.3中。 /在Ubuntu 16.04 LTS上。我收到以下错误:请指定npm或yarn package enter image description here

所以我使用

全局安装了包
$ sudo npm install -g express

并重新启动了WebStorm,但仍然没有运气。

然后我尝试了在这个帖子中提出的建议:WebStorm - error: Please specify npm package。再没有运气。

我继续尝试使用WebStorm安装软件包,但仍然收到相同的错误消息: enter image description here

我有什么想法可以让它运行起来吗?

1 个答案:

答案 0 :(得分:0)

从Express 4开始,您应该安装express-generator

build()

More information on using express-generator