[英]unable to run npm typings install
我想运行一个现有的MEAN Stack项目。 我要执行的步骤是,首先我正在运行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
。 MongoDB Shell version: 3.0.9
。 npm 3.10.10
。 nvm 0.31.1
Ubuntu版本: 15.10
。
存在此问题的原因可能是您在package.json中没有定义“ typings”脚本。 如果要安装键入,请使用
npm install typings -g
为什么使用类型输入,请改用@types,请阅读本文:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.