官术网_书友最值得收藏!

Existing Node.js Installation

If you installed Node.js before, when installing a new version of Node using choco or brew, ensure that you read the command outputs carefully. Your package manager may return caveats or additional instructions to follow, so you can successfully complete the installation.

It is also highly likely that your system or folder permissions have been edited manually in the past, which may interfere with a frustration-free operation of Node. If the following commands do not resolve your issues, use the GUI installer from Node's site as a last resort.

Regardless, you must take care to uninstall all global tools that were installed using npm -g previously. With every major Node version, there's a chance that native bindings between your tool and Node have been invalidated. Further, global tools rapidly fall out of date and project-specific tools quick go out of sync. As a result, installing tools globally is now an anti-pattern that has been replaced with better techniques, which are covered in the next section and under the Angular CLI section in Chapter 2, Create a Local Weather Web Application.

To see a list of your globally install packages, execute npm list -g --depth 0. To uninstall a global package, execute npm uninstall -g package-name. I would recommend that you uninstall all globally installed packages and restart from scratch with the suggestions provided in the next section.

主站蜘蛛池模板: 沁阳市| 邯郸县| 石门县| 钟祥市| 明溪县| 阿坝| 多伦县| 聂拉木县| 鲁甸县| 武冈市| 高邮市| 汉源县| 云阳县| 上杭县| 钦州市| 岗巴县| 洞头县| 那坡县| 台北县| 鄂托克前旗| 孟村| 固始县| 和林格尔县| 唐河县| 平顶山市| 香港 | 漠河县| 犍为县| 临沧市| 南部县| 荆州市| 长岛县| 云和县| 阜南县| 南靖县| 博野县| 方山县| 瑞丽市| 乡城县| 新干县| 吉木萨尔县|