当我npm install
从 react-boilerplate 项目运行时,我的几个 3rd 方模块会发出如下所示的错误。所有这些模块在其他节点项目中都可以正常工作,只是在 react-boilerplate 中不行。有谁知道如何解决这些问题?
ERROR in ./~/nconf/lib/nconf.js
Module not found: Error: Can't resolve 'fs' in '/Users/me/src/fullboar/probate-web/node_modules/nconf/lib'
@ ./~/nconf/lib/nconf.js 8:9-22
ERROR in ./~/nconf/package.json
Module parse failed: /Users/me/src/fullboar/probate-web/node_modules/nconf/package.json Unexpected token (2:9)
You may need an appropriate loader to handle this file type.
| {
| "_args": [
| [
| {
@ ./~/nconf/lib/nconf.js 21:16-42
ERROR in ./~/nconf/lib/nconf/common.js
Module not found: Error: Can't resolve 'fs' in '/Users/me/src/fullboar/probate-web/node_modules/nconf/lib/nconf'
@ ./~/nconf/lib/nconf/common.js 8:9-22
ERROR in ./~/sequelize/package.json
Module parse failed: /Users/me/src/fullboar/probate-web/node_modules/sequelize/package.json Unexpected token (2:9)
You may need an appropriate loader to handle this file type.
| {
| "_args": [
| [
| {
@ ./~/sequelize/lib/sequelize.js 265:20-46