Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module internal/fs #327

Closed
Pierpaolo1992 opened this issue Feb 8, 2017 · 5 comments
Closed

Cannot find module internal/fs #327

Pierpaolo1992 opened this issue Feb 8, 2017 · 5 comments
Labels

Comments

@Pierpaolo1992
Copy link

HI, i've used official node image for creating a docker container in which i'd like trying this project:

https://github.com/mozilla/fxa-webrtc-idp

i have to do npm install, then npm install pem-jwk; then when i try npm test there is the following error:

npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info lifecycle [email protected]~pretest: [email protected]
npm info lifecycle [email protected]~test: [email protected]

> [email protected] test /home/fxa-webrtc-idp
> LOG_LEVEL=error grunt test --node-env=test

Loading "nsp.js" tasks...ERROR
>> Error: Cannot find module 'internal/fs'

Running "copyright:app" (copyright) task

Running "eslint:files" (eslint) task


Running "mochaTest:test" (mochaTest) task


  the route /sign
    ✓ returns a 401 when the request is not authenticated
    ✓ returns a signed assertion when the request is authenticated

  the route /
    ✓ should return version information

  the route /__version__
    ✓ should return version information


  4 passing (45ms)


Running "mochaTest:coverage" (mochaTest) task
  Coverage Summary:
  Name                         Stmts   Miss   Cover   Missing
  -----------------------------------------------------------
  lib/app.js                      22      0    100%   
  lib/logging/summary.js          14      3     79%   14,30,31
  lib/routes/index.js              1      0    100%   
  lib/routes/oauthBegin.js         7      2     71%   20,25
  lib/routes/oauthComplete.js      8      2     75%   18,24
  lib/routes/sign.js              10      0    100%   
  lib/routes/verify.js            16      9     44%   14,23,26,27,29,31,32,35,37
  lib/routes/version.js           52      8     85%   34,35,47,48,60,61,74,75
  ===========================================================
  TOTAL                          130     24     82%
  

Running "mochaTest:travis-cov" (mochaTest) task
Coverage: 81%
Code coverage below threshold: 81 < 95


Execution Time (2017-02-08 11:00:46 UTC)
loading tasks   771ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 50%
eslint:files    426ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇ 28%
mochaTest:test  315ms  ▇▇▇▇▇▇▇▇▇▇ 21%
Total 1.5s

npm info lifecycle [email protected]~test: Failed to exec test script
npm ERR! Test failed.  See above for more details.

how can i solve the problem? i have to install npm inside my folder downloaded from git repo because /bin/gen_keys.js has path inside it.

@Pierpaolo1992 Pierpaolo1992 changed the title update internal/fs Cannot find module internal/fs Feb 8, 2017
@LaurentGoderre
Copy link
Member

I think this error is related to npm more than the image. I was having that issue before using the docker image with certain npm versions. Have you tried using the next version up to see if it works better?

@Pierpaolo1992
Copy link
Author

yes, i've updated npm (npm install npm@latest -g) but later, when i try npm test, appairs to me "cannot find module 'semver' "

@LaurentGoderre
Copy link
Member

All of these I think are related to the npm version.

@Fishrock123
Copy link

This sounds like a variation of nodejs/node#3606?

@chorrell chorrell added the npm label Apr 20, 2017
@chorrell
Copy link
Contributor

Closing as an npm issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants