1
更新時間:安裝角2通用
我試圖安裝使用this導角2通用,但是當我運行下面的命令,我得到了一些錯誤。
下面是一個命令:
typings install node express body-parser serve-static dexpress-serve-static-core mime --global --save
,並且錯誤是:
C:\Users\user\Desktop\myApp>typings install node express body-parser serve-static dexpress-serve-static-core mime --global --save
typings INFO globaldependencies "express" lists global dependencies on "node" that must be installed manually
typings INFO globaldependencies "serve-static" lists global dependencies on "node" that must be installed manually
typings INFO globaldependencies "body-parser" lists global dependencies on "node" that must be installed manually
typings ERR! message Unable to find "node" ("npm") in the registry.
typings ERR! message However, we found "node" for 2 other sources: "dt" and "env"
typings ERR! message You can install these using the "source" option.
typings ERR! message We could use your help adding these typings to the registry: https://github.com/typings/registry
typings ERR! caused by https://api.typings.org/entries/npm/node/versions/latest responded with 404, expected it to equal 200
typings ERR!
typings ERR! cwd C:\Users\user\Desktop\myApp
typings ERR! system Windows_NT 10.0.14393
typings ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\user\\AppData\\Roaming\\npm\\node_modules\\typings\\dist\\bin.js" "install" "node" "express" "body-parser" "serve-static" "dexpress-serve-static-core" "mime" "--global" "--save"
typings ERR! node -v v6.9.2
typings ERR! typings -v 2.0.0
typings ERR!
typings ERR! If you need help, you may report this error at:
typings ERR! <https://github.com/typings/typings/issues>
我使用節點版本v6.9.2和NPM 4.0.5
感謝您的回答...我已經更新了兩個nodejs和npm到最新的推薦版本,但仍然收到錯誤。請參閱更新的問題。 –