javascript - 通过 npm install 安装时出错

标签 javascript node.js ubuntu npm yeoman

我在运行 npm install 时遇到错误在 Ubuntu 12.04 上:

以下是我的 npm-debug.log 的一部分在我遇到错误的地方:

2221 verbose lock tar:///home/vagrant/.npm/lodash/0.9.2/package.tgz /home/vagrant/.npm/4605d2c2-ant-npm-lodash-0-9-2-package-tgz.lock
2222 silly gunzTarPerm modes [ '755', '644' ]
2223 silly gunzTarPerm extractEntry package.json
2224 silly gunzTarPerm extractEntry lib/js-yaml/type/merge.js
2225 silly gunzTarPerm extractEntry lib/js-yaml/type/timestamp.js
2226 silly gunzTarPerm extractEntry README.md
2227 silly gunzTarPerm extractEntry lodash.js
2228 silly gunzTarPerm extractEntry lib/js-yaml/type/null.js
2229 silly gunzTarPerm extractEntry lib/js-yaml/type/js/function.js
2230 silly gunzTarPerm extractEntry lodash.min.js
2231 silly gunzTarPerm extractEntry lib/js-yaml/type/js/regexp.js
2232 silly gunzTarPerm extractEntry lib/js-yaml/type/js/undefined.js
2233 silly gunzTarPerm extractEntry lodash.underscore.js
2234 silly gunzTarPerm extractEntry lodash.underscore.min.js
2235 error Error: UNKNOWN, symlink '../grunt-open/bin/grunt-open'
2236 error If you need help, you may report this *entire* log,
2236 error including the npm and node versions, at:
2236 error     <http://github.com/npm/npm/issues>
2237 error System Linux 3.2.0-23-generic
2238 error command "/usr/bin/node" "/usr/bin/npm" "install"
2239 error cwd /var/www
2240 error node -v v0.10.26
2241 error npm -v 1.4.3
2242 error path ../grunt-open/bin/grunt-open
2243 error code UNKNOWN
2244 error errno -1
2245 verbose exit [ -1, true ]

这是我的package.json :
{
    "name": "www",
    "version": "0.0.1",
    "private": true,
    "scripts": {
        "start": "node server"
    },
    "engines": {
        "node": ">=0.8.0"
    },
    "dependencies": {
        "express": "3.4.0",
        "ejs": "*"
    },
    "devDependencies": {
        "grunt": "~0.4.1",
        "grunt-contrib-copy": "~0.4.1",
        "grunt-contrib-concat": "~0.3.0",
        "grunt-contrib-coffee": "~0.7.0",
        "grunt-contrib-uglify": "~0.2.0",
        "grunt-contrib-compass": "~0.3.0",
        "grunt-contrib-jshint": "~0.6.0",
        "grunt-contrib-cssmin": "~0.6.0",
        "grunt-contrib-connect": "~0.3.0",
        "grunt-contrib-clean": "~0.4.1",
        "grunt-contrib-htmlmin": "~0.1.3",
        "grunt-contrib-imagemin": "~0.1.4",
        "grunt-contrib-watch": "~0.4.0",
        "grunt-usemin": "~0.1.11",
        "grunt-rev": "~0.1.0",
        "grunt-karma": "~0.4.3",
        "grunt-open": "~0.2.0",
        "grunt-concurrent": "~0.3.0",
        "matchdep": "~0.1.2",
        "connect-livereload": "~0.2.0",
        "grunt-google-cdn": "~0.2.0",
        "grunt-ngmin": "~0.0.2",
        "grunt-express": "~1.2.1",
        "time-grunt": "~0.1.1"
    }
}

基本上我用过Yeoman使用 yo meanstack 生成平均堆栈然后 npm install在同一目录上。

有什么我应该在这里解决的吗?

最佳答案

我可以从日志中猜到您正在运行 vagrant box。你应该看看这个问题:

https://github.com/TryGhost/Ghost/issues/1058

... VM software failing to account for the fact that sym-links don't exist in Windows. If you're running Vagrant, upgrade to the latest version.

关于javascript - 通过 npm install 安装时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23002181/

相关文章:

linux - 如何自动将答案传递给命令行

javascript - 标记视频不适用于 onmouseover 和 onvideoout

javascript - 元素插入事件

node.js - 无法轻松地从测试运行器输出导航到 WebStorm 中的相关文件

mysql - 如何更改自定义 vagrant box 的 php 和 mysql 设置

linux - 测量进程使用的内存,考虑写时复制

javascript - 发送消息到后台页面,更新html,然后在选项卡中显示

javascript - 使用 JQuery 动画旋转 SVG 元素

node.js - docker Express 服务器之间的连接被拒绝

node.js - 我正在尝试将我的 Electron 应用程序转换为 windows portable