A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/npm/npm/issues/2 below:

cannot perform relative import from bin · Issue #2 · npm/npm · GitHub

This repository was archived by the owner on Aug 11, 2022. It is now read-only.

This repository was archived by the owner on Aug 11, 2022. It is now read-only.

cannot perform relative import from bin #2

Description

Because of the way the bin is sym linked from another directory and executed directly it cannot perform imports relative to the actual location of the file.

test ::

lib/bin.js !/usr/bin/env node

require('./stub')

lib/stub.js
exports.nothing = 'asdf'

Run npm install or link, now execute the named bin and see the failure.

Metadata Metadata

Assignees

No one assigned

Development

No branches or pull requests Issue actions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4