process.env.NODE_ENV exist,but detect result is false
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 75
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
test js:
```javascript
var detectNode = require('detect-node');
console.log('detectNode: ', detectNode, typeof global, typeof process, typeof process.env, process.env.NODE_ENV, Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0));
```
reuslt:
> detectNode: false object object object development [object Object]
node -v:
v8.10.0
npm -v:
5.6.0
os:
windows 10
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported result from the `require('detect-node')` entry point with Node v8.10.0 on Windows 10, using the JavaScript snippet and environment details in the issue. Trace why the detection result is false despite `process.env.NODE_ENV` being `development`; done means the package reports the correct result in this environment and has regression coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100