我尝试在Windows中通过CMD安装打字稿。但是我遇到了这些错误:
npm ERR! pna.nextTick is not a function
npm ERR! asyncWrite is not a function
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\deepu\AppData\Roaming\npm-cache\_logs\2018-10-10T11_17_39_169Z-debug.log
答案 0 :(得分:-1)
这对我有用
rm -rf /usr/local/lib/node_modules
rm -rf /usr/local/bin/node
rm -rf /usr/local/bin/npm
n 10.9.0
node -v
npm -v