Closed smartm0use closed 8 years ago
Hey @smartm0use, I am not sure if this the main reason for that error #24 I've released a patch. Please check if that's solve the problem.
Where is the patch? I can't see it...
Please install the latest version of the generator and check if that's solve the problem.
I installed again your package but i got the same error.
Remove node_modules
folder and try installing again. Also please give some information about the environment you are using(windows or linux etc.)
Also try upgrading npm: npm install -g npm@next
I did remove the node_modules
folder (i used a new folder). I'm on linux and i have npm v3.10.3.
OS: Ubuntu 16.04 Node: 6.9.1 NPM: 3.10.9
Error on fetch for npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js at file:///node_modules/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js Loading app/main.js Error: ENOENT: no such file or directory, open '/node_modules/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js' at Error (native)
This /node_modules/
in systemjs.config.js not resolve the absolute folder path for the SystemJs Builder object (on ubuntu OS).
In fact this:
var builder = new Builder(paths.tmp, paths.systemjsConfig); console.log(builder.loader.paths)
print:
{ ... , 'npm:': 'file:///node_modules/' }
instead of:
{ ... , 'npm:': 'file:///{absolute_path}/node_modules/' }
From what the 'bundle:app' gulp task, fails.
At the end i have tried the @smartm0use solution: './node_modules', and the dot allows to solve the absolute path on both (windows and ubuntu).
Added "dot" to node_modules path to fix this: https://github.com/shibbir/generator-angular2-typescript/issues/24