Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

error in install Ghost on Node.js 7 #14427

Closed
jourjine opened this issue Oct 26, 2016 · 26 comments
Closed

error in install Ghost on Node.js 7 #14427

jourjine opened this issue Oct 26, 2016 · 26 comments

Comments

@jourjine
Copy link

just install node.js and have little big problem

$ sudo npm install --production
npm ERR! Linux 4.4.19-29.55.amzn1.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--production"
npm ERR! node v7.0.0
npm ERR! npm  v4.0.1

npm ERR! Cannot read property 'deep-extend' of undefined
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm ERR! Linux 4.4.19-29.55.amzn1.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--production"
npm ERR! node v7.0.0
npm ERR! npm  v4.0.1

npm ERR! Cannot read property 'extsprintf' of undefined
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!     /var/www/ghost/npm-debug.log

@zkat zkat added the support label Oct 26, 2016
@zkat
Copy link
Contributor

zkat commented Oct 26, 2016

This is a strange issue and I'm not sure it's a bug with npm itself, but maybe something is up with npm@4.0.1 -- so could you upload your npm-debug.log to a gist or similar so we can take a look? :)

@jourjine
Copy link
Author

jourjine commented Oct 26, 2016

hi
i change node.js to version 4.6.1 but have same error:

sudo npm install --production
npm ERR! Linux 4.4.19-29.55.amzn1.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--production"
npm ERR! node v4.6.1
npm ERR! npm  v4.0.1

npm ERR! Cannot read property 'deep-extend' of undefined
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm ERR! Linux 4.4.19-29.55.amzn1.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--production"
npm ERR! node v4.6.1
npm ERR! npm  v4.0.1

npm ERR! Cannot read property 'extsprintf' of undefined
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!     /var/www/ghost/npm-debug.log

gist

@jourjine
Copy link
Author

Hi again!
i`m downgrade npm to version 3.10.9 and ghost installed!

PS
my system just created and installed only node + 2 mods + npm

@zkat
Copy link
Contributor

zkat commented Oct 27, 2016

@jourjine Thanks a lot for the npm-debug.log! I appreciate a lot that you're willing to give npm@next a shot and help find stuff like this. It's increeeedibly helpful to us.

This seems like a bug with some npm@4 changes to shrinkwrap. It seems -to me- that something funky might be happening with that specific shrinkwrap, but we shouldn't be crashing like this either way. Pinging @iarna too. :)

@zkat zkat added this to the next milestone Oct 27, 2016
@SpainTrain
Copy link

I can corroborate this issue

$ npm i
npm WARN deprecated webpack-combine-loaders@2.0.2: bad
npm ERR! Linux 4.4.0-45-generic
npm ERR! argv "/home/spainhower/npm/n/bin/node" "/home/spainhower/npm/bin/npm" "i"
npm ERR! node v6.9.1
npm ERR! npm  v4.0.2

npm ERR! Cannot read property 'deep-extend' of undefined
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm ERR! Linux 4.4.0-45-generic
npm ERR! argv "/home/spainhower/npm/n/bin/node" "/home/spainhower/npm/bin/npm" "i"
npm ERR! node v6.9.1
npm ERR! npm  v4.0.2

npm ERR! Cannot read property 'lodash._baseslice' of undefined
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm ERR! Linux 4.4.0-45-generic
npm ERR! argv "/home/spainhower/npm/n/bin/node" "/home/spainhower/npm/bin/npm" "i"
npm ERR! node v6.9.1
npm ERR! npm  v4.0.2

npm ERR! Cannot read property 'lodash._baseslice' of undefined
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm ERR! Linux 4.4.0-45-generic
npm ERR! argv "/home/spainhower/npm/n/bin/node" "/home/spainhower/npm/bin/npm" "i"
npm ERR! node v6.9.1
npm ERR! npm  v4.0.2

npm ERR! Cannot read property 'lodash._baseslice' of undefined
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm ERR! Linux 4.4.0-45-generic
npm ERR! argv "/home/spainhower/npm/n/bin/node" "/home/spainhower/npm/bin/npm" "i"
npm ERR! node v6.9.1
npm ERR! npm  v4.0.2

npm ERR! Cannot read property 'extsprintf' of undefined
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm-debug.log

@othiym23 othiym23 mentioned this issue Nov 4, 2016
4 tasks
@legodude17
Copy link
Contributor

@SpainTrain, have you tried reinstalling npm?

@buley
Copy link

buley commented Nov 5, 2016

@legodude17 ran into this issue installing npm@4 today (v4.0.2).

I'm doing shrinkwrap on a OS X then shipping to a Linux environment. using 4 was the resolution proposed by #14042

I'm stuck because downgraded npm@3.10.8-9 (per @jourjine) doesn't have a fix for #14042

@zkat
Copy link
Contributor

zkat commented Nov 5, 2016

This is a bug. Reinstalling npm won't fix it. It'll be fixed soon, since I've already diagnosed it out.

@buley: npm@3.10.10 is out, with a fix for #14042

@zkat zkat self-assigned this Nov 8, 2016
@iarna iarna modified the milestones: next-next, next Nov 14, 2016
@iarna
Copy link
Contributor

iarna commented Nov 14, 2016

Clearing the milestone while we work on getting a consistent repro for this.

@zkat
Copy link
Contributor

zkat commented Nov 14, 2016

(if anyone is able to get a consistent, isolated test case for this, please let us know!)

@OgreMHDW
Copy link

OgreMHDW commented Nov 16, 2016

I am having the same issue on a Windows Server. It does not appear any log file was written. Does anyone have any ideas or workaround?

C:\Program Files (x86)\Parsoid>npm install
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\mweiss\\AppData\
\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v7.1.0
npm ERR! npm v4.0.2
npm ERR! Cannot read property 'debug' of undefined 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 6.3.9600 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\mweiss\AppData`
\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v7.1.0
npm ERR! npm v4.0.2
npm ERR! Cannot read property 'lodash._baseslice' of undefined 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 6.3.9600 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\mweiss\AppData`
\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v7.1.0
npm ERR! npm v4.0.2
npm ERR! Cannot read property 'lodash._baseslice' of undefined 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 6.3.9600 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\mweiss\AppData`
\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v7.1.0
npm ERR! npm v4.0.2
npm ERR! Cannot read property 'lodash._baseslice' of undefined 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 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\mweiss\AppData
\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v7.1.0
npm ERR! npm v4.0.2
npm ERR! Cannot read property 'extsprintf' of undefined 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:\Program Files (x86)\Parsoid\npm-debug.log
``
C:\Program Files (x86)\Parsoid>

@legodude17
Copy link
Contributor

You might want to completely reinstall npm, it looks like the
installation is busted. :/

On Wed, Nov 16, 2016 at 8:42 AM, Michael Weiss notifications@github.com
wrote:

I am having the same issue on a Windows Server. It does not appear any log
file was written. Does anyone have any ideas or workaround?

`C:\Program Files (x86)\Parsoid>npm install
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\mweiss\AppData
\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v7.1.0
npm ERR! npm v4.0.2

npm ERR! Cannot read property 'debug' of undefined
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 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\mweiss\AppData
\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v7.1.0
npm ERR! npm v4.0.2

npm ERR! Cannot read property 'lodash._baseslice' of undefined
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 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\mweiss\AppData
\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v7.1.0
npm ERR! npm v4.0.2

npm ERR! Cannot read property 'lodash._baseslice' of undefined
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 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\mweiss\AppData
\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v7.1.0
npm ERR! npm v4.0.2

npm ERR! Cannot read property 'lodash._baseslice' of undefined
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 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\mweiss\AppData
\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v7.1.0
npm ERR! npm v4.0.2

npm ERR! Cannot read property 'extsprintf' of undefined
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:\Program Files (x86)\Parsoid\npm-debug.log

C:\Program Files (x86)\Parsoid>npm install --production
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\mweiss\AppData
\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "--production"
npm ERR! node v7.1.0
npm ERR! npm v4.0.2

npm ERR! Cannot read property 'debug' of undefined
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 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\mweiss\AppData
\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "--production"
npm ERR! node v7.1.0
npm ERR! npm v4.0.2

npm ERR! Cannot read property 'lodash._baseslice' of undefined
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 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\mweiss\AppData
\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "--production"
npm ERR! node v7.1.0
npm ERR! npm v4.0.2

npm ERR! Cannot read property 'lodash._baseslice' of undefined
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 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\mweiss\AppData
\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "--production"
npm ERR! node v7.1.0
npm ERR! npm v4.0.2

npm ERR! Cannot read property 'lodash._baseslice' of undefined
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 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\mweiss\AppData
\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "--production"
npm ERR! node v7.1.0
npm ERR! npm v4.0.2

npm ERR! Cannot read property 'extsprintf' of undefined
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:\Program Files (x86)\Parsoid\npm-debug.log

C:\Program Files (x86)\Parsoid>`


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#14427 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AKr56FebGOlH9VHLY8Bi0uuCFKyeQs2qks5q-zKPgaJpZM4KhPJ1
.

@e-cloud
Copy link

e-cloud commented Nov 18, 2016

try this repo https://github.com/jeffbcross/aim
i have the similar error with
node v6.9.1
npm 4.0.2

@kenany kenany mentioned this issue Nov 18, 2016
3 tasks
@MichaelJAndy
Copy link

Seems similar, managed to fix it with a downgrade from npm 4 to 3
#14660 (comment)

@gmbr3
Copy link

gmbr3 commented Nov 22, 2016

This needs to be milestoned. @zkat @iarna @othiym23 @snopeks

@mchikhaoui
Copy link

reinstalling npm 3.10.8 solve the problem for me. ghost installed !
npm install npm@3.10.8 -g

zkat pushed a commit that referenced this issue Dec 1, 2016
Note: There's no test for this because it's really easy to repro. Until then, the connected issue (#14427) and others, should not be closed.

PR-URL: #15082
Credit: @iarna
Reviewed-By: @zkat
@legodude17
Copy link
Contributor

legodude17 commented Dec 2, 2016 via email

@zkat
Copy link
Contributor

zkat commented Dec 2, 2016

Fixed as of npm@4.0.5, which can be installed with npm install -g npm@4.0.5.

@zkat zkat closed this as completed Dec 2, 2016
@gmbr3
Copy link

gmbr3 commented Dec 3, 2016

@zkat
Copy link
Contributor

zkat commented Dec 5, 2016

@gmbr3 we generally don't milestone issues themselves. It happens once in a blue moon but it's not part of our usual process.

@legodude17
Copy link
Contributor

legodude17 commented Dec 6, 2016 via email

@ImanMh
Copy link

ImanMh commented Dec 16, 2016

I have the same issue, downgrading to 3.18.0 did not helped. I just lost my blog installation during the update.

@varjmes
Copy link

varjmes commented Dec 16, 2016

@ImanMh did you update to the latest version of npm?

npm install -g npm@latest

@ImanMh
Copy link

ImanMh commented Dec 16, 2016

No I didn't how ever I tried to do npm install instead of npm install --production and it solved my problem. I'm confused!

@Jabark
Copy link

Jabark commented Dec 19, 2016

I had this issue on 4.0.3, upgraded to 4.0.5 and issue was fixed.

@ManukumarNM
Copy link

I had the same issue with my current npm version I updated with sudo npm install -g npm@latest. This problem was fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests