使用npm安裝typescript一直處於sill install loadAllDepsIntoIdealTree狀態,安裝無法完成

使用npm安裝typescript一直處於sill install loadAllDepsIntoIdealTree狀態,安裝無法完成。

iZuf64n23158mew3n6xshaZ:~/node-v6.9.2-linux-x64/bin # npm install typescript -g

[    ..............] - loadRequestedDeps: sill install loadAllDepsIntoIdealTree
[    ..............] / loadRequestedDeps: sill install loadAllDepsIntoIdealTree


解決方案:

可以使用npm 淘寶鏡像

npm install node-sass --registry=http://registry.npm.taobao.org

iZuf64n23158mew3n6xshaZ:~/node-v6.9.2-linux-x64/bin # npm install typescript -g --registry=http://regis                                                                 try.npm.taobao.org
/root/node-v6.9.2-linux-x64/bin/tsc -> /root/node-v6.9.2-linux-x64/lib/node_modules/typescript/bin/tsc
/root/node-v6.9.2-linux-x64/bin/tsserver -> /root/node-v6.9.2-linux-x64/lib/node_modules/typescript/bin                                                                 /tsserver
/root/node-v6.9.2-linux-x64/lib
└── [email protected]


詳細見:https://segmentfault.com/q/1010000006025361/a-1020000006252474

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章