angularjs - Angular CLI , Node v8 and npm 5. Issue while installing packages in restricted network environment -


i have upgrade nodejs v 8.1 , using npm 5, angular cli latest

$ node --version && npm --version v8.1.4 5.0.3 

while running installation command getting below exception.

our company has restriction on network, manually downloaded win32-x64-57_binding.node , set path in environment

    /c/projects/ced/frontend (angular4upgrade) $ npm      > node-sass@4.5.3 install c:\projects\ced\frontend\node_modules\node-sass     > node scripts/install.js      node-sass build binary found @ c:\projects\da\node\win32-x64-57_binding.node      > node-sass@4.5.3 postinstall c:\projects\ced\frontend\node_modules\node-sass     > node scripts/build.js      module.js:487         throw err;         ^      error: cannot find module 'cross-spawn'         @ function.module._resolvefilename (module.js:485:15)         @ function.module._load (module.js:437:25)         @ module.require (module.js:513:17)         @ require (internal/module.js:11:18)         @ object.<anonymous> (c:\projects\ced\frontend\node_modules\node-sass\scripts\build.js:8:11)         @ module._compile (module.js:569:30)         @ object.module._extensions..js (module.js:580:10)         @ module.load (module.js:503:32)         @ trymoduleload (module.js:466:12)         @ function.module._load (module.js:458:3)     npm err! code elifecycle     npm err! errno 1     npm err! node-sass@4.5.3 postinstall: `node scripts/build.js`     npm err! exit status 1     npm err!     npm err! failed @ node-sass@4.5.3 postinstall script.     npm err! not problem npm. there additional logging output above.      npm err! complete log of run can found in:     npm err!     c:\users\{userfolder}\appdata\roaming\npm-cache\_logs\2017-07-26t05_02_42_055z-debug.log      /c/projects/ced/frontend (angular4upgrade)     $ npm install cross-spawn      > node-sass@4.5.3 install c:\projects\ced\frontend\node_modules\node-sass     > node scripts/install.js      node-sass build binary found @ c:\projects\da\node\win32-x64-57_binding.node      > node-sass@4.5.3 postinstall c:\projects\ced\frontend\node_modules\node-sass     > node scripts/build.js      binary found @ c:\projects\da\node\win32-x64-57_binding.node     testing binary     binary has problem: { error: cannot find module 'lodash.assign'         @ function.module._resolvefilename (module.js:485:15)         @ function.module._load (module.js:437:25)         @ module.require (module.js:513:17)         @ require (internal/module.js:11:18)         @ object.<anonymous> (c:\projects\ced\frontend\node_modules\node-sass\lib\index.js:7:12)         @ module._compile (module.js:569:30)         @ object.module._extensions..js (module.js:580:10)         @ module.load (module.js:503:32)         @ trymoduleload (module.js:466:12)         @ function.module._load (module.js:458:3) code: 'module_not_found' }     building binary locally     module.js:487         throw err;         ^      error: cannot find module 'node-gyp\bin\node-gyp.js'         @ function.module._resolvefilename (module.js:485:15)         @ function.resolve (internal/module.js:18:19)         @ build (c:\projects\ced\frontend\node_modules\node-sass\scripts\build.js:59:23)         @ testbinary (c:\projects\ced\frontend\node_modules\node-sass\scripts\build.js:147:12)         @ object.<anonymous> (c:\projects\ced\frontend\node_modules\node-sass\scripts\build.js:155:1)         @ module._compile (module.js:569:30)         @ object.module._extensions..js (module.js:580:10)         @ module.load (module.js:503:32)         @ trymoduleload (module.js:466:12)         @ function.module._load (module.js:458:3)     npm err! code elifecycle     npm err! errno 1     npm err! node-sass@4.5.3 postinstall: `node scripts/build.js`     npm err! exit status 1     npm err!     npm err! failed @ node-sass@4.5.3 postinstall script.     npm err! not problem npm. there additional logging output above. 

i have googled various related types of error , saying delete npm-cache , node_module folder of project.

so did same issue exist. , don't have admin access well.

let me know, if need more info


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -