如果我将devDependency包安装为依赖项,我是否需要将其重新安装为devDependency?

时间:2018-05-07 07:19:34

标签: visual-studio-code

大多数情况下,当我需要将软件包安装为devDependency但我忘记添加--save-dev命令时,此安装最终为dependency

我的所作所为:

"dependencies": {
    "@types/express": "^4.11.1"
},
"devDependencies": {

}

但我的要求是:

"dependencies": {

},
"devDependencies": {
    "@types/express": "^4.11.1"    
}

现在,我是否需要重新安装devDependencycutpaste中的devDependency是否正常?

0 个答案:

没有答案