问题描述
- 用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:project2shijuannode_modulesnode-sassnode_modulessas modulesspawn-sync > node postinstall > node-sass@3.2.0 install E:project2shijuannode_modulesnode-sass > node scripts/install.js Binary downloaded and installed at E:project2shijuannode_modulesnode-sassvendorwin32- > node-sass@3.2.0 postinstall E:project2shijuannode_modulesnode-sass > node scripts/build.js ` E:project2shijuannode_modulesnode-sassvendorwin32-ia32-14binding.node ` exists. testing binary. Binary is fine; exiting. > bufferutil@1.1.0 install E:project2shijuannode_moduleswebpack-dev-servernode_modules > node-gyp rebuild | (venv) Think@RESEARCH E:project2shijuannode_moduleswebpack-dev-servernode_modulessock > if not defined npm_config_node_gyp (node "C:Program Files (x86)nodejsnode_modulesnpm e rebuild ) 在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。 bufferutil.cc 正在创建库 E:project2shijuannode_moduleswebpack-dev-servernode_modulessocket.io util .expb 和对象 E:project2shijuannode_moduleswebpack-dev-servernode_modulessocket.ion 正在生成代码 已完成代码的生成 bufferutil.vcxproj -> E:project2shijuannode_moduleswebpack-dev-servernode_modulesso se\bufferutil.node | > utf-8-validate@1.1.0 install E:project2shijuannode_moduleswebpack-dev-servernode_mod f-8-validate > node-gyp rebuild / (venv) Think@RESEARCH E:project2shijuannode_moduleswebpack-dev-servernode_modulessock ate > if not defined npm_config_node_gyp (node "C:Program Files (x86)nodejsnode_modulesnpm e rebuild ) 在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。 validation.cc 正在创建库 E:project2shijuannode_moduleswebpack-dev-servernode_modulessocket.io- ild Releasevalidation.lib 和对象 E:project2shijuannode_moduleswebpack-dev-servernode_mo tf -8-validatebuildReleasevalidation.exp 正在生成代码 已完成代码的生成 validation.vcxproj -> E:project2shijuannode_moduleswebpack-dev-servernode_modulesso lidatebuildRelease\validation.node > utf-8-validate@1.1.0 install E:project2shijuannode_moduleswebpack-dev-servernode_mod > node-gyp rebuild (venv) Think@RESEARCH E:project2shijuannode_moduleswebpack-dev-servernode_modulessock > if not defined npm_config_node_gyp (node "C:Program Files (x86)nodejsnode_modulesnpm e rebuild ) 在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。 validation.cc 正在创建库 E:project2shijuannode_moduleswebpack-dev-servernode_modulessocket.io lida tion.lib 和对象 E:project2shijuannode_moduleswebpack-dev-servernode_modulessocket.i va lidation.exp 正在生成代码 已完成代码的生成 validation.vcxproj -> E:project2shijuannode_moduleswebpack-dev-servernode_modulesso elease\validation.node > bufferutil@1.1.0 install E:project2shijuannode_moduleswebpack-dev-servernode_modules util > node-gyp rebuild (venv) Think@RESEARCH E:project2shijuannode_moduleswebpack-dev-servernode_modulessock > if not defined npm_config_node_gyp (node "C:Program Files (x86)nodejsnode_modulesnpm e rebuild ) 在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。 bufferutil.cc 正在创建库 E:project2shijuannode_moduleswebpack-dev-servernode_modulessocket.io- Rele asebufferutil.lib 和对象 E:project2shijuannode_moduleswebpack-dev-servernode_module ru tilbuildReleasebufferutil.exp 正在生成代码 已完成代码的生成 bufferutil.vcxproj -> E:project2shijuannode_moduleswebpack-dev-servernode_modulesso ilbuildRelease\bufferutil.node vinyl-named@1.1.0 node_modulesvinyl-named └── through@2.3.8 manifest-revision-webpack-plugin@0.0.5 node_modulesmanifest-revision-webpack-plugin └── walk@2.3.9 (foreachasync@3.0.0) coffee-script@1.9.3 node_modulescoffee-script superagent@1.3.0 node_modulessuperagent ├── 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" } }
解决方案
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
--- 这是一些提示建议等,没看到你说的具体问题是什么
解决方案二:
http://blog.csdn.net/liyanhui1001/article/details/44020235
解决方案三:
我npm install也出现也在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
请问你最后怎么解决的啊
时间: 2024-09-14 09:30:59