npm-Typescript 安装 [英] Npm-Typescript installation
本文介绍了npm-Typescript 安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试在命令行中运行 ">npm install" 但我得到了这样的错误 cb() 从未调用过
Tried to run ">npm install" in command line but ı got error like this cb() never called
我试过了;
npm 缓存清除 --force
npm cache clear --force
但是没用
我也尝试安装这样的打字稿
also ı tried to install typescript like this
npm install -g 打字稿
npm install -g typescript
但发生了同样的错误
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>
推荐答案
问题是计算机名称不包含字符.也是我.创建一个新用户,但用户名应该是英文(而不是 ©)您将看到您刚刚创建的用户正在使用 cmd 运行 npm install -g typescript
The problem is that the name of the computer does not consist of characters. It was me too. Create a new user, but the username should be in English (not İ) You will see that the user you just created is running npm install -g typescript with cmd
这篇关于npm-Typescript 安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文