question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm run deploy error

See original GitHub issue

Hi,

I´m trying running the deploy script, houwever i receiving the follow message.

`> lambda-cloudwatch-slack@0.3.0 deploy /home/ubuntu/lambda-cloudwatch-slack

./scripts/deploy.sh

=> Moving files to temporary directory Error: Cannot copy ‘.’ to a subdirectory of itself, ‘/home/ubuntu/lambda-cloudwatch-slack/lambda-cloudwatch-slack-lambda’. at checkStats (/home/ubuntu/lambda-cloudwatch-slack/node_modules/fs-extra/lib/copy/copy.js:240:17) at fs.stat (/home/ubuntu/lambda-cloudwatch-slack/node_modules/fs-extra/lib/copy/copy.js:227:14) at callback (/home/ubuntu/lambda-cloudwatch-slack/node_modules/graceful-fs/polyfills.js:295:20) at FSReqWrap.oncomplete (fs.js:153:5)

npm ERR! Linux 4.15.0-1056-aws npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “run” “deploy” npm ERR! node v8.10.0 npm ERR! npm v3.5.2 npm ERR! code ELIFECYCLE npm ERR! lambda-cloudwatch-slack@0.3.0 deploy: ./scripts/deploy.sh npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the lambda-cloudwatch-slack@0.3.0 deploy script ‘./scripts/deploy.sh’. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the lambda-cloudwatch-slack package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! ./scripts/deploy.sh npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs lambda-cloudwatch-slack npm ERR! Or if that isn’t available, you can get their info via: npm ERR! npm owner ls lambda-cloudwatch-slack npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /home/ubuntu/lambda-cloudwatch-slack/npm-deb npm-debug.log

ug.log `

ubuntu@api-h-beholder:~/lambda-cloudwatch-slack$ npm -v 3.5.2 ubuntu@api-h-beholder:~/lambda-cloudwatch-slack$ ubuntu@api-h-beholder:~/lambda-cloudwatch-slack$ node -v v8.10.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
CodyReichertcommented, Apr 7, 2020

hey @lucasbittencourt02 i was able to track down this commit in our node-lambda dependency: https://github.com/motdotla/node-lambda/commit/cb9b93005fb1ec28cb0a3209ec7bdf780cc3577c

It’s likely related. If you update version for that package in the package.json it should work:

  "devDependencies": {
    "node-lambda": "0.16.0"
  },

Can you try that and let me know if it works for you? (no big deal if not). I’ll push a PR, but it would be good to confirm it fixes the issue.

Thanks!

0reactions
sasko-zcommented, May 13, 2020

I have resolve it, I can confirm that changing version in package.json is working. Mine issue was in the .aws/credentials file, I don’t use default profile for secret keys.

Hi, I have the same issue and the update of the package.json and package-lock.json didn’t help. Any other suggestion how to solve this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

After npm run deploy errors occured - node.js - Stack Overflow
I got the error like this. So I run this command npm install --save gh-pages. like below. Run the command like this. After...
Read more >
I couldn't execute npm run deploy · Issue #18544 - GitHub
Hello! So, the way npm run deploy works is that it looks in your current package.json for a defined "deploy" ...
Read more >
Deploy Node web app Error - Render community
Hello I am new to Render and have encountered an issue while trying to deploy my repository to Render. I'm not quite sure...
Read more >
Troubleshooting Node.js Deploys - Heroku Dev Center
Your Node.js deploy failed - now what? Start with these simple steps to troubleshoot a build issue. Check the buildpack.
Read more >
npm run deploy error to GitHub pages : r/reactjs - Reddit
I'm trying to deploy to my react project to my GitHub. I keep getting an error after doing all the steps below "fatal:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found