试图在命令行中运行“> npm install”,但我却遇到了从未调用过的cb()这样的错误
我尝试过
npm缓存清除--force
但是没用
我也试图这样安装打字稿
npm install -g打字稿
但发生了相同的错误
npm -v :6.4.1
node -v:10.15.0
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\KAL-MET KALİBRASYON\AppData\Roaming\npm\node_modules\.staging\typescript-443b24ed\bin\tsc'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\KAL-MET KALİBRASYON\AppData\Roaming\npm\node_modules\.staging\typescript-443b24ed\bin\tsserver'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\KAL-MET KALİBRASYON\AppData\Roaming\npm\node_modules\.staging\typescript-443b24ed\lib\cancellationToken.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\KAL-MET KALİBRASYON\AppData\Roaming\npm\node_modules\.staging\typescript-443b24ed\lib\cs\diagnosticMessages.generated.json'
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://npm.community>
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\KAL-MET KALİBRASYON\AppData\Roaming\npm-cache\_logs\2019-01-24T08_36_15_783Z-debug.log
C:\Users\KAL-MET KALİBRASYON>
答案 0 :(得分:0)
问题是计算机的名称不包含字符。 我也是。 创建一个新用户,但用户名应为英文(而非İ) 您将看到刚刚创建的用户正在使用cmd运行npm install -g typescript