每当我尝试在角度2项目上运行npm install时,我都会收到以下错误。
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/Cellar/node/5.3.0/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.2.2
npm ERR! npm v3.9.5
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! pantree@0.0.1 preinstall: `typings install`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the pantree@0.0.1 preinstall script 'typings install'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the pantree package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! typings install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs pantree
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls pantree
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/Ian/Documents/mean/npm-debug.log
我已经执行了许多步骤,包括在运行npm install之前全局安装typing,卸载所有全局npm软件包并确保我拥有最新的节点和npm版本。
有人能解释这种情况发生的原因以及解决方案可能是什么?当通过角度站点上的快速启动项目手动创建文件以及通过自耕农建立文件时,都会发生这种情况。这使我怀疑它是错误消息中建议的包本身的错误。
如果有人能够对此有所启发,我们将不胜感激。