繁体   English   中英

通过npm install安装时出错

[英]Error installing via npm install

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

以下是我在哪里出错的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在同一目录中。

有什么我应该在这里修复的吗?

从日志中我可以猜到您正在运行无业游民的盒子。 您应该看一下这个问题:

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

... VM软件无法解释Windows中不存在符号链接的事实。 如果您正在运行Vagrant,请升级到最新版本。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM