node-modules / address

Get current machine IP and MAC address.
Other
233 stars 32 forks source link

dependencies not found #11

Closed lzl124631x closed 6 years ago

lzl124631x commented 6 years ago
$ npm -v
5.5.1
$ node -v
v8.9.1

Error:

./node_modules/address/lib/address.js
Module not found: Error: Can't resolve 'child_process' in 'xxxxxxx\node_modules\address\lib'
 @ ./node_modules/address/lib/address.js 5:12-36
 @ ./node_modules/utility/lib/utility.js
 @ ./node_modules/utility/index.js
 @ ./node_modules/digest-header/index.js
 @ ./node_modules/urllib/lib/urllib.js
 @ ./node_modules/wechat-oauth/lib/oauth.js
These dependencies were not found:

* child_process in ./node_modules/address/lib/address.js
* fs in ./node_modules/address/lib/address.js

To install them, you can run: npm install --save child_process fs

And I manually npm install -S child_process fs.

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

My project still cannot build.

lzl124631x commented 6 years ago

It seems to be bug in webpack. https://github.com/webpack-contrib/css-loader/issues/447