Typescript 缺少脚本:键入安装

Typescript 缺少脚本:键入安装,typescript,angular,npm,Typescript,Angular,Npm,我收到以下命令错误:npm run typings install: npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "typings-install" npm ERR! node v6.2.2 npm ERR! npm v3.9.5 npm

我收到以下命令错误:npm run typings install:

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "typings-install"
npm ERR! node v6.2.2
npm ERR! npm  v3.9.5

npm ERR! missing script: typings-install
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\armyTik\Desktop\angular2_3\angular2-webpack-starter-master\angular2-webpack-starter\npm-debug.log

您的
package.json
似乎不包含
typings安装脚本。请在问题中包含
package.json
,以进行验证

另外,
typings install-g
不是有效的命令。如果您有
typings.json
文件(在
package.json
旁边),则可以运行
typings安装。如果没有,则必须手动使用install every dependency,如下所示:

typings i env~node@4 -SG  <-- this installs and saves the node v4 definitions
typings i dt~lodash -SG  <-- this installs and saves the lodash definitions from DefinitelyTyped

i环境打字~node@4-SG您的
包.json
似乎不包含
打字安装
脚本。请在问题中包含
package.json
,以进行验证

另外,
typings install-g
不是有效的命令。如果您有
typings.json
文件(在
package.json
旁边),则可以运行
typings安装。如果没有,则必须手动使用install every dependency,如下所示:

typings i env~node@4 -SG  <-- this installs and saves the node v4 definitions
typings i dt~lodash -SG  <-- this installs and saves the lodash definitions from DefinitelyTyped

i环境打字~node@4-SG通过使用以下命令安装,可以使用typescript 2.0:

npm安装-gtypescript@2.0

然后,您可以使用以下命令安装loadash:

npm安装--保存@types/lodash


通过使用以下命令安装,可以使用typescript 2.0:

npm安装-gtypescript@2.0

然后,您可以使用以下命令安装loadash:

npm安装--保存@types/lodash

npm运行键入安装是错误的命令。请改为运行npm安装。

npm运行键入安装是错误的命令。改为运行npm安装