inrupt / pod-server

Solid server package that bind together solid-idp, wac-ldp, and websockets-pubsub.
MIT License
40 stars 12 forks source link

Build Error #50

Open tmciver opened 4 years ago

tmciver commented 4 years ago

I did the following and got the error shown:

$ git clone https://github.com/inrupt/pod-server
$ cd pod-server
$ npm install

> core-js@2.6.9 postinstall /home/tim/workspace/solid/pod-server/node_modules/core-js
> node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> pod-server@0.3.4 prepare /home/tim/workspace/solid/pod-server
> cd node_modules/wac-ldp ; npm install ; npm run build ; cd ../websockets-pubsub ; npm install ; npm run build ; cd ../..

npm WARN deprecated text-encoding@0.6.4: no longer maintained
npm WARN deprecated fsevents@1.2.9: One of your dependencies needs to upgrade to fsevents v2: 1) Proper nodejs v10+ support 2) No more fetching binaries from AWS, smaller package size
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()

> wac-ldp@0.9.6 prepare /home/tim/workspace/solid/pod-server/node_modules/wac-ldp
> npm run build

> wac-ldp@0.9.6 build /home/tim/workspace/solid/pod-server/node_modules/wac-ldp
> tsc -p tsconfig.json

src/__mocks__/node-fetch.ts:2:10 - error TS2440: Import declaration conflicts with local declaration of 'Response'.

2 import { Response } from 'node-fetch'
           ~~~~~~~~

Found 1 error.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! wac-ldp@0.9.6 build: `tsc -p tsconfig.json`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the wac-ldp@0.9.6 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/tim/.npm/_logs/2019-11-29T15_15_15_891Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! wac-ldp@0.9.6 prepare: `npm run build`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the wac-ldp@0.9.6 prepare script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/tim/.npm/_logs/2019-11-29T15_15_15_993Z-debug.log

> wac-ldp@0.9.6 build /home/tim/workspace/solid/pod-server/node_modules/wac-ldp
> tsc -p tsconfig.json

src/__mocks__/node-fetch.ts:2:10 - error TS2440: Import declaration conflicts with local declaration of 'Response'.

2 import { Response } from 'node-fetch'
           ~~~~~~~~

Found 1 error.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! wac-ldp@0.9.6 build: `tsc -p tsconfig.json`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the wac-ldp@0.9.6 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/tim/.npm/_logs/2019-11-29T15_15_24_959Z-debug.log
npm WARN deprecated @types/handlebars@4.1.0: This is a stub types definition. handlebars provides its own type definitions, so you do not need this installed.
npm WARN deprecated fsevents@1.2.9: One of your dependencies needs to upgrade to fsevents v2: 1) Proper nodejs v10+ support 2) No more fetching binaries from AWS, smaller package size
npm WARN deprecated text-encoding@0.6.4: no longer maintained
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()

> websockets-pubsub@0.3.7 prepare /home/tim/workspace/solid/pod-server/node_modules/websockets-pubsub
> npm run build

> websockets-pubsub@0.3.7 build /home/tim/workspace/solid/pod-server/node_modules/websockets-pubsub
> tsc -p tsconfig.json

src/__mocks__/node-fetch.ts:2:10 - error TS2440: Import declaration conflicts with local declaration of 'Response'.

2 import { Response, default as realFetch } from 'node-fetch'
           ~~~~~~~~

Found 1 error.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! websockets-pubsub@0.3.7 build: `tsc -p tsconfig.json`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the websockets-pubsub@0.3.7 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/tim/.npm/_logs/2019-11-29T15_15_53_697Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! websockets-pubsub@0.3.7 prepare: `npm run build`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the websockets-pubsub@0.3.7 prepare script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/tim/.npm/_logs/2019-11-29T15_15_53_768Z-debug.log

So it appears that the build of wac-ldp is failing somehow but when I checked out that project, it built without error.

cristianvasquez commented 4 years ago

Same here.