You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
➜ forGrandma git:(master) ✗ npm install smsboomer -g
/usr/bin/smsboomer -> /usr/lib/node_modules/smsboomer/bin/smsboomer
> [email protected] install /usr/lib/node_modules/smsboomer/node_modules/puppeteer
> node install.js
fs.js:902
return binding.mkdir(pathModule.toNamespacedPath(path),
^
Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/smsboomer/node_modules/puppeteer/.local-chromium'
at Object.fs.mkdirSync (fs.js:902:18)
at Object.downloadRevision (/usr/lib/node_modules/smsboomer/node_modules/puppeteer/utils/ChromiumDownloader.js:101:10)
at Object.<anonymous> (/usr/lib/node_modules/smsboomer/node_modules/puppeteer/install.js:50:12)
at Module._compile (internal/modules/cjs/loader.js:654:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
at Module.load (internal/modules/cjs/loader.js:566:32)
at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
at Function.Module._load (internal/modules/cjs/loader.js:498:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)
at startup (internal/bootstrap/node.js:201:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-12-14T10_40_02_987Z-debug.log
1,描述你需要完成的需求以及目的(目的就是为什么要做这个需求)
想在服务器上跑,不想在自己本机上跑
2,描述你的想法或思路
在服务器项目使用
npm install smsboomer -g
安装,然后直接 run3,描述具体的实现过程
实现过程如上,遇到问题,貌似是
pupeteer
安装遇到问题,然后又安装了 pupeteer,还是报同样的错误。4,描述遇到的问题,包括正确信息,报错信息或得到的不正确的信息
在服务器项目
npm install smsboomer -g
的报错:没有权限修改文件夹,我又修改了文件夹权限
chmod -R 777 /usr/lib/node_modules
再次安装还是得到一样的报错。
然后尝试先安装 pupeteer,
yarn add puppeteer -D
pupetter安装倒是成功的。
我还更新了 npm,还是不行。
5,有条件则贴出具体实现代码
实现代码如上
The text was updated successfully, but these errors were encountered: