我在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
生成平均堆栈。
我有什么需要解决的吗?
答案 0 :(得分:1)
我可以从日志中猜到你正在运行流浪盒。你应该看一下这个问题:
https://github.com/TryGhost/Ghost/issues/1058
... VM软件未能解释Windows中不存在sym-links的事实。如果您正在运行Vagrant,请升级到最新版本。