Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm start 到 [email protected] 报错。。。 #1708

Closed
Arielce opened this issue Feb 21, 2019 · 2 comments
Closed

npm start 到 [email protected] 报错。。。 #1708

Arielce opened this issue Feb 21, 2019 · 2 comments

Comments

@Arielce
Copy link

Arielce commented Feb 21, 2019

到 npm start 的时候安装 puppeteer。报错。

I:wechaty-getting-started ce$ npm install

[email protected] postinstall /Users/ce/yaowu/wechaty-getting-started
check-node-version --node ">= 10"

npm notice created a lockfile as package-lock.json. You should commit this file.
added 95 packages from 126 contributors in 8.302s
I:wechaty-getting-started ce$ npm start

[email protected] start /Users/ce/yaowu/wechaty-getting-started
node examples/starter-bot.js

10:32:45 INFO Wechaty start() v0.22.6 is starting...
10:32:45 INFO PuppetManager install(wechaty-puppet-puppeteer@^0.14.1) please wait ...
npm:

[email protected] install /Users/ce/yaowu/wechaty-getting-started/node_modules/wechaty/node_modules/puppeteer
node install.js

npm: ERROR: Failed to download Chromium r624492! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.

npm: { Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
-- ASYNC --
at BrowserFetcher. (/Users/ce/yaowu/wechaty-getting-started/node_modules/wechaty/node_modules/puppeteer/lib/helper.js:108:27)
at Object. (/Users/ce/yaowu/wechaty-getting-started/node_modules/wechaty/node_modules/puppeteer/install.js:64:16)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3) errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' }

npm: npm
npm: WARN [email protected] requires a peer of file-box@^0.8.22 but none is installed. You must install peer dependencies yourself.
npm
npm: WARN [email protected] requires a peer of wechaty-puppet@^0.14.1 but none is installed. You must install peer dependencies yourself.
npm
npm: WARN [email protected] requires a peer of brolog@^1.4.9 but none is installed. You must install peer dependencies yourself.

npm:

npm: npm
npm: ERR! code ELIFECYCLE

npm: npm ERR! errno 1

npm: npm
npm: ERR! [email protected] install: node install.js
npm ERR!
npm: Exit status 1

npm: npm ERR!

npm: npm ERR! Failed at the [email protected] install script.

npm: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

{ Error: Command failed: npm install wechaty-puppet-puppeteer@^0.14.1
ERROR: Failed to download Chromium r624492! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
{ Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
-- ASYNC --
at BrowserFetcher. (/Users/ce/yaowu/wechaty-getting-started/node_modules/wechaty/node_modules/puppeteer/lib/helper.js:108:27)
at Object. (/Users/ce/yaowu/wechaty-getting-started/node_modules/wechaty/node_modules/puppeteer/install.js:64:16)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3) errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' }
npm WARN [email protected] requires a peer of file-box@^0.8.22 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of wechaty-puppet@^0.14.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of brolog@^1.4.9 but none is installed. You must install peer dependencies yourself.

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.

at ChildProcess.exithandler (child_process.js:294:12)
at ChildProcess.emit (events.js:182:13)
at ChildProcess.EventEmitter.emit (domain.js:441:20)
at maybeClose (internal/child_process.js:962:16)
at Socket.stream.socket.on (internal/child_process.js:381:11)
at Socket.emit (events.js:182:13)
at Socket.EventEmitter.emit (domain.js:441:20)
at Pipe._handle.close (net.js:610:12)

killed: false,
code: 1,
signal: null,
cmd: 'npm install wechaty-puppet-puppeteer@^0.14.1 ' }
10:36:53 ERR Wechaty start() exception: Command failed: npm install wechaty-puppet-puppeteer@^0.14.1
ERROR: Failed to download Chromium r624492! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
{ Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
-- ASYNC --
at BrowserFetcher. (/Users/ce/yaowu/wechaty-getting-started/node_modules/wechaty/node_modules/puppeteer/lib/helper.js:108:27)
at Object. (/Users/ce/yaowu/wechaty-getting-started/node_modules/wechaty/node_modules/puppeteer/install.js:64:16)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3) errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' }
npm WARN [email protected] requires a peer of file-box@^0.8.22 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of wechaty-puppet@^0.14.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of brolog@^1.4.9 but none is installed. You must install peer dependencies yourself.

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.

{ Error: Command failed: npm install wechaty-puppet-puppeteer@^0.14.1
ERROR: Failed to download Chromium r624492! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
{ Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
-- ASYNC --
at BrowserFetcher. (/Users/ce/yaowu/wechaty-getting-started/node_modules/wechaty/node_modules/puppeteer/lib/helper.js:108:27)
at Object. (/Users/ce/yaowu/wechaty-getting-started/node_modules/wechaty/node_modules/puppeteer/install.js:64:16)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3) errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' }
npm WARN [email protected] requires a peer of file-box@^0.8.22 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of wechaty-puppet@^0.14.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of brolog@^1.4.9 but none is installed. You must install peer dependencies yourself.

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.

at ChildProcess.exithandler (child_process.js:294:12)
at ChildProcess.emit (events.js:182:13)
at ChildProcess.EventEmitter.emit (domain.js:441:20)
at maybeClose (internal/child_process.js:962:16)
at Socket.stream.socket.on (internal/child_process.js:381:11)
at Socket.emit (events.js:182:13)
at Socket.EventEmitter.emit (domain.js:441:20)
at Pipe._handle.close (net.js:610:12)

killed: false,
code: 1,
signal: null,
cmd: 'npm install wechaty-puppet-puppeteer@^0.14.1 ' }
I:wechaty-getting-started ce$ sudo npm install wechaty-puppet-puppeteer@^0.14.1
Password:

[email protected] install /Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer
node install.js

ERROR: Failed to download Chromium r624492! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
{ Error: EACCES: permission denied, mkdir '/Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer/.local-chromium'
-- ASYNC --
at BrowserFetcher. (/Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer/lib/helper.js:108:27)
at Object. (/Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer/install.js:64:16)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
errno: -13,
code: 'EACCES',
syscall: 'mkdir',
path:
'/Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer/.local-chromium' }
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! /Users/ce/.npm/_logs/2019-02-21T02_48_40_598Z-debug.log
I:wechaty-getting-started ce$ npm install [email protected]
npm WARN checkPermissions Missing write access to /Users/ce/yaowu/wechaty-getting-started/node_modules/tough-cookie/node_modules
npm WARN checkPermissions Missing write access to /Users/ce/yaowu/wechaty-getting-started/node_modules/uri-js/node_modules
npm ERR! path /Users/ce/yaowu/wechaty-getting-started/node_modules/tough-cookie/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/Users/ce/yaowu/wechaty-getting-started/node_modules/tough-cookie/node_modules'
npm ERR! { [Error: EACCES: permission denied, access '/Users/ce/yaowu/wechaty-getting-started/node_modules/tough-cookie/node_modules']
npm ERR! stack:
npm ERR! 'Error: EACCES: permission denied, access '/Users/ce/yaowu/wechaty-getting-started/node_modules/tough-cookie/node_modules'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path:
npm ERR! '/Users/ce/yaowu/wechaty-getting-started/node_modules/tough-cookie/node_modules' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
I:wechaty-getting-started ce$ sudo npm install [email protected]

[email protected] install /Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer
node install.js

ERROR: Failed to download Chromium r624492! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
{ Error: EACCES: permission denied, mkdir '/Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer/.local-chromium'
-- ASYNC --
at BrowserFetcher. (/Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer/lib/helper.js:108:27)
at Object. (/Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer/install.js:64:16)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
errno: -13,
code: 'EACCES',
syscall: 'mkdir',
path:
'/Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer/.local-chromium' }
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! /Users/ce/.npm/_logs/2019-02-21T02_49_40_445Z-debug.log
I:wechaty-getting-started ce$ nvm list
v6.11.2
v10.10.0
-> v10.15.0
v11.10.0

@lijiarui
Copy link
Member

lijiarui commented Feb 21, 2019

Please follow the issue template, or we cannot solve the issue for you.

I will close this issue, feel free to file a new issue follow the template.

@Arielce
Copy link
Author

Arielce commented Feb 21, 2019

关就关吧,其实汉语已经描述很清楚了。在v10.15.0的node版本下,npm start的时候报错了。

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

No branches or pull requests

2 participants