Skip to content
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.

IMA not building #6

Closed
anthonybrown opened this issue May 3, 2016 · 6 comments
Closed

IMA not building #6

anthonybrown opened this issue May 3, 2016 · 6 comments

Comments

@anthonybrown
Copy link

anthonybrown commented May 3, 2016

Here is my npm-error-log

Seems like it can't find the fibers-1.0.11.tgz package

@anthonybrown
Copy link
Author

I got it running by installing gulp npm --save-dev i gulp
Gulp is installed globally on my machine but for some reason I have to install it locally. Running npm app:hello doesn't work, I just did npm start which started the local server on port 3001.

@mjancarik
Copy link
Contributor

Hi Anthony,

Can you send me more information about os, node version and npm version? I will try it for your sent configuration.

The task npm run app:hello creating app folder and the gulp has to installed always locally.

@anthonybrown
Copy link
Author

anthonybrown commented May 6, 2016

@mjancarik sorry for the delay,
Here is my enviroment
I'm on osx, latest versions of node, ruby, etc...

@anthonybrown
Copy link
Author

anthonybrown commented May 6, 2016

`/JavaScript_Projects/IMA.js-skeleton [git:master]
→ npm run app:hello

IMA.js-skeleton@0.12.1 app:hello /Users/tonybrown/Documents/Development/JavaScript_Projects/IMA.js-skeleton
node node_modules/gulp/bin/gulp.js app:hello

{ Error: Cannot find module './app/build.js'
    at Function.Module._resolveFilename (module.js:438:15)
    at Function.Module._load (module.js:386:25)
    at Module.require (module.js:466:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/tonybrown/Documents/Development/JavaScript_Projects/IMA.js-skeleton/gulpConfig.js:6:20)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)
    at Function.Module._load (module.js:407:3) code: 'MODULE_NOT_FOUND' }
Loading gulp tasks...
(node:86152) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
The gulp tasks directory ./app/gulp/tasks does not exist, skipping
[06:58:23] Using gulpfile ~/Documents/Development/JavaScript_Projects/IMA.js-skeleton/gulpfile.js
[06:58:23] Starting 'app:hello'...
[06:58:23] Finished 'app:hello' after 217 ms`

@anthonybrown
Copy link
Author

@mjancarik, what worked for me:

    1. npm i
    1. npm run build
    1. npm run app:hello
    1. npm start

Those are the steps I had to take to get the server running.

@mjancarik
Copy link
Contributor

Hi,

Thank you for more details. I will test it.

The error for task npm run app:hello is catched and only log it, but the instalation application hello world finished all rights. It may be confused I will remove it from other version. The task app:hello is generator similar with http://yeoman.io, but we use gulp task now.

You can try other prepared examples (if you have installed gulp):
`
gulp app:clean // delete app folder
gulp app:feed // install example feed
gulp dev

gulp app:clean // delete app folder
gulp app:todos // install example TODO
gulp dev
`

The tasks npm run build and npm start is for production. For development purpose is better use npm run dev (gulp dev).

Thank you for your feed back.

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

No branches or pull requests

2 participants