is_thinking 2015-08-24 14:13 采纳率: 66.7%
浏览 23080
已采纳

用npm安装package.json时出现错误

我是在win8 64bit上面操作,本来安装的nodejs是64位的,

npm install时一直出现错误,上网查后有说要安装32位的,而且需要安装vs,

于是我卸载64的node又安装32的node,又安装vs2012,

然后又npm install

出现如下异常:

 npm WARN optional dep failed, continuing fsevents@0.3.8
\


> spawn-sync@1.0.13 postinstall E:\project2\shijuan\node_modules\node-sass\node_modules\sas
modules\spawn-sync
> node postinstall

\


> node-sass@3.2.0 install E:\project2\shijuan\node_modules\node-sass
> node scripts/install.js

Binary downloaded and installed at E:\project2\shijuan\node_modules\node-sass\vendor\win32-



> node-sass@3.2.0 postinstall E:\project2\shijuan\node_modules\node-sass
> node scripts/build.js

` E:\project2\shijuan\node_modules\node-sass\vendor\win32-ia32-14\binding.node ` exists.
 testing binary.
Binary is fine; exiting.
\


> bufferutil@1.1.0 install E:\project2\shijuan\node_modules\webpack-dev-server\node_modules
> node-gyp rebuild

|
(venv) Think@RESEARCH E:\project2\shijuan\node_modules\webpack-dev-server\node_modules\sock
> if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodejs\node_modules\npm\
e  rebuild )
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
  bufferutil.cc
     正在创建库 E:\project2\shijuan\node_modules\webpack-dev-server\node_modules\socket.io\
util
  .expb 和对象 E:\project2\shijuan\node_modules\webpack-dev-server\node_modules\socket.io\n
  正在生成代码
  已完成代码的生成
  bufferutil.vcxproj -> E:\project2\shijuan\node_modules\webpack-dev-server\node_modules\so
  se\\bufferutil.node
|


> utf-8-validate@1.1.0 install E:\project2\shijuan\node_modules\webpack-dev-server\node_mod
f-8-validate
> node-gyp rebuild

/
(venv) Think@RESEARCH E:\project2\shijuan\node_modules\webpack-dev-server\node_modules\sock
ate
> if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodejs\node_modules\npm\
e  rebuild )
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
  validation.cc
     正在创建库 E:\project2\shijuan\node_modules\webpack-dev-server\node_modules\socket.io-
ild\
  Release\validation.lib 和对象 E:\project2\shijuan\node_modules\webpack-dev-server\node_mo
tf
  -8-validate\build\Release\validation.exp
  正在生成代码
  已完成代码的生成
  validation.vcxproj -> E:\project2\shijuan\node_modules\webpack-dev-server\node_modules\so
  lidate\build\Release\\validation.node

> utf-8-validate@1.1.0 install E:\project2\shijuan\node_modules\webpack-dev-server\node_mod
> node-gyp rebuild


(venv) Think@RESEARCH E:\project2\shijuan\node_modules\webpack-dev-server\node_modules\sock
> if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodejs\node_modules\npm\
e  rebuild )
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
  validation.cc
     正在创建库 E:\project2\shijuan\node_modules\webpack-dev-server\node_modules\socket.io\
lida
  tion.lib 和对象 E:\project2\shijuan\node_modules\webpack-dev-server\node_modules\socket.i
va
  lidation.exp
  正在生成代码
  已完成代码的生成
  validation.vcxproj -> E:\project2\shijuan\node_modules\webpack-dev-server\node_modules\so
  elease\\validation.node

> bufferutil@1.1.0 install E:\project2\shijuan\node_modules\webpack-dev-server\node_modules
util
> node-gyp rebuild


(venv) Think@RESEARCH E:\project2\shijuan\node_modules\webpack-dev-server\node_modules\sock
> if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodejs\node_modules\npm\
e  rebuild )
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
  bufferutil.cc
     正在创建库 E:\project2\shijuan\node_modules\webpack-dev-server\node_modules\socket.io-
Rele
  ase\bufferutil.lib 和对象 E:\project2\shijuan\node_modules\webpack-dev-server\node_module
ru
  til\build\Release\bufferutil.exp
  正在生成代码
  已完成代码的生成
  bufferutil.vcxproj -> E:\project2\shijuan\node_modules\webpack-dev-server\node_modules\so
  il\build\Release\\bufferutil.node
vinyl-named@1.1.0 node_modules\vinyl-named
└── through@2.3.8

manifest-revision-webpack-plugin@0.0.5 node_modules\manifest-revision-webpack-plugin
└── walk@2.3.9 (foreachasync@3.0.0)

coffee-script@1.9.3 node_modules\coffee-script

superagent@1.3.0 node_modules\superagent
├── extend@1.2.1
├── methods@1.0.1
├── cookiejar@2.0.1
├── component-emitter@1.1.2
├── reduce-component@1.0.1
├── mime@1.3.4
├── qs@2.3.3
├── debug@2.2.0 (ms@0.7.1)
├── readable-stream@1.0.27-1 (inherits@2.0.1, isarray@0.0.1, string_decoder@0.10.31, core-u
├── formidable@1.0.14
└── form-data@0.2.0 (async@0.9.2, combined-stream@0.0.7, mime-types@2.0.14)

其实看上去也成功了很多,但是前面那几个异常怎么解决呢?谢谢各位

package.json如下

{
  "repository": {
    "type": "git",
    "url": ""
  },
  "license": "MIT",
  "description": "Project Shijuan",
  "scripts": {
    "start": "node_modules/.bin/webpack-dev-server --config conf/webpack.config.js --progress --colors --port 5001 --content-base build/public",
    "build": "node_modules/.bin/webpack --config conf/webpack.config.js --progress --profile --colors"
  },
  "dependencies": {
    "amazeui": "^2.4.2",
    "babel-core": "^5.4.7",
    "babel-loader": "^5.1.3",
    "coffee-loader": "^0.7.2",
    "coffee-script": "^1.9.3",
    "css-loader": "^0.15.6",
    "echarts": "^2.2.7-beta7",
    "extract-text-webpack-plugin": "^0.8.1",
    "file-loader": "^0.8.4",
    "html-loader": "^0.3.0",
    "jquery": "^2.1.4",
    "manifest-revision-webpack-plugin": "^0.0.5",
    "node-sass": "^3.2.0",
    "postcss-loader": "^0.5.1",
    "sass-loader": "^2.0.0",
    "style-loader": "^0.12.3",
    "superagent": "^1.3.0",
    "url-loader": "^0.5.6",
    "vinyl-named": "^1.1.0",
    "vue": "^0.12.10",
    "vue-loader": "^2.1.1",
    "vue-validator": "^1.4.0",
    "webpack": "^1.10.0",
    "webpack-dev-server": "^1.9.0",
    "zrender": "ecomfe/zrender"
  }
}

  • 写回答

3条回答 默认 最新

  • oyljerry 2015-08-25 02:21
    关注

    在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
    --- 这是一些提示建议等,没看到你说的具体问题是什么

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥30 关于#java#的问题,请各位专家解答!
  • ¥20 pcf8563时钟芯片不启振
  • ¥20 pip2.40更新pip2.43时报错
  • ¥15 换yum源但仍然用不了httpd
  • ¥50 C# 使用DEVMOD设置打印机首选项
  • ¥15 麒麟V10 arm安装gdal
  • ¥20 OPENVPN连接问题
  • ¥15 flask实现搜索框访问数据库
  • ¥15 mrk3399刷完安卓11后投屏调试只能显示一个设备
  • ¥100 如何用js写一个游戏云存档