我已在我的Mac上安装了Titanium,但每当我尝试全局安装任何npm包时,都会失败。
安装的输出内容如下:
安装的输出内容如下:
npm http 304 https://registry.npmjs.org/loggly
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/timespan
npm http GET https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/timespan
/Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/Password:/usr/local/share/npm/bin/grunt-init -> /Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/Password:/usr/local/share/npm/lib/node_modules/grunt-init/bin/grunt-init
grunt-init@0.2.1 /Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/Password:/usr/local/share/npm/lib/node_modules/grunt-init
├── semver@1.0.14
├── colors@0.6.2
├── hooker@0.2.3
├── grunt@0.4.1 (which@1.0.5, dateformat@1.0.2-1.2.3, eventemitter2@0.4.13, async@0.1.22, lodash@0.9.2, coffee-script@1.3.3, underscore.string@2.2.1, findup-sync@0.1.2, iconv-lite@0.2.11, nopt@1.0.10, rimraf@2.0.3, minimatch@0.2.12, glob@3.1.21, js-yaml@2.0.5)
└── prompt@0.1.12 (async@0.1.22, pkginfo@0.3.0, winston@0.5.11)
当我随后执行 grunt-init 命令时,没有返回任何内容。似乎是 Titanium 的某个组件干扰了我的全局 npm 安装?
这种情况只发生在我安装 Titanium 之后。如果我手动在 npm 目录中安装 grunt-init,则可以使它正常工作,但这实际上剥夺了我最好的功能。
请帮帮我!