簡體   English   中英

在Windows 8.1上安裝node.js時出錯

[英]Error when installing node.js on Windows 8.1

我已經在Windows 8.1 PC中安裝了node-v5.4.0-x64。 在安裝過程中,出現以下錯誤,但安裝完成。

Warning 1909. Could Not Create Shortcut Node.js command prompt.lnk. Verify that the destination folder exists and that you can access it.

嘗試npm命令時出現以下錯誤。

'CALL "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\\node_modules\npm\bin\npm-cli.js" prefix -g' is not recognized as an internal or external command,
operable program or batch file.

我已經嘗試按照某些文章中的建議重新安裝node.js,但沒有成功。 我已經搜索了此錯誤,但是還沒有找到任何合適的解決方案。 有人能幫助我嗎。

通過在AppData目錄中創建npm文件夾並重新安裝node.js,我能夠解決此問題。

我遵循了這里給出的指示。

https://github.com/nodejs/node-v0.x-archive/issues/8141

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM