Angular-RU / angular-cli-webpack

Webpack configuration modifier for @angular/cli
MIT License
67 stars 5 forks source link

Global install problem #10

Closed splincode closed 6 years ago

splincode commented 6 years ago
$ npm install ngw -g
C:\Program Files\nodejs\ngw -> C:\Program Files\nodejs\node_modules\ngw\bin\ngw
npm WARN ngw@0.0.10 requires a peer of @angular/cli@^1.0.0 but none is installed                                                                                                  . You must install peer dependencies yourself.
npm WARN ngw@0.0.10 requires a peer of @types/node@* but none is installed. You                                                                                                   must install peer dependencies yourself.
npm WARN ngw@0.0.10 requires a peer of @types/webpack@^3.0.0 but none is install                                                                                                  ed. You must install peer dependencies yourself.
npm WARN ngw@0.0.10 requires a peer of typescript@^2.0.0 but none is installed.                                                                                                   You must install peer dependencies yourself.

+ ngw@0.0.10
added 18 packages in 3.532s
$ ngw
Error: Cannot find module 'typescript'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.register (C:\Users\splincode\AppData\Roaming\nvm\v8.9.1\node_modules\ngw\node_modules\ts-node\src\index.ts:205:25)
    at Object.<anonymous> (C:\Users\splincode\AppData\Roaming\nvm\v8.9.1\node_modules\ngw\node_modules\ts-node\src\bin.ts:100:17)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
child_process.js:644
    throw err;
    ^

Error: Command failed: node C:\Users\splincode\AppData\Roaming\nvm\v8.9.1\node_modules\ngw\node_modules\ts-node\dist\bin.js C:\Users\splincode\AppData\Roaming\nvm\v8.9.1\node_modules\ngw\src\index.js
    at checkExecSyncError (child_process.js:601:13)
    at execSync (child_process.js:641:13)
    at Object.<anonymous> (C:\Users\splincode\AppData\Roaming\nvm\v8.9.1\node_modules\ngw\bin\ngw:14:9)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Function.Module.runMain (module.js:676:10)
    at startup (bootstrap_node.js:187:16)