I am trying to set up the basic aurelia app on windows. I have followed instructions from: http://aurelia.io/get-started.html, which includes:
npm install -g gulp
npm install -g jspm
npm install
jspm install -y
gulp watch
All above steps are completed successfully except step 8, which is giving an error :
E:\aurelia\navigation-app>gulp watch
module.js:338
throw err;
^
Error: Cannot find module 'debug/node'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (E:\aurelia\navigation-app\node_modules\gulp-babel\nod
e_modules\babel-core\lib\babel\util.js:22:34)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
I am not getting why it can not find modules.
If I install that module manually it gives error message for another module when I try to run : gulp watch
I have also been battling this problem since upgrading Aurelia and related tools to the latest versions. It may be related to path length/depth issues on Windows with the native Module.require.
When I uninstalled the following packages from the project's local node_modules
folder and instead installed them in the global NPM cache (which lives at a more shallow directory depth in my case), gulp build
started working again:
npm uninstall gulp-babel
npm uninstall browser-sync
npm uninstall karma
npm install -g gulp-babel
npm install -g browser-sync
npm install -g karma