Jump to content

gulp-param missing


jerome
 Share

Recommended Posts

Hello,

 

I just forked the BJS repo in order to fix the little bug about curve3.

Before doing anything else and after the initial npm install, I check if the compiler works well :

$ gulp typescriptError: Cannot find module 'gulp-param'    at Function.Module._resolveFilename (module.js:338:15)    at Function.Module._load (module.js:280:25)    at Module.require (module.js:364:17)    at require (module.js:380:17)    at Object.<anonymous> (/var/www/html/BJS/Babylon.js/Tools/Gulp/gulpfile.js:1:74)    at Module._compile (module.js:456:26)    at Object.Module._extensions..js (module.js:474:10)    at Module.load (module.js:356:32)    at Function.Module._load (module.js:312:12)    at Module.require (module.js:364:17)

I just add it manually :

$ sudo npm install gulp-param

then it works.

 

This post is just to feed back about this missing module.

Link to comment
Share on other sites

mmh... it seems something else is broken also :(

I just edited the math/ts file and tried to compile :

$ gulp typescript[14:37:02] Using gulpfile /var/www/html/BJS/Babylon.js/Tools/Gulp/gulpfile.js[14:37:02] Starting 'typescript-to-js'.../var/www/html/BJS/Babylon.js/Tools/Gulp/node_modules/gulp-typescript/node_modules/typescript/bin/typescript.js:24325            processRootFile(host.getDefaultLibFileName(options), true);                                 ^TypeError: Object #<Host> has no method 'getDefaultLibFileName'    at Object.createProgram (/var/www/html/BJS/Babylon.js/Tools/Gulp/node_modules/gulp-typescript/node_modules/typescript/bin/typescript.js:24325:34)    at Project.compile (/var/www/html/BJS/Babylon.js/Tools/Gulp/node_modules/gulp-typescript/release/project.js:255:27)    at /var/www/html/BJS/Babylon.js/Tools/Gulp/node_modules/gulp-typescript/release/main.js:63:32    at Project.resolveAll (/var/www/html/BJS/Babylon.js/Tools/Gulp/node_modules/gulp-typescript/release/project.js:213:13)    at CompileStream.compile (/var/www/html/BJS/Babylon.js/Tools/Gulp/node_modules/gulp-typescript/release/main.js:62:27)    at CompileStream.end (/var/www/html/BJS/Babylon.js/Tools/Gulp/node_modules/gulp-typescript/release/main.js:75:14)    at DestroyableTransform.onend (/var/www/html/BJS/Babylon.js/Tools/Gulp/node_modules/gulp-sourcemaps/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:523:10)    at DestroyableTransform.g (events.js:180:16)    at DestroyableTransform.emit (events.js:117:20)    at /var/www/html/BJS/Babylon.js/Tools/Gulp/node_modules/gulp-sourcemaps/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:965:16

Is there something missing on my computer within the gulp world ?

or another TS curse upon Linux users ?

Link to comment
Share on other sites

I know about 'gulp-param'.  There is a new 'target', 'makeUgly',  in gulpfile.ts that allows you to uglify any .js you specify as a command line arg.  I must admit that node / npm is a black box for me.

 

The readme.md says you should also do a npm update, after npm install.  Might this not solve both problems?  If there was something to do when adding a new dependency, I unfortunately do not what that is.  I do know that I have gulped on Linux in the last 24 hours.

Link to comment
Share on other sites

When using require to load an npm package, you should also include the package in package.json (https://github.com/BabylonJS/Babylon.js/blob/master/Tools/Gulp/package.json) and define the version that is required. only then will npm understand this is a dependency needed.

Want me to add gulp-param to the dependency party? What version did you use?

@jerome - gulp already worked for you, if I remember correctly. did you change anything? this should actually work (unless the gulpfile was changed again).

Link to comment
Share on other sites

I didn't change anything but just updated npm.

This bug is not recent for me : the last time I needed to fix something, it went wrong on april 3rd (http://www.html5gamedevs.com/topic/13607-gulp-compilation-error-in-typescript-module/?p=77739 )

and I had to give the code to DK so he could change it for me at the time.

 

So, this is the same bug.

 

here's my current npm list (quite long, sorry), notice at the end the ERR messages :

 

[email protected] /var/www/html/BJS/Babylon.js/Tools/Gulp├─┬ [email protected]│ ├── [email protected]│ ├─┬ [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ └── [email protected]│ │ ├─┬ [email protected]│ │ │ └── [email protected]│ │ └── [email protected]│ ├── [email protected]│ ├─┬ [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ ├── [email protected]│ │ │ │ └── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ └── [email protected]│ │ │ └── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ └─┬ [email protected]│ │ │   ├─┬ [email protected]│ │ │   │ ├── [email protected]│ │ │   │ └── [email protected]│ │ │   └─┬ [email protected]│ │ │     └─┬ [email protected]│ │ │       └── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ ├── [email protected]│ │ │ │ └── [email protected]│ │ │ ├── [email protected]│ │ │ └── [email protected]│ │ ├─┬ [email protected]│ │ │ └─┬ [email protected]│ │ │   └─┬ [email protected]│ │ │     ├── [email protected]│ │ │     ├── [email protected]│ │ │     ├── [email protected]│ │ │     └── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ ├── [email protected]│ │ │ │ ├── [email protected]│ │ │ │ ├── [email protected]│ │ │ │ └── [email protected]│ │ │ └── [email protected]│ │ └─┬ [email protected]│ │   ├── [email protected]│ │   └── [email protected]│ ├── [email protected]│ ├─┬ [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ └─┬ [email protected]│ │ │   ├─┬ [email protected]│ │ │   │ └── [email protected]│ │ │   ├── [email protected]│ │ │   ├─┬ [email protected]│ │ │   │ └─┬ [email protected]│ │ │   │   ├── [email protected]│ │ │   │   └── [email protected]│ │ │   └─┬ [email protected]│ │ │     └── [email protected]│ │ ├── [email protected]│ │ └── [email protected]│ ├── [email protected]│ ├─┬ [email protected]│ │ ├─┬ [email protected]│ │ │ └─┬ [email protected]│ │ │   └── [email protected]│ │ ├── [email protected]│ │ └── [email protected]│ ├── [email protected]│ ├── [email protected]│ ├─┬ [email protected]│ │ └── [email protected]│ ├─┬ [email protected]│ │ └── [email protected]│ └─┬ [email protected]│   ├─┬ [email protected]│   │ └── [email protected]│   ├─┬ [email protected]│   │ ├─┬ [email protected]│   │ │ ├─┬ [email protected]│   │ │ │ └── [email protected]│   │ │ ├── [email protected]│   │ │ └─┬ [email protected]│   │ │   └── [email protected]│   │ ├─┬ [email protected]│   │ │ └── [email protected]│   │ ├─┬ [email protected]│   │ │ └─┬ [email protected]│   │ │   ├── [email protected]│   │ │   └── [email protected]│   │ ├── [email protected]│   │ └── [email protected]│   ├─┬ [email protected]│   │ └─┬ [email protected]│   │   └─┬ [email protected]│   │     ├─┬ [email protected]│   │     │ ├── [email protected]│   │     │ └── [email protected]│   │     ├── [email protected]│   │     └─┬ [email protected]│   │       ├── [email protected]│   │       └── [email protected]│   ├── [email protected]│   ├─┬ [email protected]│   │ └── [email protected]│   ├─┬ [email protected]│   │ ├── [email protected]│   │ └── [email protected]│   ├─┬ [email protected]│   │ ├─┬ [email protected]│   │ │ ├── [email protected]│   │ │ ├── [email protected]│   │ │ ├── [email protected]│   │ │ └── [email protected]│   │ └── [email protected]│   └─┬ [email protected]│     ├── [email protected]│     └── [email protected]├─┬ [email protected]│ ├─┬ [email protected]│ │ └─┬ [email protected]│ │   ├─┬ [email protected]│ │   │ └── [email protected]│ │   ├── [email protected]│ │   ├─┬ [email protected]│ │   │ └─┬ [email protected]│ │   │   ├── [email protected]│ │   │   └── [email protected]│ │   └─┬ [email protected]│ │     └── [email protected]│ └─┬ [email protected]│   ├─┬ [email protected]│   │ ├── [email protected]│   │ ├── [email protected]│   │ ├── [email protected]│   │ └── [email protected]│   └─┬ [email protected]│     └── [email protected]├─┬ [email protected]│ ├─┬ [email protected]│ │ └─┬ [email protected]│ │   └── [email protected]│ ├─┬ [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ ├── [email protected]│ │ │ │ └── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ └── [email protected]│ │ │ └── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ └─┬ [email protected]│ │ │   ├─┬ [email protected]│ │ │   │ ├── [email protected]│ │ │   │ └── [email protected]│ │ │   └─┬ [email protected]│ │ │     └─┬ [email protected]│ │ │       └── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ ├── [email protected]│ │ │ │ └── [email protected]│ │ │ ├── [email protected]│ │ │ └── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ └─┬ [email protected]│ │ │   └─┬ [email protected]│ │ │     ├── [email protected]│ │ │     ├── [email protected]│ │ │     ├── [email protected]│ │ │     └── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ └─┬ [email protected]│ │   ├── [email protected]│ │   └── [email protected]│ └─┬ [email protected]│   ├─┬ [email protected]│   │ ├── [email protected]│   │ ├── [email protected]│   │ ├── [email protected]│   │ └── [email protected]│   └── [email protected]├─┬ [email protected]│ ├─┬ [email protected]│ │ ├── [email protected]│ │ └─┬ [email protected]│ │   ├── [email protected]│ │   └── [email protected]│ └─┬ [email protected]│   ├─┬ [email protected]│   │ ├── [email protected]│   │ ├── [email protected]│   │ ├── [email protected]│   │ └── [email protected]│   └─┬ [email protected]│     └── [email protected]├── [email protected] extraneous├── [email protected]├─┬ [email protected]│ ├── [email protected]│ ├─┬ [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ └── [email protected]│ │ └── [email protected]│ └─┬ [email protected]│   ├── [email protected]│   └── [email protected]├─┬ [email protected]│ ├─┬ [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ ├── [email protected]│ │ │ │ └── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ └── [email protected]│ │ │ └── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ └─┬ [email protected]│ │ │   ├─┬ [email protected]│ │ │   │ ├── [email protected]│ │ │   │ └── [email protected]│ │ │   └─┬ [email protected]│ │ │     └─┬ [email protected]│ │ │       └── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ ├── [email protected]│ │ │ │ └── [email protected]│ │ │ ├── [email protected]│ │ │ └── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ └─┬ [email protected]│ │ │   └─┬ [email protected]│ │ │     ├── [email protected]│ │ │     ├── [email protected]│ │ │     ├── [email protected]│ │ │     └── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ └─┬ [email protected]│ │   ├── [email protected]│ │   └── [email protected]│ ├─┬ [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ └── [email protected]│ │ └── [email protected]│ ├── [email protected] invalid│ └─┬ [email protected]│   └─┬ [email protected]│     └── [email protected]├─┬ [email protected]│ ├── [email protected]│ ├─┬ [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ ├── [email protected]│ │ │ │ └── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ └── [email protected]│ │ │ └── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ └─┬ [email protected]│ │ │   ├─┬ [email protected]│ │ │   │ ├── [email protected]│ │ │   │ └── [email protected]│ │ │   └─┬ [email protected]│ │ │     └─┬ [email protected]│ │ │       └── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ ├── [email protected]│ │ │ │ └── [email protected]│ │ │ ├── [email protected]│ │ │ └── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ └─┬ [email protected]│ │ │   └─┬ [email protected]│ │ │     ├── [email protected]│ │ │     ├── [email protected]│ │ │     ├── [email protected]│ │ │     └── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ └─┬ [email protected]│ │   ├── [email protected]│ │   └── [email protected]│ ├─┬ [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ └── [email protected]│ │ └── [email protected]│ └─┬ [email protected]│   ├── [email protected]│   ├─┬ [email protected]│   │ └── [email protected]│   ├─┬ [email protected]│   │ └── [email protected]│   └── [email protected]├─┬ [email protected]│ ├─┬ [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ └── [email protected]│ │ ├─┬ [email protected]│ │ │ └── [email protected]│ │ └── [email protected]│ ├─┬ [email protected]│ │ ├── [email protected]│ │ └─┬ [email protected]│ │   ├─┬ [email protected]│ │   │ ├── [email protected]│ │   │ └── [email protected]│ │   ├─┬ [email protected]│ │   │ └─┬ [email protected]│ │   │   └── [email protected]│ │   ├── [email protected]│ │   └── [email protected]│ ├── [email protected]│ ├─┬ [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ └── [email protected]│ │ ├─┬ [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ └── [email protected]│ │ │ └─┬ [email protected]│ │ │   └── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ └── [email protected]│ │ │ └─┬ [email protected]│ │ │   └── [email protected]│ │ ├── [email protected]│ │ └── [email protected]│ ├── [email protected]│ ├─┬ [email protected]│ │ └─┬ [email protected]│ │   └─┬ [email protected]│ │     ├── [email protected]│ │     ├── [email protected]│ │     ├── [email protected]│ │     └── [email protected]│ ├─┬ [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ └── [email protected]│ │ └── [email protected]│ └─┬ [email protected]│   └── [email protected]└── [email protected] ERR! extraneous: [email protected] /var/www/html/BJS/Babylon.js/Tools/Gulp/node_modules/gulp-paramnpm ERR! invalid: [email protected] /var/www/html/BJS/Babylon.js/Tools/Gulp/node_modules/gulp-typescript/node_modules/typescript


 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...