无法 运行 npm typings install
unable to run npm typings install
我想 运行 现有的 MEAN Stack 项目。我遵循的步骤首先是 运行ning npm install
,然后是 npm run typings -- install
,因为我看不到任何打字文件夹。但是我收到了这些错误。
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "typings" "--" "install"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! missing script: typings
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! /home/sami/projects/myappadmin/npm-debug.log
我不确定如何摆脱这个问题我花了很多时间 google 并尝试了不同的解决方案,但对我来说没有任何效果。
我的节点版本是v6.9.5
。 nodejs 版本是 v4.4.7
。 MongoDBshellversion: 3.0.9
。 npm 3.10.10
。 nvm 0.31.1
ubuntu : 15.10
.
存在此问题可能是因为您没有在 package.json 中定义 "typings" 脚本。如果你想安装打字,使用
npm install typings -g
为什么要使用类型而不是 @types,请阅读这篇文章:
我想 运行 现有的 MEAN Stack 项目。我遵循的步骤首先是 运行ning npm install
,然后是 npm run typings -- install
,因为我看不到任何打字文件夹。但是我收到了这些错误。
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "typings" "--" "install"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! missing script: typings
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! /home/sami/projects/myappadmin/npm-debug.log
我不确定如何摆脱这个问题我花了很多时间 google 并尝试了不同的解决方案,但对我来说没有任何效果。
我的节点版本是v6.9.5
。 nodejs 版本是 v4.4.7
。 MongoDBshellversion: 3.0.9
。 npm 3.10.10
。 nvm 0.31.1
ubuntu : 15.10
.
存在此问题可能是因为您没有在 package.json 中定义 "typings" 脚本。如果你想安装打字,使用
npm install typings -g
为什么要使用类型而不是 @types,请阅读这篇文章: