NPM package.json not updating after npm install

淺唱寂寞╮ 提交于 2019-12-11 10:19:13

问题


i have package.json:

{  
    "dependencies":{  
        "package": "^3.3.0"  
    }
}

when i transfer this package.json in another folder and run npm install

i get the same package.json even though it should update package to 3.3.2

but when i run npm list version is 3.3.2
So my question is, why is package.json not updating ?


回答1:


I just experience a similar issue. My solution is documented here: npm install NOT dowloading latest package

I think npm update should resolve your issue. You will also find npm outdated command quite useful.



来源:https://stackoverflow.com/questions/51529421/npm-package-json-not-updating-after-npm-install

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!