简体   繁体   中英

Can I upgrade my Sails project to a new version of nodejs? If possible, how do I do it?

我有一个项目使用nodejs版本0.12.7,我想将我的项目更新到节点7.0.0

You shouldn't have to upgrade your project. You just need to upgrade Node. Here's a tutorial on how to install a new version of Node alongside the old version, so that if anything doesn't work with the new one, you can switch to the old one.

I'd suggest copying the project to some other place, cleaning node_modules and doing npm install to see how it works.

You may get problems with new versions of npm modules if their API changed so you may need to specify exact versions of modules that are known to work in your package.json.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM