Bamboo npm.load () requires error

I am using Atlassian Bamboo and Amazon Web Services as a build server and am trying to set up a build project for a web application using npm packages.

I am using a slightly modified version of ami-04ccf46c, a Windows Server 2012 R2 image on Bamboo using Amazon Web Services.

In my build plan, I run a simple npm install task using an npm type task. However, when I try to execute the build plan, I get the following in the logs:

30-Apr-2015 09:11:05 C:\opt\node-v0.10.35\node_modules\npm\lib\npm.js:32
30-Apr-2015 09:11:05 throw new Error('npm.load() required')
30-Apr-2015 09:11:05
30-Apr-2015 09:11:05 Error: npm.load() required
30-Apr-2015 09:11:05    at Object.npm.config.get (C:\opt\node-v0.10.35\node_modules\npm\lib\npm.js:32:11)
30-Apr-2015 09:11:05    at exit (C:\opt\node-v0.10.35\node_modules\npm\lib\utils\error-handler.js:51:40)
30-Apr-2015 09:11:05    at process.errorHandler (C:\opt\node-v0.10.35\node_modules\npm\lib\utils\error-handler.js:342:3)
30-Apr-2015 09:11:05    at process.emit (events.js:95:17)
30-Apr-2015 09:11:05    at process._fatalException (node.js:295:26)

      

Why is npm crashing? Is npm configured correctly? Do I need to set a system variable?

Check out any discussion of this same question posted to Atlassian Answers.

Thanks in advance.

+3


source to share


1 answer


I have your answer, go to C: \ opt \ node-v0.10.35 \ node_modules \ npm, then open the npmrc file using notepad and replace it with the following line: prefix = $ {APPDATA} \ npm with prefix = C: \ opt \ node -v0.10.35 \ node_modules \ npm This is the solution. Make sure you have administrator rights for this folder.



+2


source







All Articles