Picture of Sailesh Sundram
Error while installing npm packages
by Sailesh Sundram - Tuesday, 13 February 2018, 5:01 PM
 

Hi,

 

I'm hoping someone here might be able to help me with this.

 

I've been trying to install the Adapt tool... and have managed to install git (2.16.1.windows.4) and node (version 6.12.3) npm (3.10.10) and mongoDB is running (checked that it is running in the services window)... but when I try and run npm install --production it gives me the following errors.

------------------------

C:\Users\saile\adapt_authoring>npm install --production
npm WARN deprecated email-templates@2.7.1: 📫  Please upgrade to v3.1.5 (v3.0.x had a core bug with attachments and v3.1.5 now supports Node v6.4.0+). Also read the breaking changes for upgrading from v2 to v3 at https://github.com/niftylettuce/email-templates#v3-breaking-changes 📫
npm WARN deprecated bower@1.6.5: ...psst! Your project can stop working at any moment because its dependencies can change. Prevent this by migrating to Yarn: https://bower.io/blog/2017/how-to-migrate-away-from-bower/
npm WARN deprecated nodemailer@2.5.0: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
npm WARN retry will retry, error on last attempt: Error: EBUSY: resource busy or locked, rename 'C:\Users\saile\AppData\Local\Temp\npm-8152-5950efd2\registry.npmjs.org\compress-commons\-\compress-commons-0.3.0.tgz.197977042' -> 'C:\Users\saile\AppData\Local\Temp\npm-8152-5950efd2\registry.npmjs.org\compress-commons\-\compress-commons-0.3.0.tgz'
npm ERR! Windows_NT 10.0.16299
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--production"
npm ERR! node v6.12.3
npm ERR! npm  v3.10.10

npm ERR! tarball.destroy is not a function
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm WARN retry will retry, error on last attempt: Error: EBUSY: resource busy or locked, rename 'C:\Users\saile\AppData\Local\Temp\npm-8152-5950efd2\registry.npmjs.org\node-int64\-\node-int64-0.4.0.tgz.620522292' -> 'C:\Users\saile\AppData\Local\Temp\npm-8152-5950efd2\registry.npmjs.org\node-int64\-\node-int64-0.4.0.tgz'
npm ERR! Windows_NT 10.0.16299
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--production"
npm ERR! node v6.12.3
npm ERR! npm  v3.10.10

npm ERR! tarball.destroy is not a function
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm WARN retry will retry, error on last attempt: Error: EBUSY: resource busy or locked, rename 'C:\Users\saile\AppData\Local\Temp\npm-8152-5950efd2\registry.npmjs.org\raw-body\-\raw-body-2.3.2.tgz.2489987598' -> 'C:\Users\saile\AppData\Local\Temp\npm-8152-5950efd2\registry.npmjs.org\raw-body\-\raw-body-2.3.2.tgz'
npm ERR! Windows_NT 10.0.16299
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--production"
npm ERR! node v6.12.3
npm ERR! npm  v3.10.10

npm ERR! tarball.destroy is not a function
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm WARN retry will retry, error on last attempt: Error: EBUSY: resource busy or locked, rename 'C:\Users\saile\AppData\Local\Temp\npm-8152-5950efd2\registry.npmjs.org\raw-body\-\raw-body-2.3.2.tgz.2339599795' -> 'C:\Users\saile\AppData\Local\Temp\npm-8152-5950efd2\registry.npmjs.org\raw-body\-\raw-body-2.3.2.tgz'
npm ERR! Windows_NT 10.0.16299
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--production"
npm ERR! node v6.12.3
npm ERR! npm  v3.10.10

npm ERR! tarball.destroy is not a function
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm ERR! Windows_NT 10.0.16299
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--production"
npm ERR! node v6.12.3
npm ERR! npm  v3.10.10
npm ERR! path C:\Users\saile\AppData\Local\Temp\npm-8152-5950efd2\registry.npmjs.org\raw-body\-\raw-body-2.3.2.tgz.3741320792
npm ERR! code EBUSY
npm ERR! errno -4082
npm ERR! syscall rename

npm ERR! EBUSY: resource busy or locked, rename 'C:\Users\saile\AppData\Local\Temp\npm-8152-5950efd2\registry.npmjs.org\raw-body\-\raw-body-2.3.2.tgz.3741320792' -> 'C:\Users\saile\AppData\Local\Temp\npm-8152-5950efd2\registry.npmjs.org\raw-body\-\raw-body-2.3.2.tgz'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm ERR! Windows_NT 10.0.16299
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--production"
npm ERR! node v6.12.3
npm ERR! npm  v3.10.10

npm ERR! tarball.destroy is not a function
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\saile\adapt_authoring\npm-debug.log

 

-----------------------------------

 

Any ideas on what I'm doing wrong and how I could fix this?

 

Any help would be very much appreciated.

 

Thanks

Sailesh

 

Picture of Sailesh Sundram
Re: Error while installing npm packages
by Sailesh Sundram - Wednesday, 14 February 2018, 12:19 PM
 

Hi,

 

Just thought I'd update this. I managed to fix the issue by disabling my anti-virus before trying the "npm install --production" command.

 

Worked a treat.

 

Cheers.