Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/385.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/41.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 通过npm安装进行安装时出错_Javascript_Node.js_Ubuntu_Npm_Yeoman - Fatal编程技术网

Javascript 通过npm安装进行安装时出错

Javascript 通过npm安装进行安装时出错,javascript,node.js,ubuntu,npm,yeoman,Javascript,Node.js,Ubuntu,Npm,Yeoman,我在Ubuntu 12.04上运行npm安装时遇到以下错误: 下面是我的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' ] 2

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

下面是我的
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 ]
基本上,我使用了
Yeoman
生成平均堆栈,使用
yomeanstack
然后在同一目录上安装
npm


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

我可以从日志中猜到你在运行“流浪者”对话框。您应该看看这个问题:

。。。VM软件无法解释Windows中不存在sym链接这一事实。如果您正在运行Vagrant,请升级至最新版本

{
    "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"
    }
}