Closed donskifarrell closed 8 years ago
May be you also need to clean the typings directory. You were trying to upgrade a project you already have with the latest version of the seed?
Try a fresh angular2-seed clone and run npm install
. Let me know wha the result is and if you get the same error.
I just tried with a fresh angular2-seed clone and npm install works ok, but when I try to use npm start I am receiving the following erros: `root@ubuntu-4gb-nyc3-01:~/angular2-seed# npm start
angular2-seed@0.0.0 start /root/angular2-seed gulp serve --env dev
⨯ Unable to compile TypeScript
gulpfile.ts (1,23): Cannot find module 'gulp'. (2307) tools/config.ts (1,28): Cannot find module 'fs'. (2307) tools/config.ts (2,20): Cannot find module 'yargs'. (2307) tools/config.ts (3,31): Cannot find module 'path'. (2307) tools/config.ts (14,52): Cannot find name '__dirname'. (2304) tools/config.ts (109,50): Cannot find name 'require'. (2304) tools/manual_typings/merge-stream.d.ts (2,36): Cannot find namespace 'NodeJS'. (2503) tools/manual_typings/merge-stream.d.ts (3,33): Cannot find namespace 'NodeJS'. (2503) tools/manual_typings/merge-stream.d.ts (4,17): Cannot find namespace 'NodeJS'. (2503) tools/utils.ts (9,17): Cannot find name 'require'. (2304) tools/utils/code_change_tools.ts (2,20): Cannot find module 'path'. (2307) tools/utils/code_change_tools.ts (4,30): Cannot find module 'browser-sync'. (2307) tools/utils/server.ts (1,26): Cannot find module 'express'. (2307) tools/utils/server.ts (3,30): Cannot find module 'serve-static'. (2307) tools/utils/server.ts (5,23): Cannot find module 'path'. (2307) tools/utils/server.ts (22,25): Cannot find name 'process'. (2304) tools/utils/tasks_tools.ts (1,23): Cannot find module 'gulp'. (2307) tools/utils/tasks_tools.ts (2,23): Cannot find module 'gulp-util'. (2307) tools/utils/tasks_tools.ts (3,24): Cannot find module 'chalk'. (2307) tools/utils/tasks_tools.ts (4,34): Cannot find module 'gulp-load-plugins'. (2307) tools/utils/tasks_tools.ts (5,31): Cannot find module 'run-sequence'. (2307) tools/utils/tasks_tools.ts (6,50): Cannot find module 'fs'. (2307) tools/utils/tasks_tools.ts (7,20): Cannot find module 'path'. (2307) tools/utils/tasks_tools.ts (19,10): Cannot find name 'require'. (2304) tools/utils/template_injectables.ts (4,20): Cannot find module 'path'. (2307) ` I did npm install -g ts-node
Same issue:
Error: Cannot find module 'browser-sync'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (C:\Projects\angular2-seed\tools\utils\code_change_tools.ts:4:24)
at Module._compile (module.js:397:26)
at Object.loader (C:\Projects\angular2-seed\node_modules\ts-node\src\ts-node.ts:225:14)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
@koodikindral is it a fresh clone or you're trying to upgrade your seed?
@gustavolira @koodikindral would you send me the output of:
cd typings
tree .
used the fresh clone and everything works. Discard my comment :)
Made a fresh clone and it's working now too with npm install and then npm start.
Other than node_modules, what other files are generated by npm install that need to be removed? Just the typings folder?
@donskifarrell also test
, tmp
and dist
.
The folder typings was not created
I created another user at server and now it's working
Hi,
I'm having an issue when running
npm install
on the latest git repo code (i've also deleted node_modules folder completely in trying to resolve this issue).I'm using node 5.1.0 and npm 3.3.12 - are these versions supported?
Here is the npm debug log with some more info:
Anybody experienced this issue or have clues on how to proceed?